diff options
author | Son Ho | 2022-01-19 21:45:51 +0100 |
---|---|---|
committer | Son Ho | 2022-01-19 21:45:51 +0100 |
commit | f80a03e1b124f201a25197f3e983568843d73de2 (patch) | |
tree | 2ab5ed97abbf12b554b83e215c988860eedbca98 /src | |
parent | 778e8845b63186c06eb78bd495bb6d4b4726f0f8 (diff) |
Update the return values
Diffstat (limited to 'src')
-rw-r--r-- | src/Cps.ml | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -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 *) |