open Syntax (* Value *) type v = VNum of int | VFun of (v -> c -> t -> m -> v) and f = COp1 of e * string list * v list * op | COp2 of v * op | CApp1 of e * string list * v list | CApp2 of v | CPerform and c = f list and t = TNil | Trail of (v -> t -> m -> v) and m = MNil | MCons of (c * t * h) * m and h = v -> c -> t -> c -> t -> m -> v (* to_string : v -> string *) let rec to_string value = match value with VNum n -> string_of_int n | VFun _ -> "" (* Value.print : v -> unit *) let print exp = let str = to_string exp in print_string str