Skip to content

Commit

Permalink
Fix some parsing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
myreen committed Sep 14, 2022
1 parent f2df689 commit e1a091a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compiler/backend/semantics/data_monadScript.sml
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ End

Definition if_var_def:
if_var n ^f ^g s =
case lookup n s.locals of
case sptree$lookup n s.locals of
| NONE => fail s
| SOME v => if isBool T v then f s else
if isBool F v then g s else fail s
End

Definition return_def[simp]:
return n s =
case lookup n s.locals of
case sptree$lookup n s.locals of
| NONE => fail s
| SOME v => (SOME (Rval v), flush_state F s)
End
Expand Down Expand Up @@ -124,7 +124,7 @@ val _ = set_fixity ":≡" (Infixl 480);

Definition move_def:
move dest src s =
case lookup src s.locals of
case sptree$lookup src s.locals of
| NONE => fail s
| SOME v => (NONE, set_var dest v s)
End
Expand Down

0 comments on commit e1a091a

Please sign in to comment.