[antlr-interest] Q re disambiguating tokens
Terence Parr
parrt at cs.usfca.edu
Sat May 28 12:37:03 PDT 2005
On May 28, 2005, at 12:29 PM, Gerald B. Rosenberg wrote:
> Cannot seem to find the way of distinguishing lexer tokens defined
> by different strings.
Hi. Wow a programmer attorney :)
The issue you have is that rangle is a literal. Don't define a
special rule for it. You will have noted probably that ANTLR
complained about ABBREV and WORDS being nondeterministic.
Regards,
Terence
--
CS Professor & Grad Director, University of San Francisco
Creator, ANTLR Parser Generator, http://www.antlr.org
Cofounder, http://www.jguru.com
More information about the antlr-interest
mailing list