vlasovskikh / funcparserlib

Recursive descent parsing library for Python based on functional combinators
https://funcparserlib.pirx.ru
MIT License
346 stars 38 forks source link

Positions in lexer error ouput are 0-based instead of 1-based #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Usually text positions are 1-based. A text starts with line 1, position 1.

The lexer from the current trunk uses 1-based lines, but 0-based positions. 
This fact creates confusion in error messages.

Original issue reported on code.google.com by andrey.vlasovskikh on 14 Mar 2010 at 10:11

GoogleCodeExporter commented 9 years ago
Fixed in [e33b53943458].

Original comment by andrey.vlasovskikh on 14 Mar 2010 at 10:21

GoogleCodeExporter commented 9 years ago

Original comment by andrey.vlasovskikh on 26 May 2011 at 10:42