Home

Awesome

Slangc

LLVM-based compiler for Slang - educational programming language.

https://slangdocs.readthedocs.io/ru/latest/

Building

Clone the repository

git clone https://github.com/f0xeri/SlangCompiler

Install LLVM 18 and libgc-dev

sudo wget https://apt.llvm.org/llvm.sh &&
sudo bash ./llvm.sh 18 all &&
sudo apt-get install libgc-dev -y

Build the project

cd SlangCompiler
cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release

Run tests

cd tests &&
python -m setSlangcPath "../build/slangc" && python -m unittest runTests.py