Re: Using different tokens for the same grammar
Monday, June 10, 2002 10:02 AM
Antlr looks up literals in a hash map called literals in the lexer. It
would be pretty easy for you to add an initialization routine that loaded in
more entries, say for French and Spanish. The easiest way would probably be
to re-use the *TokenTypes.txt file, translated to whatever language, and
just parse it and load it into the table.