SLang compiler toolchain

Learn the language.
Understand the compiler.

SLangCC is a compact compiler built for learning, teaching, and exploring how source code becomes a running program.

C++17Compilerx86-64Linux target.slSource files
hello.slSLang
1 void main()
2 {
3   string name = "SLangCC";
4   print("Hello, ", name);
5 }
$ ./slangcc hello.sl Compiled "hello.sl" to "hello".
Designed forStudentsEducatorsCompiler enthusiasts
Start building

From zero to first program

Everything you need to install SLangCC, learn the essentials, and compile your first source file.

Go deeper

Learn by exploring

Follow a path or jump directly to the reference you need.

Ready to compile?

Your first SLang program is a few lines away.

Read the quickstart →