diff options
author | Sérgio Queiroz <sqmedeiros@gmail.com> | 2017-12-27 14:13:25 -0300 |
---|---|---|
committer | Sérgio Queiroz <sqmedeiros@gmail.com> | 2017-12-27 14:13:25 -0300 |
commit | 772df00e061db3cd7d0af92c8ab65bc023d8121d (patch) | |
tree | 48e343e06a4b3ea4a4423330e1256606db4d53f3 /lpprint.c | |
parent | e4cc8be34e590dc22f0a25ecfa269624b1569925 (diff) | |
download | lpeglabel-772df00e061db3cd7d0af92c8ab65bc023d8121d.tar.gz lpeglabel-772df00e061db3cd7d0af92c8ab65bc023d8121d.tar.bz2 lpeglabel-772df00e061db3cd7d0af92c8ab65bc023d8121d.zip |
Implementing the new semantics of predicates when a label is thrown
Diffstat (limited to 'lpprint.c')
-rw-r--r-- | lpprint.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -58,7 +58,7 @@ void printinst (const Instruction *op, const Instruction *p) { | |||
58 | "testany", "testchar", "testset", | 58 | "testany", "testchar", "testset", |
59 | "span", "behind", | 59 | "span", "behind", |
60 | "ret", "end", | 60 | "ret", "end", |
61 | "choice", "jmp", "call", "open_call", | 61 | "choice", "pred_choice", "jmp", "call", "open_call", /* labeled failure */ |
62 | "commit", "partial_commit", "back_commit", "failtwice", "fail", "giveup", | 62 | "commit", "partial_commit", "back_commit", "failtwice", "fail", "giveup", |
63 | "fullcapture", "opencapture", "closecapture", "closeruntime", | 63 | "fullcapture", "opencapture", "closecapture", "closeruntime", |
64 | "throw", "throw_rec", /* labeled failure */ | 64 | "throw", "throw_rec", /* labeled failure */ |
@@ -103,7 +103,8 @@ void printinst (const Instruction *op, const Instruction *p) { | |||
103 | break; | 103 | break; |
104 | } | 104 | } |
105 | case IJmp: case ICall: case ICommit: case IChoice: | 105 | case IJmp: case ICall: case ICommit: case IChoice: |
106 | case IPartialCommit: case IBackCommit: case ITestAny: { | 106 | case IPartialCommit: case IBackCommit: case ITestAny: |
107 | case IPredChoice: { /* labeled failure */ | ||
107 | printjmp(op, p); | 108 | printjmp(op, p); |
108 | break; | 109 | break; |
109 | } | 110 | } |