[antlr-interest] Possible Antlr defect?
Gavin Lambert
antlr at mirality.co.nz
Sat Jun 9 17:57:39 PDT 2007
At 12:38 10/06/2007, Terence Parr wrote:
>
>That "elsewhere in a grammar" is the key. Just referencing a
>token defines it as well as using the tokens section.
That doesn't seem like a good idea -- it would make it vulnerable
to typos. References to a token should be illegal unless they've
been specifically defined in a tokens section, been given a lexing
rule, or imported from a vocab file.
More information about the antlr-interest
mailing list