[antlr-interest] Token vs Rule

Ric Klaren klaren at cs.utwente.nl
Fri Apr 2 02:28:21 PST 2004


On Fri, Apr 02, 2004 at 11:13:44AM +0100, Mark Buckle wrote:
> Erm, Is there anyway for the parser to communicate with the lexer to pass
> calling context down to this rule which will enable
> run-time setting of the testLiterals=true option ?

Nope, feedback from the parser to the lexer is in general not a good idea.
Due to syntactic predicates in the parser the lexer may be way ahead of the
parser in the input file. The tokens stuff is more for static stuff.

Cheers,

Ric
-- 
-----+++++*****************************************************+++++++++-------
    ---- Ric Klaren ----- j.klaren at utwente.nl ----- +31 53 4893722  ----
-----+++++*****************************************************+++++++++-------
  Wit is cultured insolence. --- Aristotle



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
     antlr-interest-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 



More information about the antlr-interest mailing list