[antlr-interest] v3.0 debug interface
parrt at cs.usfca.edu
Wed Mar 23 11:36:58 PST 2005
On Mar 23, 2005, at 6:38 AM, Bryan Ewbank wrote:
> How does consuming all tokens reconcil with stateful tokenizing, where
> the same string is reported as different tokens depending on context?
> I think C's <typedef> is the classic example of this situation.
Semantic predicates. :) Context-sensitive lexing (based upon
semantics) is generally a nightmare. I keep it all in the parser. :)
CS Professor & Grad Director, University of San Francisco
Creator, ANTLR Parser Generator, http://www.antlr.org
More information about the antlr-interest