[antlr-interest] Re: Ignoring lexer rules

mzukowski at yci.com mzukowski at yci.com
Mon Oct 28 09:25:57 PST 2002


Take a look at the gcc parser.  The basic idea is to call a protected rule
that will test the token table for you, then do your semantic checks and
change types as needed in the calling rule.

Monty

> -----Original Message-----
> From: Paul J. Lucas [mailto:dude at darkfigure.org]
> Sent: Wednesday, October 23, 2002 2:02 PM
> To: antlr-interest at yahoogroups.com
> Subject: [antlr-interest] Re: Ignoring lexer rules
> 
> 
> --- In antlr-interest at y..., mzukowski at y... wrote:
> > That's not the regular antlr way of doing things.  See the 
> documentation on
> > handling "literals".
> 
> I've read the documentation, thanks.  There's little mention 
> of semantic predicates in combination with literals for lexers.
> 
> - Paul
> 
> 
>  
> 
> 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