[antlr-interest] cpp runtime
Henry Butowsky
henryb at ntlworld.com
Tue Mar 13 08:49:03 PDT 2007
Hi all cpp maintainers -
My meticulous boss has pointed out a "shadow" declaration of
"theRetToken" in the Lexer. Is this something thats fixed in v3 ?
Regards Henry
ANTLR_USE_NAMESPACE(antlr)RefToken ncoLexer::nextToken()
{
ANTLR_USE_NAMESPACE(antlr)RefToken theRetToken;
for (;;) {
ANTLR_USE_NAMESPACE(antlr)RefToken theRetToken;
int _ttype = ANTLR_USE_NAMESPACE(antlr)Token::INVALID_TYPE;
setCommitToPath(false);
int _m;
_m = mark();
resetText();
try { // for lexical and char stream error handling
switch ( LA(1)) {
case 0x3f /* '?' */ :
{
mQUESTION(true);
theRetToken=_returnToken;
break;
}
case 0x28 /* '(' */ :
{
More information about the antlr-interest
mailing list