code: function makeError(e) {
      return {
        fatal: true,
        severity: 2,
        message: (e.message || '').split('\n', 1)[0],
        line: parser.line,
        column: parser.column
      };
    }
docs: generate a detailed error using the parser's state