Skip to content
ymushkevychPublic

About

Compiler for the Butter Programming Language

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

89 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

butterc

butterc (Butter Compiler) is a compiler for Butter, a hobby programming language I've been developing.

features

  • 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

dependencies

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.sh

This will only download the dependencies that you are missing

building

To build the compiler executable, navigate into the build directory and run

bash build.sh

running

To use the compiler, run

butterc <file.btr>

license

This project is relased under Apache 2.0

About

Compiler for the Butter Programming Language

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Contributors

Languages