Simple Expression Compiler

Monkey Forums/Monkey Code/Simple Expression Compiler

GW_(Posted 2014) [#1]
I knocked this up yesterday and thought I would share.
The code parses basic style expressions and translates to x86 assembly.
I'm not sure if the generated asm is correct or not.


lex.monkey (the lexer)


parser.monkey



Sammy(Posted 2014) [#2]
I have no use for this whats-so-ever but I did enjoy flicking through the code, very interesting, thank you!