lexer.ts -> fixed type errors

This commit is contained in:
tel0065
2022-03-25 11:05:38 -05:00
committed by GitHub
parent 2f4800448b
commit ca3a5163fe

View File

@@ -95,7 +95,6 @@ export default class Lexer {
restart(text ? : string): void {
this.pos = 0;
this._currToken = EOFTOKEN; // if no input, already on EOFTOKEN
if (text) {
this.textLines = text.split('\n');
this.next(); // advance to the first token