jeandrek / do-it

Toy compiled language
GNU General Public License v3.0
2 stars 1 forks source link
compiler programming-language

do-it

Do-it is a messy toy procedural imperative (although everything is an expression for simplicity) programming language I wrote to learn about code generation, initially derived from An Incremental Approach to Compiler Construction by Abdulaziz Ghuloum. It uses Scheme S-Expression syntax and the compiler is written in Scheme.

Limitations

Operating system support

Operating system Status
GNU/Linux, OpenBSD, Solaris Works fine out-of-the-box.
macOS Set abi-underscore? to #t.
Microsoft Windows (MinGW) Set abi-underscore? to #t.
Other operating systems Not yet tested.

Usage

Edit Makefile as necessary. Then run make to compile the library. Now you can run make <name> to compile the source file \<name>.do-it.

Documentation

Do-it is fully documented in the wiki.