(int pc)
| 49 | // skipNop() follows any no-op or capturing instructions and returns the |
| 50 | // resulting instruction. |
| 51 | Inst skipNop(int pc) { |
| 52 | Inst i = inst[pc]; |
| 53 | while (i.op == Inst.NOP || i.op == Inst.CAPTURE) { |
| 54 | i = inst[pc]; |
| 55 | pc = i.out; |
| 56 | } |
| 57 | return i; |
| 58 | } |
| 59 | |
| 60 | // prefix() returns a pair of a literal string that all matches for the |
| 61 | // regexp must start with, and a boolean which is true if the prefix is the |