[antlr-interest] Re: Getting token extents for grammar rules

Paul J. Lucas dude at darkfigure.org
Mon May 17 11:36:12 PDT 2004


--- In antlr-interest at yahoogroups.com, Mark Lentczner <markl at g...> wrote:
> 	void consume()
> 	{
> 	    giveToken(LA(1));
> 	    Parser::consume();
> 	}
> 
> (All examples C++, but I'm sure the Java is very similar.)

Another potential problem with this is that I want to give ALL tokens, even those that the 
lexer skips, e.g., comments.  I assume that skipped tokens are never seen by consume().

- Paul



 
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