(match)
| 23 | return this.string.charAt(this.pos++) |
| 24 | } |
| 25 | eat(match) { |
| 26 | let ch = this.string.charAt(this.pos) |
| 27 | let ok |
| 28 | if (typeof match == "string") ok = ch == match |
| 29 | else ok = ch && (match.test ? match.test(ch) : match(ch)) |
| 30 | if (ok) {++this.pos; return ch} |
| 31 | } |
| 32 | eatWhile(match) { |
| 33 | let start = this.pos |
| 34 | while (this.eat(match)){} |
no test coverage detected