[antlr-interest] Problem with AST rewrite
Terence Parr
parrt at cs.usfca.edu
Mon Aug 7 17:07:04 PDT 2006
On Aug 5, 2006, at 2:38 AM, Emond Papegaaij wrote:
> Hello,
>
> The attached grammar produces incorrect code (v3b3), which gives
> the following
> compile error:
> TPLLogic.java:203: cannot find symbol
> symbol : variable list_SEMI
> location: class TPLLogic
> list_SEMI.add(SEMI6);
> ^
>
> It seems to be caused by the usage of ';' in the first rule, while
> the second
> rule uses 'SEMI'. Is it allowed to mix these two in a single grammar?
The grammar works on my side no problem...perhaps a post b3 bug fix?
Ter
More information about the antlr-interest
mailing list