mirror of
https://github.com/We-Dont-Byte/Mind_Reader.git
synced 2024-11-15 03:35:59 +00:00
lexer.ts -> fixed type errors
This commit is contained in:
parent
2f4800448b
commit
ca3a5163fe
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user