federicobond / solidity-parser-antlr

A Solidity parser for JS built on top of a robust ANTLR4 grammar
MIT License
155 stars 55 forks source link

Add line and column to error message #41

Closed fvictorio closed 5 years ago

fvictorio commented 5 years ago

Instead of having this error message:

ParserError: missing '(' at 'uint'

show this:

ParserError: missing '(' at 'uint' (5:33)

I think this can make a huge difference when the parse error is not caught and ends up being shown to the user.