picoe / Eto.Parse

Recursive descent LL(k) parser for .NET with Fluent API, BNF, EBNF and Gold Grammars
MIT License
148 stars 30 forks source link

Getting error line/column #16

Open tpluscode opened 9 years ago

tpluscode commented 9 years ago

Hi. Is there an easy way to find out at which line/column parsing failed? Or do I have to calculate that manually by index?

cwensley commented 9 years ago

There's no automatic way right now, as Eto.Parse does not read line by line. The best way is to count the newlines up to the index of the error.