1
0

ivprogLexer.js 417 B

1234567891011
  1. import { SyntaxErrorFactory } from "./error/syntaxErrorFactory";
  2. export function recover (_) {
  3. const start = this._tokenStartCharIndex;
  4. const stop = this._input.index;
  5. let text = this._input.getText(start, stop);
  6. text = this.getErrorDisplay(text);
  7. const line = this._tokenStartLine;
  8. const column = this._tokenStartColumn;
  9. throw SyntaxErrorFactory.invalid_character(text, line, column);
  10. }