Skip to content

Commit

Permalink
Missing rule
Browse files Browse the repository at this point in the history
  • Loading branch information
rossberg committed Feb 19, 2021
1 parent 5e510ee commit a44c070
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions interpreter/exec/eval.ml
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,10 @@ let rec step (c : config) : config =
[Ref (ContRef (List.length ts, ctxt'))] @ vs1 @ vs,
[Plain (Br (List.assq evt hs)) @@ e.at]

| Resume (hs, (vs', {it = Suspending (evt, vs1, ctxt); at} :: es')), vs ->
let ctxt' code = [], [Resume (hs, compose (ctxt code) (vs', es')) @@ e.at] in
vs, [Suspending (evt, vs1, ctxt') @@ at]

| Resume (hs, (vs', e' :: es')), vs when is_jumping e' ->
vs, [e']

Expand Down

0 comments on commit a44c070

Please sign in to comment.