[antlr-interest] v3.0 debug interface

Terence Parr 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.

Hi Bryan,

Semantic predicates. :)  Context-sensitive lexing (based upon 
semantics) is generally a nightmare.  I keep it all in the parser. :)

Ter
--
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