[antlr-interest] Newbie question:using lexer grammar

Mauro Pellicioli nightwolf at email.it
Sat Aug 25 10:12:26 PDT 2007


I'm trying to figure out what is the use of the option filter=true, in fact
i need only to build a grammar that matches any character until it sees in
the input one of the sequences: 'sequence A' or 'sequence B' or 'sequence
C'.

Thanks for clarifications.
Regards.

------- Original Message --------
	Da: Johannes Luber <jaluber at gmx.de>
	To: 
	        Cc: antlr-interest at antlr.org
	Oggetto: Re: [antlr-interest] Newbie question:using lexer grammar
	Data: 25/08/07 18:52
	
	> 
> 
> 
> Mauro Pellicioli wrote:
> > Hi everyone,as the subject says: how do I use a lexer grammar with the
> > option filter=true?There is no method to call like when I use a parser.
> > 
> > Thanks for help. 
> 
> Usually, you don't call the lexer directly, but use the parser. This
> happens regardless of the type of the lexer. Why do you want to call the
> lexer directly anyways?
> 
> Best regards,
> Johannes Luber
> 
> 
>  
 --
 Email.it, the professional e-mail, gratis per te: http://www.email.it/f
 
 Sponsor:
 Vuoi giocare?In REGALO x te GPBikes 3D,Bubble Boom,Rock City Empire
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=6731&d=20070825




More information about the antlr-interest mailing list