umut-sahin / dotlr

An LR(1) parser generator and visualizer created for educational purposes.
Apache License 2.0
91 stars 4 forks source link

Add line and column information to parsing errors #1

Closed umut-sahin closed 2 weeks ago

umut-sahin commented 3 months ago

Parsing errors are displayed like so:

$ dotlr calculator.lr
...

> 1 + (2
syntax error: unexpected end of input (expected one of '^', '+', '-', '*', '/', ')')

Which lacks line and column information. And those are a must have for big inputs.