(e, n)
| 528 | (this.position = 0); |
| 529 | } |
| 530 | addRule(e, n) { |
| 531 | (n.position = this.position++), |
| 532 | (this.matchIndexes[this.matchAt] = n), |
| 533 | this.regexes.push([n, e]), |
| 534 | (this.matchAt += |
| 535 | (function (e) { |
| 536 | return RegExp(e.toString() + '|').exec('').length - 1; |
| 537 | })(e) + 1); |
| 538 | } |
| 539 | compile() { |
| 540 | 0 === this.regexes.length && (this.exec = () => null); |
| 541 | const e = this.regexes.map((e) => e[1]); |