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.
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.
01↓
Get SLangCC
Build the compiler from the repository with Flex, Bison, and C++17.
View requirements → 02›_Build the compiler
Generate the driver from source and verify the required native toolchain.
Build guide → 03▶Run your first program
Write, compile, and execute a small SLang program in minutes.
Start the tutorial →Go deeper
Learn by exploring
Follow a path or jump directly to the reference you need.
Ready to compile?
Read the quickstart →