()
| 609 | } |
| 610 | |
| 611 | private readOperator(): Operator { |
| 612 | let op = ""; |
| 613 | |
| 614 | while (this.position < this.data.length) { |
| 615 | const ch = this.data[this.position]; |
| 616 | |
| 617 | if (isWhitespace(ch) || isDelimiter(ch) || isDigit(ch)) { |
| 618 | break; |
| 619 | } |
| 620 | |
| 621 | op += String.fromCharCode(ch); |
| 622 | |
| 623 | this.position++; |
| 624 | } |
| 625 | |
| 626 | return { type: "operator", op }; |
| 627 | } |
| 628 | } |
| 629 | |
| 630 | // ========================================================================= |
no test coverage detected