Reference
Compiler & CLI
The tekst executable turns Tekst source into native programs through LLVM.
Build
terminal
cmake -S . -B build
cmake --build build --config ReleaseThe compiler executables are written to build/release/; on Windows, the output includes tekst.exe and tk.exe.
Compile a file
terminal
tekst main.tkChoose an output
terminal
tekst main.tk -o helloCompile and run
terminal
tekst main.tk --runEmit LLVM IR
terminal
tekst main.tk --emit-irVersion
terminal
tekst --versionWindows toolchain
The Windows native compiler uses Clang with the MinGW-w64 GNU target. MSYS2 UCRT64 is a supported way to provide the MinGW-w64 toolchain. If clang++ is not on PATH, set TEKST_CXX to its path.
Successful compilation
Successful native compilation is silent unless an option such as --emit-ir produces output. Compiler diagnostics are reported when compilation fails.
