| 1 | (************************************************************************) |
| 2 | (* * The Rocq Prover / The Rocq Development Team *) |
| 3 | (* v * Copyright INRIA, CNRS and contributors *) |
| 4 | (* <O___,, * (see version control and CREDITS file for authors & dates) *) |
| 5 | (* \VV/ **************************************************************) |
| 6 | (* // * This file is distributed under the terms of the *) |
| 7 | (* * GNU Lesser General Public License Version 2.1 *) |
| 8 | (* * (see LICENSE file for the text of the license) *) |
| 9 | (************************************************************************) |
| 10 | |
| 11 | open Names |
| 12 | open Tac2expr |
| 13 | open Tac2val |
| 14 | |
| 15 | type environment = Tac2env.environment |
| 16 | |
| 17 | val empty_environment : environment |
| 18 | |
| 19 | val interp : environment -> glb_tacexpr -> valexpr Proofview.tactic |
| 20 | |
| 21 | val interp_value : environment -> glb_tacexpr -> valexpr |
| 22 | (** Same as [interp] but assumes that the argument is a syntactic value. *) |
| 23 | |
| 24 | val eval_global : ltac_constant -> valexpr |
| 25 | |
| 26 | val eval_glb_ext : environment -> Tac2dyn.Arg.glb -> valexpr Proofview.tactic |
| 27 | |
| 28 | val push_id : environment -> Id.t -> valexpr -> environment |
| 29 | |
| 30 | (* val interp_app : closure -> ml_tactic *) |
| 31 | |
| 32 | (** {5 Cross-boundary encodings} *) |
| 33 | |
| 34 | val get_env : Ltac_pretype.unbound_ltac_var_map -> environment |
| 35 | val set_env : environment -> Ltac_pretype.unbound_ltac_var_map -> Ltac_pretype.unbound_ltac_var_map |
| 36 | |
| 37 | (** {5 Exceptions} *) |
| 38 | |
| 39 | exception LtacError of KerName.t * valexpr array |
| 40 | (** Ltac2-defined exceptions seen from OCaml side *) |