[antlr-interest] Reporting a bug in C grammar

Gokulakannan Somasundaram gokul007 at gmail.com
Fri Feb 3 06:17:29 PST 2012


Hi,
   I am referring to antlr 3.4 C runtime. In antlr3tokenstream.c, on line
750, there are some lines like this.

*if  (   types == NULL*
* || types->isMember(types, tok->getType(tok) == ANTLR3_TRUE)*
*    )*

I think this should be changed to something like this.
*if  (    types == NULL*
* || (types->isMember(types, tok->getType(tok)) == ANTLR3_TRUE)*
*     )*
*
*
Thanks,
Gokul.


More information about the antlr-interest mailing list