| 139 |
typing_env := Env.add x t !typing_env; |
typing_env := Env.add x t !typing_env; |
| 140 |
eval_env := Env.add x v !eval_env; |
eval_env := Env.add x v !eval_env; |
| 141 |
if not !quiet then |
if not !quiet then |
| 142 |
Format.fprintf ppf "val %a : @[%a@] = @[%a@]@." |
Format.fprintf ppf "val %a : @[@[%a@] =@ @[%a@]@]@." |
| 143 |
U.print (Id.value x) print_norm t print_value v) |
U.print (Id.value x) print_norm t print_value v) |
| 144 |
|
|
| 145 |
let rec collect_funs ppf accu = function |
let rec collect_funs ppf accu = function |
| 176 |
Location.dump_loc ppf e.Typed.exp_loc; |
Location.dump_loc ppf e.Typed.exp_loc; |
| 177 |
let v = Eval.eval !eval_env e in |
let v = Eval.eval !eval_env e in |
| 178 |
if not !quiet then |
if not !quiet then |
| 179 |
Format.fprintf ppf "- : @[%a@] = @[%a@]@." print_norm t print_value v; |
Format.fprintf ppf "- : @[@[%a@] =@ @[%a@]@]@." print_norm t print_value v; |
| 180 |
phrases ppf rest |
phrases ppf rest |
| 181 |
| { descr = Ast.LetDecl (p,e) } :: rest -> |
| { descr = Ast.LetDecl (p,e) } :: rest -> |
| 182 |
let decl = Typer.let_decl p e in |
let decl = Typer.let_decl p e in |