MarioLANG Compiler (mlc) will compile programs from MarioLANG into C.
$ ./mlc.py <program name>
$ gcc ml.c
$ ./a.out
mlc walks the MarioLANG program and constructs a finite state machine, performs some optimizations to reduce the size of the graph, then turns that graph into a C program.
- Input is line-buffered, unlike many mariolang implementations.
- Memory is statically allocated, and no over/underflow checks are made.
Questions? Contact the author at [email protected].
mlc is inspired by a blog post written by Mario Lang. This implementation is based upon an interpreter written by mynery.