[antlr-interest] Some Problem with tree parser
Terence Parr
parrt at cs.usfca.edu
Mon Apr 30 13:05:58 PDT 2007
Tree grammars cannot create new trees at this point. One of the big
things to fix of the summer after the first release.
Ter
On Apr 30, 2007, at 2:21 AM, femtowin1 wrote:
> actually this is already a tree grammar.
>
> program:^(STATEMENT_LIST s=statement*
> ....
>
>
>> On Mon, Apr 30, 2007 at 01:58:23AM -0700, femtowin1 wrote:
>>> options {
>>> tokenVocab=Rubyv3; // reuse token types
>>> ASTLabelType=CommonTree; // $label will have type CommonTree
>>> }
>>
>>> I've tried s+=statement*
>>
>> I don't use the += operator, but could it be that you need
>> output=AST;
>> in your options section?
>>
>>
>> ta,
>> dave
>>
>> --
>> http://david.holroyd.me.uk/
>>
> ______________________________________
> Sent from my www.pageflakes.com startpage
More information about the antlr-interest
mailing list