The compiler for the Alioth programming language

dn-ezr 709feb4252 add support to constant 6 months ago
doc 709feb4252 add support to constant 6 months ago
inc 709feb4252 add support to constant 6 months ago
src 709feb4252 add support to constant 6 months ago
test 1404d382c0 more backend 6 months ago
.gitignore d263b99a80 complet most of the syntax parser 8 months ago 709feb4252 add support to constant 6 months ago 709feb4252 add support to constant 6 months ago
makefile 497b92d54f add support to value, finish more bachend 6 months ago

Alioth Compiler

Alioth Compiler is designed to compile the Alioth programming language.

Current Version 0.3
Corresponding Language Version 0.9


  • init project workspace structure wherever you want

    this compiler can help you generate subdirectories and building scripts needed.

  • communicate with environment through standard input and output stream

    this compiler will ask environment for content of which the file it was going to use.

Development environment

This compiler can be compiled correctly on platform of linux-x86_64 by "g++-8" which is a c++ compiler who supports c++17 standard.

Currently this compiler depends on the LLVM project, run the following commands to setup a development environment with the LLVM library avalible.


#This script is written in 2019, we can't ensure that the necessary steps building an available llvm environment doesn't change at the time you're reading this.

# obtain the source code of the llvm core libraries
tar -xJf llvm-8.0.0.src.tar.xz
mkdir llvm-8.0.0.src/build
cd llvm-8.0.0.src/build

# turn on options necessary

# if possible, compile the llvm libraries through more processes.
make -j

# install the llvm core libraries
sudo make install

Runtime environment

If you just need to run this compiler to compile the alioth programming language, the link editor 'ld' will be the only need of you, fortunately most development environment has this program already installed.

Command line Interface

All command line parameters can be separated into two set. The compiler of the Alioth programming language can be started by the command line. You can control the behaviors of the compiler by passing command line parameters.

Here I'll show you some common usage of this compiler, for more information, please view the Alioth Compiler Manual.

The common command format to compile several modules into a target as follow:


aliothc module1 module2 module3 : target

Just as the simple as you seeing, module1 module2 module3 were three assumed names representing three modules, then the colon is a indicator indicates the following string "target" is the name of the target of this compiling mission.

You can arrange the order of these four parameters any how you like it. Yes, four parameters, the indicator and the target name are combined to be one single parameter.

If the target you are going to compile will use all modules in the work space you have written, you can leave the module name list blank and let the compiler find all modules available and compile them.

Note that if you miss the entry method in modules or you done it on purpos, compiler will not give you an error, it compiles all modules into a static link library and store it into the arc sub space instead.

That's all, enjoy coding, and have fun changing the world ^_^