[antlr-interest] Re: C++ based code gen lab (was:C++ beginner questions)

Tom Harwood tharwood at TheWorld.com
Sun Oct 2 07:01:45 PDT 2005


Nick Brereton did a nice C++ port of Ter's code-gen lab; the lab's source 
language is very simple, but for examples of getting the plumbing hooked up, 
it should be a useful starting point.  The code emitter is generated by 
JBurg, a tree walker that finds minimum-cost codegen solutions.

The original lab is still online at: 
http://www.cs.usfca.edu/~parrt/course/652/labs/jburg.html

The C++ port (which I do maintain) is at: 
http://cvs.sourceforge.net/viewcvs.py/jburg/jburg/test/examples/cpp/parrlab4/

And the general JBurg site, with some additional documentation, is at: 
http://jburg.sourceforge.net/

Hope this helps, and best regards,

- Tom Harwood




More information about the antlr-interest mailing list