Closures (in interpretation)

This commit is contained in:
Dmitry Boulytchev 2019-09-24 01:12:04 +03:00
parent 39388d77fd
commit c92555f7a8
5 changed files with 38 additions and 25 deletions

View file

@ -40,7 +40,7 @@ let print_prg p = List.iter (fun i -> Printf.printf "%s\n" (show(insn) i)) p
(* The type for the stack machine configuration: control stack, stack and configuration from statement
interpreter
*)
type config = (prg * Expr.t State.t) list * Expr.t Value.t list * (Expr.t State.t * int list * int list)
type config = (prg * Expr.t State.t) list * (Expr.t, Expr.t State.t) Value.t list * (Expr.t State.t * int list * int list)
(* Stack machine interpreter