ante
ante copied to clipboard
Improve parser error messages
Currently the parser fails on the first error and issues rather poor error messages in general (poor hints as to what went wrong, sometimes poor locality as well).
The parser should be explored to ways it can give better errors and/or have better error recovery (e.g. skip to next newline token if the current statement errors).
The --parse
and --lex
compiler flags may help with debugging here.