[antlr-interest] Rewrite rule problem!
Liviu U
liviu.u at gmail.com
Fri Jul 6 14:15:28 PDT 2007
Hi all,
1) I cannot find the syntax for rewriting rule:
class:
attr* modif* TK_CLASS '{' ( mtd| fld | prop )* '}'
->
if I say
^( TK_CLASS attr* modif* ( mtd| fld | prop )* )
I get syntax error, RPAREN expected.
2) I think there is a bug somewhere, if i put TK_CLASS^ and forget about the
rewrite rule,
in my NodeAdapter the nodes for attr and modif are never bound to NodeClass
using AddChild.
AddChild is never called unless there is a rewrite rule and all nodes follow
the root!!!!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070707/30f9eea6/attachment.html
More information about the antlr-interest
mailing list