4 ms·
Wow, I had no idea the Oberon implementation was so small, thanks. And it looks like it's implemented in a similar way, with parsing and code generation mingled
by benhoyt 6y ago
Wow, I had no idea the Oberon implementation was so small, thanks. And it looks like it's implemented in a similar way, with parsing and code generation mingled together. It is ~2900 lines of code, though it's very dense. You can see it here: http://www.projectoberon.com/ http://www.projectoberon.com/
ORB - symbol table handling - 430 lines
ORG - code generator (for RISC) - 1115 lines
ORP - parser (calls scanner and code generator - 997 lines
ORS - scanner/lexer - 312 lines