Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 712 Bytes

File metadata and controls

26 lines (22 loc) · 712 Bytes

BasicCompiler

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

Build

This project uses CMake as a build tool:

mkdir build
cd build
cmake ..
cmake --build .

Usage

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