let l = OCic2NCic.convert_obj u o in
List.iter
(fun (u,_,_,_,_ as o) ->
- prerr_endline ("CHECK: " ^ NUri.string_of_uri u);
+ prerr_endline ("CHECK: " ^ NUri.string_of_uri u ^"\n"^NCicPp.ppobj o);
try NCicTypeChecker.typecheck_obj o
with
| NCicTypeChecker.AssertFailure s
| C.Sort (C.Type n) -> "Type"^string_of_int n
in
aux (List.map fst context)
+;;
+
+let ppobj = function
+ | (u,_,_,_,NCic.Fixpoint (b, fl, _)) ->
+ "let rec "^NUri.string_of_uri u^"\n"^
+ String.concat "\nand "
+ (List.map (fun (_,name,n,ty,bo) ->
+ name ^ " on " ^ string_of_int n ^ " : " ^ ppterm ty ^ " :=\n"^
+ ppterm bo) fl)
+ | _ -> "todo"
+;;
+
+