()
| 87 | } |
| 88 | // Consume current char / 取当前字符并前进 |
| 89 | function next(): string { |
| 90 | return reStr[i++] || ""; |
| 91 | } |
| 92 | // If next is ch, consume it and return true; else false |
| 93 | // 若下一个字符为 ch,则消费并返回 true,否则返回 false |
| 94 | function eatIf(ch: string): boolean { |
no outgoing calls
no test coverage detected