[antlr-interest] Question about example Ansi C grammar for antlr v3
Fredrik Ohrstrom
oehrstroem at gmail.com
Thu Oct 25 08:21:26 PDT 2007
I use the grammar for C that I found here:
http://www.antlr.org/grammar/1153358328744/c.g
And I found that the following code does not parse because beta
is added as a type...
typedef void (*Alfa)(int beta);
int main ()
{
int beta = x();
}
I also found that two identical typedefs in a row do not parse.
typedef int a;
typedef int a;
I have tried to fix these problems, but so far I have failed. Can
somebody help me?
Thank you very much in advance!
Fredrik Ohrstrom
More information about the antlr-interest
mailing list