[antlr-interest] Rewrite rule problem!
Terence Parr
parrt at cs.usfca.edu
Fri Jul 6 15:31:22 PDT 2007
On Jul 6, 2007, at 2:15 PM, Liviu U wrote:
> 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.
should be fine...are you sure that rule alone gives you trouble?
Ter
More information about the antlr-interest
mailing list