bskinn / pent

pent Extracts Numerical Text -- Mini-language driven parser for structured numerical data in text
MIT License
20 stars 3 forks source link

Improve TokenError message to actually tell a user why their token is bad #56

Open bskinn opened 6 years ago

bskinn commented 6 years ago

As it sits, the pyparsing.ParseError is completely unintelligible, and the TokenError just tells you that something is wrong, but not what is wrong.

Maybe there's already a package out there that would automatically generate a targeted error message on a badly constructed token?