aboutsummaryrefslogtreecommitdiff
path: root/tac2core.mli
blob: 27144bc6e2c224de7677520ec523694a554ce575 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
(************************************************************************)
(*  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 Tac2env
open Tac2expr

(** {5 Hardwired data} *)

module Core :
sig

val t_list : type_constant
val c_nil : ltac_constant
val c_cons : ltac_constant

end

(** {5 Ltac2 FFI} *)

(** These functions allow to convert back and forth between OCaml and Ltac2
    data representation. The [to_*] functions raise an anomaly whenever the data
    has not expected shape. *)

module Value :
sig

val of_unit : unit -> valexpr
val to_unit : valexpr -> unit

val of_int : int -> valexpr
val to_int : valexpr -> int

val of_bool : bool -> valexpr
val to_bool : valexpr -> bool

val of_char : char -> valexpr
val to_char : valexpr -> char

val of_list : valexpr list -> valexpr
val to_list : valexpr -> valexpr list

val of_constr : EConstr.t -> valexpr
val to_constr : valexpr -> EConstr.t

val of_exn : Exninfo.iexn -> valexpr
val to_exn : valexpr -> Exninfo.iexn

end