[antlr-interest] ahum.. tree question
Lloyd Dupont
ld at galador.net
Tue Jul 10 06:36:21 PDT 2007
here is my rule:
===========
compare : (shift -> shift)
(
( (LT | GT | LTE | GTE) s=shift -> ^((LT | GT | LTE | GTE) $compare $s) )*
| is='is' i=identifier -> ^(IS[$is] $compare $i)
| as='as' i=identifier -> ^(AS[$as] $compare $i)
)
;
===========
it doesn't work...
it looks like think ANTLR doesn't like my
^((LT | GT | LTE | GTE)
in the tree rewriting rule.
any tip on how I could rewrite this tree?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070710/8c0817bc/attachment.html
More information about the antlr-interest
mailing list