[antlr-interest] Bug in C runtime column handling

Wincent Colaiuta win at wincent.com
Mon Jul 2 09:41:42 PDT 2007


El 2/7/2007, a las 18:09, Jim Idle escribió:

> It was -1 in the Java at some point and I think Ter changed it. I have
> not had time to work out the implications of this because the input
> stuff tests for -1 in places I think. I will get to it.

I just did a grep over the source tree and found these:

src/antlr3commontree.c:    if   (token == NULL || token- 
 >getCharPositionInLine(token) == -1)
src/antlr3commontreenodestream.c:    if (k == -1)
src/antlr3commontreenodestream.c:    if (ctns->currentChildIndex == -1)
src/antlr3tokenstream.c:    if  (cts->p == -1)
src/antlr3tokenstream.c:    if  (cts->p == -1)
src/antlr3tokenstream.c:    if  (cts->p == -1)
src/antlr3tokenstream.c:    if  (cts->p == -1)
src/antlr3tokenstream.c:    if  (tokenStream->p == -1)
src/antlr3tokenstream.c:    if  (tokenStream->p == -1)

Of them, the first one looks to be the most interesting...

Cheers,
Wincent



More information about the antlr-interest mailing list