blob: 21fdcd03af65514935a6b0f9b88eda94c5b5325c (
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
|
(************************************************************************)
(* 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 Names
open Tac2expr
open Tac2ffi
type environment = Tac2env.environment
val empty_environment : environment
val interp : environment -> glb_tacexpr -> valexpr Proofview.tactic
(* val interp_app : closure -> ml_tactic *)
(** {5 Cross-boundary encodings} *)
val get_env : Ltac_pretype.unbound_ltac_var_map -> environment
val set_env : environment -> Ltac_pretype.unbound_ltac_var_map -> Ltac_pretype.unbound_ltac_var_map
(** {5 Exceptions} *)
exception LtacError of KerName.t * valexpr array
(** Ltac2-defined exceptions seen from OCaml side *)
(** {5 Backtrace} *)
val get_backtrace : backtrace Proofview.tactic
val with_frame : frame -> 'a Proofview.tactic -> 'a Proofview.tactic
val print_ltac2_backtrace : bool ref
|