summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSon Ho2022-01-19 21:45:51 +0100
committerSon Ho2022-01-19 21:45:51 +0100
commitf80a03e1b124f201a25197f3e983568843d73de2 (patch)
tree2ab5ed97abbf12b554b83e215c988860eedbca98 /src
parent778e8845b63186c06eb78bd495bb6d4b4726f0f8 (diff)
Update the return values
Diffstat (limited to 'src')
-rw-r--r--src/Cps.ml12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/Cps.ml b/src/Cps.ml
index adb42831..fca22fd3 100644
--- a/src/Cps.ml
+++ b/src/Cps.ml
@@ -6,15 +6,17 @@ module V = Values
module C = Contexts
(** Result of evaluating a statement *)
-type statement_eval_res = Unit | Break of int | Continue of int | Return
+type statement_eval_res =
+ | Unit
+ | Break of int
+ | Continue of int
+ | Return
+ | Panic
(** Synthesized expresssion - dummy for now *)
type sexpr = SExpr
-(** TODO: change the name *)
-type eval_error = Panic
-
-type eval_result = (sexpr option, eval_error) Result.result
+type eval_result = sexpr option
type m_fun = C.eval_ctx -> eval_result
(** Monadic function *)