C subset lexer, parser, code generator, and VM in 291 lines of C
iro.umontreal.ca
iro.umontreal.ca
Jss: JavaScriptScheme: a multithreaded Scheme to JavaScript compiler
PICOBIT: Very compact Scheme compiler and virtual machine suitable for microcontrollers
While there are of course many Scheme to Javascript systems (easy because Javascript is mostly "Scheme with an ALGOL face") I know the latter has been used in some serious projects.
<sum> ::= <term> | <sum> "+" <term> | <sum> "-" <term>
However, I have to admit that stating the grammar as they have is much clearer, in terms of conveying what the grammar is (as opposed to implementing it). I'm implementing grammars quite often at the moment, so this is food for thought.It is, however, a pretty neat hack if you're interested in the essence of how a parser and code generator works. This kind of thing isn't nearly as complicated as a lot of people assume, and this is a fun existence proof of that fact.