[antlr-interest] SKIP() vs skip() in 'C' runtime

Jim Idle jimi at temporal-wave.com
Wed May 19 07:23:27 PDT 2010


Why?

:s/skip\(\)/SKIP()/g

However it is a macro defined in the generated code, all you need do is:

#define skip() SKIP()

In an @section that follows the macro definition of SKIP

Jim

> -----Original Message-----
> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> bounces at antlr.org] On Behalf Of Alan Condit
> Sent: Tuesday, May 18, 2010 9:42 PM
> To: antlr-interest at antlr.org
> Subject: [antlr-interest] SKIP() vs skip() in 'C' runtime
> 
> Where is the code for SKIP() found in the 'C' runtime? I had SKIP() in
> my C code version of the parser then I had to move to Java to find some
> bugs in my grammar. There I had to change SKIP() to skip(). Now I am
> going back to 'C' but I would like to change the 'C' runtime so that it
> will accept the lowercase skip().
> 
> Thanks,
> Alan
> ---
> 
> Alan Condit
> 1085 Tierra Ct.
> Woodburn, OR 97071
> 
> Email -- acondit at ipns.com
> Home-Office (503) 982-0906
> 
> 
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-
> email-address





More information about the antlr-interest mailing list