[antlr-interest] Question regarding latest ansi c grammar release.
Edgar Johnson
ejohnsoe2001 at yahoo.com
Fri Jul 21 07:13:09 PDT 2006
Hi,
When using the latest release of the ansi c grammar for antlr 3
released by Parr on wed of this week (Terence Parr Wed Jul 19, 2006 18:18 link: www.antlr.org/grammar/list),
I recieved the following output:
C:\projects\antlr\ANTLRW~1\c>runs pt.h
Parsing: samples\pt.h . . .
[translation_unit, external_declaration, declaration,
declaration_specifiers]: line 8:8 required (...)+ loop (decision=9
) did not match anything; token=[@54,79:87='SVector64',<4>,8:8]
define type SVector64
[translation_unit, external_declaration, declaration]: line 8:18
mismatched token: [@56,89:92='temp',<4>,8:18]; expectin
g type ';'
SVector64 is a type
define type SGeocentric
SVector64 is a type
define type SLocation
for the following input:
C:\projects\antlr\ANTLRW~1\c>type samples\pt.h
struct SVector64
{
int X;
int Y;
int Z;
};
typedef SVector64 temp;
typedef SVector64 SGeocentric;
typedef SVector64 SLocation;
How come the tokens do not match for the first occurence? (did not
match anything)
Thanks,
Edgar
<!--
---------------------------------
How low will we go? Check out Yahoo! Messengers low PC-to-Phone call rates.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20060721/1fb565d7/attachment-0001.html
More information about the antlr-interest
mailing list