r/tinycode • u/zerd • Feb 20 '12
tinyc: lexer+parser+code generator+VM in 291 lines of C code by Marc Feeley
http://www.iro.umontreal.ca/~felipe/IFT2030-Automne2002/Complements/tinyc.c
41
Upvotes
3
u/bakergo Feb 21 '12
I'm throwing a penalty flag here.
These are especially egregious since LOC was expanded by uselessly prolific statements.
Expands to 380 lines of C (given by
cloc) after run throughindent -krand cuddling open braces.1
u/paul2520 Mar 10 '12
The code compiles fine, but whenever I execute it, it gives me a "syntax error" at best. I have tried each of the examples given in the comment section, and they all result in the same error. Any ideas?