[antlr-interest] Advantage of where Token is defined?
cgodfrey86
cgodfrey at epnet.com
Mon May 5 05:48:39 PDT 2003
Are there any advantages/disadvantages to defining a token in the
tokens section of the lexer definition verses as a separate item? I
found myself doing this to try and avoid "lexical nondeterminism"
messages, but I am not sure of the implications in doing this.
Thanks.
options
{
language = "CSharp";
}
class ASPULexer extends Lexer;
options {
k=3;
caseSensitive=false;
}
tokens {
AND = "and";
....
}
instead of
AND : "and";
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list