[antlr-interest] ANTLR 3.0.1: invalid character column in a mismatch character error message.
Terence Parr
parrt at cs.usfca.edu
Mon Aug 11 14:31:55 PDT 2008
On Aug 11, 2008, at 12:56 PM, Gavin Lambert wrote:
> At 03:44 12/08/2008, Terence Parr wrote:
> >Havent seen the thread but are we talking about lines 1... and
> >char position 0... ? If so, char position is not column so I
> >went with C-derivative language indexing as it is the relative
> >position from start of line not the column. Columns start with 1.
>
> Yes, and the issue being discussed is that when printing error
> messages ANTLR seems to display the char position in a format where
> you're expecting to see the column.
oh, right. Well, yeah, people expect column...problem is what to do
with tabs etc...can override message handler though
Ter
More information about the antlr-interest
mailing list