blob: b2687f01a38349aeb6cdcc717ee594d54de5d705 (
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
54
55
56
57
58
59
60
61
62
63
64
65
66
|
(************************************************************************)
(* 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 Loc
open Names
open Tac2qexpr
open Tac2expr
(** Syntactic quoting of expressions. *)
(** Contrarily to Tac2ffi, which lives on the semantic level, this module
manipulates pure syntax of Ltac2. Its main purpose is to write notations. *)
val constructor : ?loc:Loc.t -> ltac_constructor -> raw_tacexpr list -> raw_tacexpr
val of_anti : ('a -> raw_tacexpr) -> 'a or_anti -> raw_tacexpr
val of_int : int located -> raw_tacexpr
val of_pair : ('a -> raw_tacexpr) -> ('b -> raw_tacexpr) -> ('a * 'b) located -> raw_tacexpr
val of_tuple : ?loc:Loc.t -> raw_tacexpr list -> raw_tacexpr
val of_variable : Id.t located -> raw_tacexpr
val of_ident : Id.t located -> raw_tacexpr
val of_constr : Constrexpr.constr_expr -> raw_tacexpr
val of_open_constr : Constrexpr.constr_expr -> raw_tacexpr
val of_list : ?loc:Loc.t -> ('a -> raw_tacexpr) -> 'a list -> raw_tacexpr
val of_bindings : bindings -> raw_tacexpr
val of_intro_pattern : intro_pattern -> raw_tacexpr
val of_intro_patterns : intro_pattern list located -> raw_tacexpr
val of_clause : clause -> raw_tacexpr
val of_induction_clause : induction_clause -> raw_tacexpr
val of_rewriting : rewriting -> raw_tacexpr
val of_occurrences : occurrences -> raw_tacexpr
val of_reference : Libnames.reference or_anti -> raw_tacexpr
val of_hyp : ?loc:Loc.t -> Id.t located -> raw_tacexpr
(** id ↦ 'Control.hyp @id' *)
val of_exact_hyp : ?loc:Loc.t -> Id.t located -> raw_tacexpr
(** id ↦ 'Control.refine (fun () => Control.hyp @id') *)
val of_exact_var : ?loc:Loc.t -> Id.t located -> raw_tacexpr
(** id ↦ 'Control.refine (fun () => Control.hyp @id') *)
val of_dispatch : dispatch -> raw_tacexpr
val of_strategy_flag : strategy_flag -> raw_tacexpr
|