narrowtux / abacus

Parses and evaluates mathematical expressions in Elixir. Inspired by math.js
MIT License
84 stars 18 forks source link

Better error reports #9

Open narrowtux opened 7 years ago

narrowtux commented 7 years ago

The parser should be improved so that we can extract the line and column where a syntax error happened in the input.

With this, error reports like the following should be possible:

Input: 1+)
         ^
Unexpected Token '('.

What needs to be done for this: