[antlr-interest] Re: Please make ANTLR check for missing/redefined tokens

Ric Klaren klaren at cs.utwente.nl
Mon Jun 24 08:06:15 PDT 2002


The prerelease 2.7.2 versions have warnings for this kindoff thing (most of
them anyway). Maybe it needs a bit more tweaking to appease anyone though.

On Mon, Jun 24, 2002 at 07:50:08AM -0700, Greg Lindholm wrote:
> Ya I sorta have the same issue; I exportVocab from the lexer, and
> importVocab in the parser.  As I'm developing the parser I need to
> periodically check the ParserTokenTypes for surprises.  (If I mis-type
> a token name or forget something in the lexer it shows up in the
> ParserTokenTypes as a new token type.)
> It would be nice it you could tell Antlr that all the legal tokens are
> from the importVocab or the Tokens section and warn me if you find any
> others.

    ---- Ric Klaren ----- klaren at cs.utwente.nl ----- +31 53 4893722  ----
     Innovation makes enemies of all those who prospered under the old
   regime, and only lukewarm support is forthcoming from those who would
               prosper under the new. --- Niccolò Machiavelli


Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 

More information about the antlr-interest mailing list