Throw error (defaults to unexpected token if no message provided)
(message = `Unexpected token ${this.raw}`, column = this.start)
| 534 | |
| 535 | /** Throw error (defaults to unexpected token if no message provided) */ |
| 536 | err(message = `Unexpected token ${this.raw}`, column = this.start) { |
| 537 | throw new Error(`Parser Error: ${message} at column ${column} in expression [${this.src}]`); |
| 538 | } |
| 539 | |
| 540 | /** Consumes the current token if it matches the provided one and returns true, otherwise returns false */ |
| 541 | opt(token) { |
no outgoing calls
no test coverage detected