aboutsummaryrefslogtreecommitdiff
path: root/parsing/termast.mli
blob: 29ff2d19c8e78ee2dbbbfe24c3b97c2c439d8f47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
(* $Id$ *)

(*i*)
open Names
open Term
open Sign
open Rawterm
(*i*)

(* Translation of pattern, rawterm and term into syntax trees for printing *)

val ast_of_pattern : pattern -> Coqast.t
val ast_of_rawconstr : rawconstr -> Coqast.t
val bdize : bool -> unit assumptions -> constr -> Coqast.t

(*i C'est bdize qui sait maintenant s'il faut afficher les casts ou pas
val bdize_no_casts : bool -> unit assumptions -> constr -> Coqast.t
i*)

val ast_of_constant     : constant -> Coqast.t
val ast_of_existential  : existential -> Coqast.t
val ast_of_constructor  : constructor -> Coqast.t
val ast_of_inductive    : inductive -> Coqast.t

(* For debugging *)
val print_implicits : bool ref
val print_casts : bool ref
val print_arguments : bool ref
val print_coercions : bool ref

val with_casts : ('a -> 'b) -> 'a -> 'b
val with_implicits : ('a -> 'b) -> 'a -> 'b
val with_arguments : ('a -> 'b) -> 'a -> 'b
val with_coercions : ('a -> 'b) -> 'a -> 'b