butterc (Butter Compiler) is a compiler for Butter, a hobby programming language I've been developing.
- variable declaration
- variable reassignment
- integers, strings, and booleans
- if-else statements
- print (formatted vs plain and stdout vs stderr)
- variables (local) vs constants (global)
- aliasing
- modules & imports
- external code injection
An x86_64 Linux machine is needed to run the generated executable.
nasm, ld, and the rust compiler are needed to build and use the executable.
Sudo (administrator) permissions are also needed.
The dependencies can be installed by navigating into the build directory and running
bash depend.shThis will only download the dependencies that you are missing
To build the compiler executable, navigate into the build directory and run
bash build.shTo use the compiler, run
butterc <file.btr>This project is relased under Apache 2.0