Skip to content

A Compiler for the Alan Programming Language Developed in C++ with LLVM

License

Notifications You must be signed in to change notification settings

peter-avg/Alan-Compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AlanCompiler

Dependencies

Installation

git clone https://github.com/ntua-el15074/Alan-Compiler.git
make -C cmd
source $HOME/.bashrc

Usage

  • alan [OPTIONS] source_file

The Alan executable is located in the bin folder. The executable requires lib.a also located in the bin folder, which was provided by professor Kostis Sagonas. The building process of the compiler adds the lib.a and bin paths to your .bashrc and/or .zshrc.

The compiler can be used with any of these options

    -h, --help                Display this information
    -v, --version             Display the version of the compiler
    -o                        Optimize the code
    -i                        Output Intermediate Representation to Standard Output
    -f                        Output Assembly to Standard Output
    -p                        Output the AST tree
    --changesuffix [suffix]   Change the suffix of the assembly file
    --changellc [llc]         Change the llc command
    --changeout [file]        Change the output name

The compiler will provide an executable of the program named a.out.

Demo

About

A Compiler for the Alan Programming Language Developed in C++ with LLVM

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published