Parser - errorhandling
An invalid input is rejected, resulting in a meaningful error message. For instance:
foo.mc:3:8: error: unexpected '{', expected ‘(’
It is recommended to closely follow the error message format of other compilers. This allows for better IDE integration.
Displaying the offending source code along with the error message is helpful, but not required.
Parsing may stop on the first error. Error recovery is optional. Pay attention to operator precedence.