aboutsummaryrefslogtreecommitdiff
path: root/ltac
diff options
context:
space:
mode:
authorMaxime Dénès2016-12-02 17:29:15 +0100
committerMaxime Dénès2016-12-02 17:29:15 +0100
commite83ffcd53acdebfbbd927b3c9b48a0d1ad6ca9e5 (patch)
tree26a9b934f0bf1f9dc4d1209cf613d60ad4a82b7b /ltac
parentfa1e627e12831417694b4fb538154721111741b5 (diff)
parent7e8434765ca1289aeb3a5200e791c9ced0acfde4 (diff)
Merge branch 'pr/367' into v8.6
Parts of PR#367: Fixing the "beautifier" and checking the parsing-printing reversibility
Diffstat (limited to 'ltac')
-rw-r--r--ltac/g_auto.ml410
1 files changed, 7 insertions, 3 deletions
diff --git a/ltac/g_auto.ml4 b/ltac/g_auto.ml4
index c561ecf606..6a8fa8d698 100644
--- a/ltac/g_auto.ml4
+++ b/ltac/g_auto.ml4
@@ -50,11 +50,17 @@ let eval_uconstrs ist cs =
} in
List.map (fun c -> Pretyping.type_uconstr ~flags ist c) cs
-let pr_auto_using _ _ _ = Pptactic.pr_auto_using (fun _ -> mt ())
+let pr_auto_using_raw _ _ _ = Pptactic.pr_auto_using Ppconstr.pr_constr_expr
+let pr_auto_using_glob _ _ _ = Pptactic.pr_auto_using (fun (c,_) -> Printer.pr_glob_constr c)
+let pr_auto_using _ _ _ = Pptactic.pr_auto_using Printer.pr_closed_glob
ARGUMENT EXTEND auto_using
TYPED AS uconstr_list
PRINTED BY pr_auto_using
+ RAW_TYPED AS uconstr_list
+ RAW_PRINTED BY pr_auto_using_raw
+ GLOB_TYPED AS uconstr_list
+ GLOB_PRINTED BY pr_auto_using_glob
| [ "using" ne_uconstr_list_sep(l, ",") ] -> [ l ]
| [ ] -> [ [] ]
END
@@ -206,8 +212,6 @@ GLOB_PRINTED BY pr_hints_path
| [ hints_path(p) hints_path(q) ] -> [ Hints.PathSeq (p, q) ]
END
-let pr_hintbases _prc _prlc _prt = Pptactic.pr_hintbases
-
ARGUMENT EXTEND opthints
TYPED AS preident_list_opt
PRINTED BY pr_hintbases