[antlr-interest] got new "language implementation" lecture audio up
Terence Parr
parrt at jguru.com
Tue Feb 18 12:56:43 PST 2003
On Tuesday, February 18, 2003, at 12:01 PM, Matt Benson wrote:
> Well, again, my interest in Antlr was a direct result
> of my decision to adapt a Java source
> analysis/refactoring package that used Antlr
> (Transmogrify) for the specific purpose of
> implementing intelligent code completion, especially
> for the Jext Java text editor to which I am a
> contributor. Transmogrify already has a very in-depth
Is Transmogrify still a living project?
> symbol table generation approach. The symbol table is
> built by using a handmade tree walker. After the "XML
> Parsing the easy way" project, my first question is
> whether a TreeParser can be used to construct a
> SymbolTable in perhaps a (at least somewhat) simpler
> or more intuitive way than the current tree walking
> class which is 1300+ lines long (800+ NCS lines).
Hell yes! ;) Building a tree walker by hand is like building a parser
by hand. Check out the pascal grammar I posted. It uses a specific
symtab.g tree grammar to walk the tree built by the pascal.g parser to
build up the symbol table, linking nodes in the tree with the defs of
variables.
> While I obviously don't expect your class to go into
> this level of detail to a particular implementation,
> this is the direction of my personal interest.
Don't be too sure. I'm thinking of making the poor students do this
symbol table stuff for Java.
>
> Thanks again for making this available and
> understandable. I feel like I am learning tons!
Excellent. Hopefully that "XML the easy way" makes sense. The
students will see it tomorrow. :)
Ter
--
Co-founder, http://www.jguru.com
Creator, ANTLR Parser Generator: http://www.antlr.org
Lecturer in Comp. Sci., University of San Francisco
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list