Simple compiler I made for learning more about compilers in general. It compiles a language similar to BASIC to C
Made following Austin Henley's "Let's make a Teeny Tiny compiler"
I added some of my own twist and extra stuff, like for loops
This project uses CMake as a build tool:
mkdir build
cd build
cmake ..
cmake --build .
To compile a file just pass it's directory into the command arguments:
BasicCompiler test.txt
It is also possible to set a output directory:
BasicCompiler test.txt -o output/
After the file is compiled you can use your preferred C compiler and build the executable