diff options
| author | filliatr | 2000-11-06 16:43:51 +0000 |
|---|---|---|
| committer | filliatr | 2000-11-06 16:43:51 +0000 |
| commit | 723c344d3e4cf7fdc2e4854ea7d55d140570424d (patch) | |
| tree | 41ae18d8e43aa80007d361e83414d3b043f693ee /parsing | |
| parent | 826913ee19c25cfe445f574080524662bdba1597 (diff) | |
nouveau discharge fait par le noyau; plus de recettes dans les corps des constantes
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@807 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'parsing')
| -rw-r--r-- | parsing/pretty.ml | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/parsing/pretty.ml b/parsing/pretty.ml index 75d6dc4ce1..35d36bfca3 100644 --- a/parsing/pretty.ml +++ b/parsing/pretty.ml @@ -51,20 +51,6 @@ let pkprinters = function | CCI -> (prterm,prterm_env) | _ -> anomaly "pkprinters" -let print_recipe = function - | Some { contents = Cooked c } -> prterm c - | Some { contents = Recipe _ } -> [< 'sTR"<recipe>" >] - | None -> [< 'sTR"<uncookable>" >] - -(* -let fprint_recipe = function - | Some c -> fprterm c - | None -> [< 'sTR"<uncookable>" >] -*) - -let print_typed_recipe (val_0,typ) = - [< print_recipe val_0; 'fNL; 'sTR " : "; prtype typ; 'fNL >] - let print_impl_args = function | [] -> [<>] | [i] -> [< 'sTR"Position ["; 'iNT i; 'sTR"] is implicit" >] @@ -211,6 +197,13 @@ let print_section_variable sp = let l = implicits_of_var id in [< print_named_decl d; print_impl_args l; 'fNL >] +let print_body = function + | Some c -> prterm c + | None -> [< 'sTR"<no body>" >] + +let print_typed_body (val_0,typ) = + [< print_body val_0; 'fNL; 'sTR " : "; prtype typ; 'fNL >] + let print_constant with_values sep sp = let cb = Global.lookup_constant sp in if kind_of_path sp = CCI then @@ -226,7 +219,7 @@ let print_constant with_values sep sp = [< 'sTR(print_basename (ccisp_of sp)) ; 'sTR sep; 'cUT ; if with_values then - print_typed_recipe (val_0,typ) + print_typed_body (val_0,typ) else [< prtype typ ; 'fNL >] >]); print_impl_args (list_of_implicits l); 'fNL >] @@ -483,7 +476,7 @@ let print_local_context () = Global.lookup_constant sp in [< print_last_const rest; 'sTR(print_basename sp) ;'sTR" = "; - print_typed_recipe (val_0,typ) >] + print_typed_body (val_0,typ) >] | "INDUCTIVE" -> let mib = Global.lookup_mind sp in [< print_last_const rest;print_mutual sp mib; 'fNL >] |
