Skip to content

Commit 09ab890

Browse files
committed
fix pausing and a few other tweaks
1 parent 86c13ce commit 09ab890

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

llparse/compilator.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ def doBuild(self, out: list[str]):
501501

502502
assert self.ref.otherwise
503503
otherwise = ctx.unwrapNode(self.ref.otherwise.node)
504-
out.append(f"{ctx.currentField()} = (void*) (intptr_t) {otherwise};")
504+
out.append(f"{ctx.currentField()} = (void*) (intptr_t) {otherwise.cachedDecel};")
505505
out.append(f"return {STATE_ERROR};")
506506

507507

@@ -1235,13 +1235,14 @@ def unwrapNode(self, node: IWrap[_frontend.node.Node]):
12351235
r = Consume(ref)
12361236
elif isinstance(ref, _frontend.node.Empty):
12371237
r = Empty(ref)
1238+
elif isinstance(ref, _frontend.node.Pause):
1239+
r = Pause(ref)
1240+
12381241
elif isinstance(ref, _frontend.node.Error):
12391242
r = Error(ref)
12401243
elif isinstance(ref, _frontend.node.Invoke):
12411244
r = Invoke(ref)
1242-
elif isinstance(ref, _frontend.node.Pause):
1243-
r = Pause(ref)
1244-
1245+
12451246
elif isinstance(ref, _frontend.node.SpanStart):
12461247
r = SpanStart(ref)
12471248

0 commit comments

Comments
 (0)