[antlr-interest] Problem with AST rewrite
Emond Papegaaij
e.papegaaij at student.utwente.nl
Tue Aug 8 00:05:18 PDT 2006
On Tuesday 08 August 2006 02:07, Terence Parr wrote:
> 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?
It's just a minor issue, so perhaps you fixed it accidentally? :)
Best regards,
Emond Papegaaij
More information about the antlr-interest
mailing list