2 unstable releases
0.2.0 | Jun 30, 2023 |
---|---|
0.1.0 | Jun 29, 2023 |
#857 in Programming languages
18KB
444 lines
bitsyc
bitsyc
is a compiler for the Bitsy programming language. Bitsy is a small, not-very-useful language. Its primary purpose is to be the best language to implement for programmers wanting to build a compiler or interpreter for the first time.
You can find the language spec document here: @apbendi/bitsyspec.
Installation
$ cargo install bitsyc
Compiling a Bitsy program
This will compile down to machine code for your platform. The code generation is done using LLVM.
$ bitsyc example.bitsy
To execute your code, just run:
$ ./example
Dependencies
~1.2–1.8MB
~34K SLoC