[antlr-interest] Help needed in fixing the grammar issue

vasanthi a vasanthi.ak at gmail.com
Tue Apr 21 03:36:04 PDT 2009


Hi All

I have the below lines of code in my source, but while I try instrument the
source, it throws error

1:debug_error((char *)("ConnectIntPstn : NewAccessModem failure: "), 1,
(long)(modem_status), (long)(0));

It gives error

[ unexpected token: , ]



2: if ((((__ctype_b))[(int) ((TRECK_BYTE))] & (__ctype_mask_t) _ISprint))

It gives error

[ unexpected token: ) ]



3:   return (__extension__ ({ unsigned short int __bsx = (w); ((((__bsx) >>
8) & 0xff) | (((__bsx) & 0xff) << 8)); }));

it gives error

unexpected token: __extension__



Can you please provide complete grammar for parsing the above.

where Can I get the latest STDC.g and GNUC.g .

The grammar which I have is written in 1997 and quite old one.

Can you please let me know where we can get the latest grammar.

Thanks and regards

Vasanthi A
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090421/9def0d53/attachment.html 


More information about the antlr-interest mailing list