aboutsummaryrefslogtreecommitdiff
path: root/vendor/Ltac2/src/tac2print.mli
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/Ltac2/src/tac2print.mli')
-rw-r--r--vendor/Ltac2/src/tac2print.mli46
1 files changed, 46 insertions, 0 deletions
diff --git a/vendor/Ltac2/src/tac2print.mli b/vendor/Ltac2/src/tac2print.mli
new file mode 100644
index 0000000000..9b9db2937d
--- /dev/null
+++ b/vendor/Ltac2/src/tac2print.mli
@@ -0,0 +1,46 @@
+(************************************************************************)
+(* v * The Coq Proof Assistant / The Coq Development Team *)
+(* <O___,, * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2016 *)
+(* \VV/ **************************************************************)
+(* // * This file is distributed under the terms of the *)
+(* * GNU Lesser General Public License Version 2.1 *)
+(************************************************************************)
+
+open Tac2expr
+open Tac2ffi
+
+(** {5 Printing types} *)
+
+type typ_level =
+| T5_l
+| T5_r
+| T2
+| T1
+| T0
+
+val pr_typref : type_constant -> Pp.t
+val pr_glbtype_gen : ('a -> string) -> typ_level -> 'a glb_typexpr -> Pp.t
+val pr_glbtype : ('a -> string) -> 'a glb_typexpr -> Pp.t
+
+(** {5 Printing expressions} *)
+
+val pr_constructor : ltac_constructor -> Pp.t
+val pr_internal_constructor : type_constant -> int -> bool -> Pp.t
+val pr_projection : ltac_projection -> Pp.t
+val pr_glbexpr_gen : exp_level -> glb_tacexpr -> Pp.t
+val pr_glbexpr : glb_tacexpr -> Pp.t
+
+(** {5 Printing values}*)
+
+type val_printer =
+ { val_printer : 'a. Environ.env -> Evd.evar_map -> valexpr -> 'a glb_typexpr list -> Pp.t }
+
+val register_val_printer : type_constant -> val_printer -> unit
+
+val pr_valexpr : Environ.env -> Evd.evar_map -> valexpr -> 'a glb_typexpr -> Pp.t
+
+(** {5 Utilities} *)
+
+val int_name : unit -> (int -> string)
+(** Create a function that give names to integers. The names are generated on
+ the fly, in the order they are encountered. *)