[antlr-interest] ANTLR 3.0.1: invalid character column in a mismatch character error message.

Francis ANDRE francis.andre.kampbell at orange.fr
Sun Aug 10 12:14:55 PDT 2008


This is incoherent....  The reported erroneous  line starts at 1 while 
column starts at 0!!

BTW, the common user (the one not scientist but simply middle average 
Cobol programmer) start each column at 1. So how can this could be changed??


Raphael Reitzig a écrit :
> Hi!
>
> As computer scientist, Ter counts from zero. Intuitively.
>
> Raphael
>
> "Francis ANDRE" <francis.andre.kampbell at orange.fr> wrote (Sun Aug 10 
> 19:14:47 2008):
>
>> Hi
>>
>> When parsing the following program with my grammar:
>> 12345678901234567890
>> --------------------------
>> 222-AAA = .2 + +3.4.
>>
>> i got the error message: line 1:3 mismatched character '-' expecting 
>> set null
>> The erroneous character is in column 4 and not 3 as posted.
>>
>> cheers
>>
>> FA
>>
>>
>>
>>
>
>
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>




More information about the antlr-interest mailing list