[antlr-interest] Skipping irrelevant tokens in a source file

mzukowski at yci.com mzukowski at yci.com
Tue Aug 19 10:26:55 PDT 2003


The main thing is to not have feedback from the parser to the lexer.

-----Original Message-----
From: Matt Benson [mailto:gudnabrsam at yahoo.com] 
Sent: Tuesday, August 19, 2003 9:23 AM
To: antlr-interest at yahoogroups.com
Subject: Re: [antlr-interest] Skipping irrelevant tokens in a source file


Wouldn't a solution based on this approach imply
putting state in the Lexer?  Is that good?  I'm asking
because I honestly don't know.

Thanks,
Matt

--- "Rodrigo B. de Oliveira" <rbo at acm.org> wrote:
>
http://www.antlr.org/doc/lexer.html#Filtering%20Input%20Streams
> 
> ----- Original Message -----
> From: <dm at cs.yorku.ca>
> To: <antlr-interest at yahoogroups.com>
> Sent: Tuesday, August 19, 2003 12:45 PM
> Subject: [antlr-interest] Skipping irrelevant tokens
> in a source file
> 
> 
> > Hi:
> >
> > What is the easiest way to ignore sections of a
> source file?
> >
> > Say I have a language and all I am interested in,
> is the text between the
> token
> > "feature" and the token "end".
> >
> > How do I allow anything before feature and after
> end?
> >
> > Thanks in advance,
> >
> > Dave Makalsky
> >
> > -------------------------------------------------
> > This mail sent through IMP: http://horde.org/imp/
> >
> >
> >
> > 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/
> 
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.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