LeopoldArkham / Molten

[WIP] Molten - Style-preserving TOML parser.
Apache License 2.0
40 stars 8 forks source link

Errors should report their position #14

Closed LeopoldArkham closed 6 years ago

LeopoldArkham commented 7 years ago

Initially, we can just convert the current parser index into a (column, line) pair. Later on, it would be nice to backtrack to the beginning of the item causing a problem.

Reporting a span consisting of two (col, line) pairs is a goal down the line but not a priority. (Good for highlighting errors in an editor, for instance)

LeopoldArkham commented 6 years ago

closed by #33