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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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