Skip to content

Latest commit

 

History

History
33 lines (29 loc) · 631 Bytes

README.md

File metadata and controls

33 lines (29 loc) · 631 Bytes

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