[antlr-interest] Problem with generated code
Johannes Luber
jaluber at gmx.de
Wed Feb 13 11:21:42 PST 2008
Jamie Penney schrieb:
> Thanks for the replies everyone,
>
> What I ended up doing was changing this into a number of different
> rules, rather than one rule for all keywords.
> This created compilable code, but I don't know if it is correct. I kept
> the old code, so should I go back and
> change this to use scopes?
Using scopes reduces the code duplication.
Johannes
More information about the antlr-interest
mailing list