[antlr-interest] C "skip" function

Jim Idle jimi at temporal-wave.com
Tue Nov 20 13:16:46 PST 2007


I forgot to implement the skip in the last runtime release. Sorry about
that, it was just an oversight. For now, you will need to set the type
to HIDDEN, which means it will be in the token stream but the parser
will tune it out. Obviously SKIP(); will need to be implemented as
sometimes there may be vast amounts of tokens that you don’t want to
push into the token stream. I will make sure it is in the next release.

 

In general the C target implements such things as upper case MACROS() in
the traditional C style.

 

Jim

 

  _____  

From: Harmon Nine [mailto:hnine at isis.vanderbilt.edu] 
Sent: Tuesday, November 20, 2007 1:19 PM
To: antlr-interest Interest
Subject: [antlr-interest] C "skip" function

 

Hi all.

 

I’m trying to use the “C” language generator for an antlr3 lexer, but
the g++ compiler complains that the “skip()” function, for skipping a
token, isn’t defined.

 

Is there a different function to call to skip a token for the “C”
language generator?

 

Thanks.

-- Harmon


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20071120/8ee0d61c/attachment.html 


More information about the antlr-interest mailing list