Re: [antlr-dev] Bug in C target generation

2012-04-20 Thread Jim Idle
ivs) ; privelement : MULT | IDENTIFIER | MISSING { error(“Cannot….etc”); } ; *From:* antlr-dev-boun...@antlr.org [mailto:antlr-dev-boun...@antlr.org] *On Behalf Of *Mike Lischke *Sent:* Friday, April 20, 2012 12:49 AM *To:* ANTLR Mailing Mailing List *Subject:* Re: [antlr-dev] Bug in C tar

Re: [antlr-dev] Bug in C target generation

2012-04-20 Thread Mike Lischke
Hey Jim, > It is a problem with the code generation templates for all the targets (well, > Java and C at least), someone did post a fix for it on the list, but it has > not been issued as any formal patch yet. Definitely not for C# because this code was taken from a grammar that works well wi

Re: [antlr-dev] Bug in C target generation

2012-04-19 Thread Jim Idle
AM *To:* ANTLR Mailing Mailing List *Subject:* [antlr-dev] Bug in C target generation Jim, with a rule like this: privilege_level : ( first=MULT | first=MULT DOT second=MULT | first=IDENTIFIER DOT second=MULT | first=IDENTIF

[antlr-dev] Bug in C target generation

2012-04-19 Thread Mike Lischke
Jim, with a rule like this: privilege_level : ( first=MULT | first=MULT DOT second=MULT | first=IDENTIFIER DOT second=MULT | first=IDENTIFIER DOT second=IDENTIFIER | first=IDENTIFIER ) -> ^( PRIVILEGE_LEVEL $firs