[antlr-interest] How to control token numbers manually?

David Piepgrass qwertie256 at gmail.com
Sun Jul 1 09:29:10 PDT 2007


In my project I need to control the numeric identifiers used for
tokens, because there may be several separate (unrelated) lexers that
produce the same token types (ID, INT, REAL, etc.)

Preferably I would like to use variables to hold the token numbers and
determine the numbers at run-time, but before any lexer starts. Never
mind why...

How can I accomplish this?

-- 
- David
http://qism.blogspot.com


More information about the antlr-interest mailing list