diff options
| author | ppedrot | 2013-07-05 01:49:27 +0000 |
|---|---|---|
| committer | ppedrot | 2013-07-05 01:49:27 +0000 |
| commit | a778b72e3ebfbe784fbe55ee5e124ba3f66cfb10 (patch) | |
| tree | 45ccc4afcf8edc5aed09d76b45c826a1e779af66 /printing/pptactic.ml | |
| parent | 556c2ce6f1b09d09484cc83f6ada213496add45b (diff) | |
Expurgating the useless difference between List0 and List1 at the
level of generic arguments. This only matters at parsing time.
TODO: the current status is not satisfactory enough, as rule
emptyness is still decided w.r.t. generic arguments. This should be
done on a grammar entry basis instead.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16617 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'printing/pptactic.ml')
| -rw-r--r-- | printing/pptactic.ml | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/printing/pptactic.ml b/printing/pptactic.ml index 0fd3b454ce..04a2ca1e30 100644 --- a/printing/pptactic.ml +++ b/printing/pptactic.ml @@ -161,12 +161,9 @@ let rec pr_raw_generic prc prlc prtac prpat prref (x:Genarg.rlevel Genarg.generi pr_with_bindings prc prlc (out_gen (rawwit wit_constr_with_bindings) x) | BindingsArgType -> pr_bindings_no_with prc prlc (out_gen (rawwit wit_bindings) x) - | List0ArgType _ -> + | ListArgType _ -> hov 0 (pr_sequence (pr_raw_generic prc prlc prtac prpat prref) - (fold_list0 (fun a l -> a::l) x [])) - | List1ArgType _ -> - hov 0 (pr_sequence (pr_raw_generic prc prlc prtac prpat prref) - (fold_list1 (fun a l -> a::l) x [])) + (fold_list (fun a l -> a::l) x [])) | OptArgType _ -> hov 0 (fold_opt (pr_raw_generic prc prlc prtac prpat prref) (mt()) x) | PairArgType _ -> hov 0 @@ -203,12 +200,9 @@ let rec pr_glb_generic prc prlc prtac prpat x = pr_with_bindings prc prlc (out_gen (glbwit wit_constr_with_bindings) x) | BindingsArgType -> pr_bindings_no_with prc prlc (out_gen (glbwit wit_bindings) x) - | List0ArgType _ -> - hov 0 (pr_sequence (pr_glb_generic prc prlc prtac prpat) - (fold_list0 (fun a l -> a::l) x [])) - | List1ArgType _ -> + | ListArgType _ -> hov 0 (pr_sequence (pr_glb_generic prc prlc prtac prpat) - (fold_list1 (fun a l -> a::l) x [])) + (fold_list (fun a l -> a::l) x [])) | OptArgType _ -> hov 0 (fold_opt (pr_glb_generic prc prlc prtac prpat) (mt()) x) | PairArgType _ -> hov 0 @@ -239,12 +233,9 @@ let rec pr_top_generic prc prlc prtac prpat x = pr_with_bindings prc prlc (c,b) | BindingsArgType -> pr_bindings_no_with prc prlc (out_gen (topwit wit_bindings) x).Evd.it - | List0ArgType _ -> - hov 0 (pr_sequence (pr_top_generic prc prlc prtac prpat) - (fold_list0 (fun a l -> a::l) x [])) - | List1ArgType _ -> + | ListArgType _ -> hov 0 (pr_sequence (pr_top_generic prc prlc prtac prpat) - (fold_list1 (fun a l -> a::l) x [])) + (fold_list (fun a l -> a::l) x [])) | OptArgType _ -> hov 0 (fold_opt (pr_top_generic prc prlc prtac prpat) (mt()) x) | PairArgType _ -> hov 0 |
