[antlr-interest] anyone have a antlrv3 java grammar thatcreates AST?

Terence Parr parrt at cs.usfca.edu
Thu Jul 12 10:17:10 PDT 2007


On Jul 12, 2007, at 9:34 AM, Micheal J wrote:

> Hi,
>
>>> Hi,
>>>
>>> Has anyone tried to build a ANTLRv3 java grammar that creates an
>>> AST yet?
>>>
>>> I'm in the middle of creating one now, and I guess I should have
>>> asked earlier :(
>>
>> I'm am too. It's hard. ;)  Well, it's hard to build one that builds
>> the exact right tree and does the actions I need for ANTLR itself.
>
> I got the impression Andy wanted an ANTLR v3 grammar for a Java  
> recognizer
> that also builds an AST. He didn't specify a target language so I  
> guess any
> is OK.
>
> You seem to be talking about an ANTLR v3 grammar for an ANTLR v3  
> recognizer
> with Java target as output.

Oops. I read fast this AM before coffee. Sorry. no AST yet that I'm  
aware of.
Ter



More information about the antlr-interest mailing list