[antlr-interest] help on rewritting the tree

Jim Idle jimi at temporal-wave.com
Sun Oct 4 09:38:49 PDT 2009


a: b -> ^(V b) ;

 

b : part (DOT^ part )* ;

 

part:  ID( ABC )? ;

 

Jim

 

From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-bounces at antlr.org] On Behalf Of antlr_bill
Sent: Sunday, October 04, 2009 8:56 AM
To: antlr-interest at antlr.org
Subject: [antlr-interest] help on rewritting the tree

 

can someone please help on this ?
i have an rule like this :

a:
 :   ID( ABC )? (DOT ID (ABC)? )*
;
how to rewrite it into a tree grammer ?

 

 

 



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20091004/8d8019da/attachment.html 


More information about the antlr-interest mailing list