[antlr-interest] ANTLR-based Java grammar for javac compiler

Terence Parr parrt at cs.usfca.edu
Thu Nov 13 17:54:27 PST 2008


On Nov 13, 2008, at 3:57 PM, Jim Idle wrote:

> On Thu, 2008-11-13 at 22:38 +0100, Simon wrote:
>> You could have written a custom TreeAdaptor to build the javac tree.
>> Or was that simply not possible / too tedious?
>
>
> At least one of the problems is (and this is a common one), that the
> javac tree building code expects all the nodes that are children of  
> the
> node you are building to be supplied at once. There is no "add this
> child" operation.

In my design patterns book, I'm calling these heterogenous nodes with  
irregular children (vs normalized children).  They are great for hand  
written code but suck ass for automation. ;)

Ter


More information about the antlr-interest mailing list