[antlr-interest] grammar question

mzukowski at yci.com mzukowski at yci.com
Mon Mar 24 07:57:07 PST 2003


No.  Parsers changing lexers is not advisable because the lexer can be any
number of tokens ahead of the parser since antlr has "infinite" lookahead
capability through syntactic predicates.

Monty

-----Original Message-----
From: mark kant [mailto:markkant2001 at yahoo.com]
Sent: Saturday, March 22, 2003 2:46 PM
To: antlr-interest at yahoogroups.com
Subject: [antlr-interest] grammar question


Hi,

Can multiple lexers be implemented so that a different
lexer is activated in parser or atleast based on a
rule that matches in parser ?


Thanks

Mark


__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

 

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


 

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



More information about the antlr-interest mailing list