| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
module SynterpAction : sig |
| 6 |
type t |
| 7 |
val pp : t -> Pp.t |
| 8 |
|
| 9 |
|
| 10 |
module Tree : sig |
| 11 |
type group |
| 12 |
|
| 13 |
val group_name : group -> string |
| 14 |
|
| 15 |
type node = |
| 16 |
| Group of group * tree |
| 17 |
| Action of t |
| 18 |
|
| 19 |
and tree = node list |
| 20 |
|
| 21 |
val to_list : tree -> t list |
| 22 |
|
| 23 |
val debug_pp : tree -> Pp.t |
| 24 |
end |
| 25 |
|
| 26 |
module WZipper : sig |
| 27 |
type zipper |
| 28 |
|
| 29 |
val collect : zipper -> Tree.tree |
| 30 |
end |
| 31 |
|
| 32 |
module RZipper : sig |
| 33 |
type zipper |
| 34 |
|
| 35 |
val collect : zipper -> Tree.tree |
| 36 |
|
| 37 |
val empty : zipper |
| 38 |
|
| 39 |
val is_empty : zipper -> [`Empty | `Group of Tree.group | `Action of t] |
| 40 |
|
| 41 |
val of_w : WZipper.zipper -> zipper |
| 42 |
end |
| 43 |
|
| 44 |
val log : WZipper.zipper Elpi.API.State.component |
| 45 |
val read : RZipper.zipper Elpi.API.State.component |
| 46 |
|
| 47 |
exception Error of Pp.t |
| 48 |
|
| 49 |
open Elpi.API |
| 50 |
open Elpi.Builtin |
| 51 |
open Names |
| 52 |
open Declaremods |
| 53 |
|
| 54 |
val synterp_state_after : t -> Vernacstate.Synterp.t |
| 55 |
|
| 56 |
type 'a replay = 'a -> State.t -> State.t * ModPath.t option |
| 57 |
|
| 58 |
val pop_BeginModule : (string * ModPath.t option unspec * (string * ModPath.t) list unspec) replay |
| 59 |
val pop_EndModule : unit replay |
| 60 |
val pop_BeginModuleType : (string * (string * ModPath.t) list unspec) replay |
| 61 |
val pop_EndModuleType : unit replay |
| 62 |
|
| 63 |
val pop_ApplyModule : |
| 64 |
(string * ModPath.t option unspec * ModPath.t unspec * ModPath.t list unspec * inline unspec) replay |
| 65 |
|
| 66 |
val pop_ApplyModuleType : (string * ModPath.t unspec * ModPath.t list unspec * inline unspec) replay |
| 67 |
val pop_IncludeModule : (ModPath.t * inline unspec) replay |
| 68 |
val pop_IncludeModuleType : (ModPath.t * inline unspec) replay |
| 69 |
val pop_ImportModule : ModPath.t replay |
| 70 |
val pop_ExportModule : ModPath.t replay |
| 71 |
val pop_BeginSection : string replay |
| 72 |
val pop_EndSection : unit replay |
| 73 |
|
| 74 |
val builtins_interp : Elpi.API.BuiltIn.declaration list |
| 75 |
end |
| 76 |
|
| 77 |
open Elpi.API |
| 78 |
open Rocq_elpi_utils |
| 79 |
open Names |
| 80 |
|
| 81 |
val clauses_for_later_synterp : |
| 82 |
(qualified_name * Ast.program * Id.t list * Rocq_elpi_utils.clause_scope) list State.component |
| 83 |
|
| 84 |
val set_accumulate_to_db_synterp : |
| 85 |
(loc:Loc.t -> (qualified_name * Ast.program * Id.t list * Rocq_elpi_utils.clause_scope) list -> unit) -> unit |
| 86 |
|
| 87 |
val prop : Data.term Conversion.t |
| 88 |
val id : string Conversion.t |
| 89 |
|
| 90 |
type clause = string option * ([ `After | `Before | `Remove | `Replace ] * string) option * Data.term |
| 91 |
|
| 92 |
val clause : clause Conversion.t |
| 93 |
|
| 94 |
type scope = ExecutionSite | CurrentModule | Library |
| 95 |
|
| 96 |
val scope : scope Conversion.t |
| 97 |
val grafting : ([ `After | `Before | `Remove | `Replace ] * string) Conversion.t |
| 98 |
val options : (Rocq_elpi_HOAS.options, Data.constraints) ContextualConversion.ctx_readback |
| 99 |
val locate_module : BuiltIn.declaration |
| 100 |
val locate_module_type : BuiltIn.declaration |
| 101 |
val current_path : BuiltIn.declaration |
| 102 |
val current_section_path : BuiltIn.declaration |
| 103 |
val modpath_to_path : BuiltIn.declaration |
| 104 |
val modtypath_to_path : BuiltIn.declaration |
| 105 |
val modpath_to_library : BuiltIn.declaration |
| 106 |
val modtypath_to_library : BuiltIn.declaration |
| 107 |
val synterp_api_doc : string |
| 108 |
val coq_synterp_builtins : BuiltIn.declaration list |
| 109 |
|
| 110 |
type located = |
| 111 |
| LocGref of GlobRef.t |
| 112 |
| LocModule of ModPath.t |
| 113 |
| LocModuleType of ModPath.t |
| 114 |
| LocAbbreviation of Globnames.abbreviation |
| 115 |
|
| 116 |
val located : located Conversion.t |
| 117 |
|
| 118 |
type attribute_data = |
| 119 |
| AttributeString of string |
| 120 |
| AttributeLoc of Ast.Loc.t |
| 121 |
type attribute_value = |
| 122 |
| AttributeEmpty |
| 123 |
| AttributeList of (string * attribute_value) list |
| 124 |
| AttributeLeaf of attribute_data |
| 125 |
|
| 126 |
val attribute_value : attribute_value Conversion.t |
| 127 |
val attribute : (string * attribute_value) Conversion.t |
| 128 |
|
| 129 |
type accumulation_item = qualified_name * Ast.program * Id.t list * Rocq_elpi_utils.clause_scope |
| 130 |
|
| 131 |
val accumulate_clauses : |
| 132 |
clauses_for_later:accumulation_item list State.component -> |
| 133 |
accumulate_to_db:(loc:Loc.t -> accumulation_item list -> unit) -> |
| 134 |
preprocess_clause:(depth:int -> Data.term -> Id.t list * Data.term) -> |
| 135 |
scope:scope Elpi.Builtin.unspec -> |
| 136 |
dbname:string -> |
| 137 |
clause list -> |
| 138 |
depth:int -> |
| 139 |
options:Rocq_elpi_HOAS.options -> |
| 140 |
State.t -> |
| 141 |
State.t * unit * Conversion.extra_goals |
| 142 |
|
| 143 |
|
| 144 |
val invocation_site_loc : Ast.Loc.t State.component |
| 145 |
val invocation_site_loc_synterp : Ast.Loc.t State.component |