parser: reports unhandled errors with location

Unhandled syntax errors were silently ignored.
They are now reported with their location and a basic error message.