aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Herbelin2016-04-13 16:15:31 +0200
committerHugo Herbelin2016-04-27 21:55:48 +0200
commit84d8a4bd7d797b6e13e4107ad24a6dcf4f098dbb (patch)
tree34fbdd599071199343ceed200af5b8a5823e562f
parent36fb3d3a53418a81675815e47b3810e11bc31e4c (diff)
Fixing printing of Register retroknowledge.
-rw-r--r--ltac/extraargs.ml420
-rw-r--r--printing/ppvernacsig.mli3
2 files changed, 21 insertions, 2 deletions
diff --git a/ltac/extraargs.ml4 b/ltac/extraargs.ml4
index 0bddcc9fdd..8b0123a90a 100644
--- a/ltac/extraargs.ml4
+++ b/ltac/extraargs.ml4
@@ -273,7 +273,23 @@ let pr_r_int31_field i31f =
| Retroknowledge.Int31PhiInv -> str "phi inv"
| Retroknowledge.Int31Plus -> str "plus"
| Retroknowledge.Int31Times -> str "times"
- | _ -> assert false
+ | Retroknowledge.Int31Constructor -> assert false
+ | Retroknowledge.Int31PlusC -> str "plusc"
+ | Retroknowledge.Int31PlusCarryC -> str "pluscarryc"
+ | Retroknowledge.Int31Minus -> str "minus"
+ | Retroknowledge.Int31MinusC -> str "minusc"
+ | Retroknowledge.Int31MinusCarryC -> str "minuscarryc"
+ | Retroknowledge.Int31TimesC -> str "timesc"
+ | Retroknowledge.Int31Div21 -> str "div21"
+ | Retroknowledge.Int31Div -> str "div"
+ | Retroknowledge.Int31Diveucl -> str "diveucl"
+ | Retroknowledge.Int31AddMulDiv -> str "addmuldiv"
+ | Retroknowledge.Int31Compare -> str "compare"
+ | Retroknowledge.Int31Head0 -> str "head0"
+ | Retroknowledge.Int31Tail0 -> str "tail0"
+ | Retroknowledge.Int31Lor -> str "lor"
+ | Retroknowledge.Int31Land -> str "land"
+ | Retroknowledge.Int31Lxor -> str "lxor"
let pr_retroknowledge_field f =
match f with
@@ -281,7 +297,7 @@ let pr_retroknowledge_field f =
| Retroknowledge.KNat natf -> pr_r_nat_field () () () natf
| Retroknowledge.KN nf -> pr_r_n_field () () () nf *)
| Retroknowledge.KInt31 (group, i31f) -> (pr_r_int31_field i31f) ++
- str "in " ++ str group
+ spc () ++ str "in " ++ qs group
VERNAC ARGUMENT EXTEND retroknowledge_nat
PRINTED BY pr_r_nat_field
diff --git a/printing/ppvernacsig.mli b/printing/ppvernacsig.mli
index 5d1c89332c..5e5e4bcf49 100644
--- a/printing/ppvernacsig.mli
+++ b/printing/ppvernacsig.mli
@@ -8,6 +8,9 @@
module type Pp = sig
+ (** Prints a fixpoint body *)
+ val pr_rec_definition : (Vernacexpr.fixpoint_expr * Vernacexpr.decl_notation list) -> Pp.std_ppcmds
+
(** Prints a vernac expression *)
val pr_vernac_body : Vernacexpr.vernac_expr -> Pp.std_ppcmds