diff options
author | Son Ho | 2021-11-19 18:26:00 +0100 |
---|---|---|
committer | Son Ho | 2021-11-19 18:26:00 +0100 |
commit | 4a28b75fe834878b1c93d1fe6fe8a02576957f75 (patch) | |
tree | 8c968f4fffccabdad88ef52ac6c7617b10c7ba3b /src/Interpreter.ml | |
parent | ef830bd7bedcad8b465aa4ac92cff30649426ea4 (diff) |
Start working on pretty-printing
Diffstat (limited to 'src/Interpreter.ml')
-rw-r--r-- | src/Interpreter.ml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Interpreter.ml b/src/Interpreter.ml index b8daf38d..ca821f5b 100644 --- a/src/Interpreter.ml +++ b/src/Interpreter.ml @@ -91,13 +91,13 @@ and end_borrow_get_borrow_in_values config l outer_borrows vl0 : (res, v' :: vl') | _ -> (res, v' :: vl)) -(*let rec end_borrow_get_borrow_in_env config l env : borrow_lres * env = - match env with +(*let rec end_borrow_get_borrow_in_env config l env0 : borrow_lres * env = + match env0 with | [] -> NotFound - | Var (x, v) :: env' -> ( + | Var (x, v) :: env -> ( match end_borrow_get_borrow_in_value config None l v with | NotFound, v' -> - let res, env'' = end_borrow_get_borrow_in_env config l env' in + let res, env' = end_borrow_get_borrow_in_env config l env' in (res, Var (x, v') :: env'') | res, v' -> (res, Var (x, v') :: env')) | Abs _ :: _ -> unimplemented __LOC__*) |