Add a ParseErrorException class, which stores location information about syntax errors.
Implement parser error exceptions.