Source file ser_ssrparser.ml
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
open Sexplib.Std
open Ppx_hash_lib.Std.Hash.Builtin
open Ppx_compare_lib.Builtin
open Serlib
module Ssrmatching = Serlib_ssrmatching.Ser_ssrmatching
open Ssrmatching
module Ltac_plugin = struct
module Tacexpr = Serlib_ltac.Ser_tacexpr
end
module Ssrast = Ser_ssrast
module Ssreflect_plugin = struct
module Ssrast = Ser_ssrast
module Ssrequality = Ser_ssrequality
module Ssrparser = Ssreflect_plugin.Ssrparser
end
open! Ssrast
type t_movearg = (cpattern ssragens) ssrmovearg
[@@deriving sexp,yojson,hash,compare]
let ser_wit_ssrmovearg =
Ser_genarg.mk_uniform sexp_of_t_movearg t_movearg_of_sexp hash_fold_t_movearg compare_t_movearg
let ser_wit_ssrapplyarg =
Ser_genarg.mk_uniform sexp_of_ssrapplyarg ssrapplyarg_of_sexp hash_fold_ssrapplyarg compare_ssrapplyarg
let ser_wit_clauses =
Ser_genarg.mk_uniform sexp_of_clauses clauses_of_sexp hash_fold_clauses compare_clauses
type t_rwarg = Ssreflect_plugin.Ssrequality.ssrrwarg list [@@deriving sexp,hash,compare]
let ser_wit_ssrrwargs =
Ser_genarg.mk_uniform sexp_of_t_rwarg t_rwarg_of_sexp hash_fold_t_rwarg compare_t_rwarg
module A0 = struct
type raw = Ltac_plugin.Tacexpr.raw_tactic_expr fwdbinders
[@@deriving sexp,yojson,hash,compare]
type glb = Ltac_plugin.Tacexpr.glob_tactic_expr fwdbinders
[@@deriving sexp,yojson,hash,compare]
type top = Geninterp.Val.t fwdbinders
[@@deriving sexp,yojson,hash,compare]
end
let ser_wit_ssrhavefwdwbinders = let module M = Ser_genarg.GS(A0) in M.genser
type ssrfwdview =
[%import: Ssreflect_plugin.Ssrparser.ssrfwdview]
[@@deriving sexp,yojson,hash,compare]
type ssreqid =
[%import: Ssreflect_plugin.Ssrparser.ssreqid]
[@@deriving sexp,yojson,hash,compare]
type ssrarg =
[%import: Ssreflect_plugin.Ssrparser.ssrarg]
[@@deriving sexp,yojson,hash,compare]
let ser_wit_ssrarg =
Ser_genarg.mk_uniform sexp_of_ssrarg ssrarg_of_sexp hash_fold_ssrarg compare_ssrarg
module A1 = struct
type raw = Ltac_plugin.Tacexpr.raw_tactic_expr ssrhint
[@@deriving sexp,yojson,hash,compare]
type glb = Ltac_plugin.Tacexpr.glob_tactic_expr ssrhint
[@@deriving sexp,yojson,hash,compare]
type top = Geninterp.Val.t ssrhint
[@@deriving sexp,yojson,hash,compare]
end
let ser_wit_ssrhintarg = let module M = Ser_genarg.GS(A1) in M.genser
module A2 = struct
type raw = Serlib_ltac.Ser_tacexpr.raw_tactic_expr ssrseqarg
[@@deriving sexp,yojson,hash,compare]
type glb = Serlib_ltac.Ser_tacexpr.glob_tactic_expr ssrseqarg
[@@deriving sexp,yojson,hash,compare]
type top = Geninterp.Val.t ssrseqarg
[@@deriving sexp,yojson,hash,compare]
end
let ser_wit_ssrseqarg = let module M = Ser_genarg.GS(A2) in M.genser
module A3 = struct
type raw = Serlib_ltac.Ser_tacexpr.raw_tactic_expr * ssripats
[@@deriving sexp,yojson,hash,compare]
type glb = Serlib_ltac.Ser_tacexpr.glob_tactic_expr * ssripats
[@@deriving sexp,yojson,hash,compare]
type top = Geninterp.Val.t * ssripats
[@@deriving sexp,yojson,hash,compare]
end
let ser_wit_ssrintrosarg = let module M = Ser_genarg.GS(A3) in M.genser
module A4 = struct
type raw = Serlib_ltac.Ser_tacexpr.raw_tactic_expr ffwbinders
[@@deriving sexp,yojson,hash,compare]
type glb = Serlib_ltac.Ser_tacexpr.glob_tactic_expr ffwbinders
[@@deriving sexp,yojson,hash,compare]
type top = Geninterp.Val.t ffwbinders
[@@deriving sexp,yojson,hash,compare]
end
let ser_wit_ssrsufffwd = let module M = Ser_genarg.GS(A4) in M.genser
module A5 = struct
type t = ((int * Ssreflect_plugin.Ssrast.ssrterm) * Ssrmatching_plugin.Ssrmatching.cpattern ssragens)
[@@deriving sexp,yojson,hash,compare]
end
let ser_wit_ssrcongrarg = let module M = Ser_genarg.GS0(A5) in M.genser
module A6 = struct
type raw = Serlib_ltac.Ser_tacexpr.raw_tactic_expr ssrdoarg
[@@deriving sexp,yojson,hash,compare]
type glb = Serlib_ltac.Ser_tacexpr.glob_tactic_expr ssrdoarg
[@@deriving sexp,yojson,hash,compare]
type top = Geninterp.Val.t ssrdoarg
[@@deriving sexp,yojson,hash,compare]
end
let ser_wit_ssrdoarg = let module M = Ser_genarg.GS(A6) in M.genser
module A7 = struct
type t = ((ssrfwdfmt * (cpattern * ast_closure_term option)) * ssrdocc)
[@@deriving sexp,yojson,hash,compare]
end
let ser_wit_ssrsetfwd = let module M = Ser_genarg.GS0(A7) in M.genser
module A8 = struct
type raw = Serlib_ltac.Ser_tacexpr.raw_tactic_expr ssrhint
[@@deriving sexp,yojson,hash,compare]
type glb = Serlib_ltac.Ser_tacexpr.glob_tactic_expr ssrhint
[@@deriving sexp,yojson,hash,compare]
type top = Geninterp.Val.t ssrhint
[@@deriving sexp,yojson,hash,compare]
end
let ser_wit_ssrhint = let module M = Ser_genarg.GS(A8) in M.genser
module A9 = struct
type t = ssrfwdfmt * ast_closure_term
[@@deriving sexp,yojson,hash,compare]
end
let ser_wit_ssrposefwd = let module M = Ser_genarg.GS0(A9) in M.genser
module A10 = struct
type t = ssrocc * ssrterm
[@@deriving sexp,yojson,hash,compare]
end
let ser_wit_ssrunlockarg = let module M = Ser_genarg.GS0(A10) in M.genser
module A11 = struct
type t = clause list * (ssrfwdfmt * ast_closure_term)
[@@deriving sexp,yojson,hash,compare]
end
let ser_wit_ssrwlogfwd = let module M = Ser_genarg.GS0(A11) in M.genser
module A12 = struct
type t = Names.Id.t * (ssrfwdfmt * ast_closure_term)
[@@deriving sexp,yojson,hash,compare]
end
let ser_wit_ssrfixfwd = let module M = Ser_genarg.GS0(A12) in M.genser
module A13 = struct
type t = ssrfwdfmt * ast_closure_term
[@@deriving sexp,yojson,hash,compare]
end
let ser_wit_ssrfwd = let module M = Ser_genarg.GS0(A13) in M.genser
module A14 = struct
type t = cpattern ssragens
[@@deriving sexp,yojson,hash,compare]
end
let ser_wit_ssrdgens = let module M = Ser_genarg.GS0(A14) in M.genser
let register () =
let open Ser_genarg in
let open Ssreflect_plugin.Ssrparser in
register_genser wit_ssrapplyarg ser_wit_ssrapplyarg;
register_genser wit_ssrarg ser_wit_ssrarg;
register_genser wit_ssrcasearg ser_wit_ssrmovearg;
register_genser wit_ssrclauses ser_wit_clauses;
register_genser wit_ssrmovearg ser_wit_ssrmovearg;
register_genser wit_ssrhavefwdwbinders ser_wit_ssrhavefwdwbinders;
register_genser wit_ssrhintarg ser_wit_ssrhintarg;
register_genser wit_ssrrwargs ser_wit_ssrrwargs;
register_genser wit_ssrcongrarg ser_wit_ssrcongrarg;
register_genser wit_ssrcpat (mk_uniform sexp_of_ssripat ssripat_of_sexp hash_fold_ssripat compare_ssripat);
register_genser wit_ssrdgens ser_wit_ssrdgens;
register_genser wit_ssrdgens_tl ser_wit_ssrdgens;
register_genser wit_ssrdir (mk_uniform sexp_of_ssrdir ssrdir_of_sexp hash_fold_ssrdir compare_ssrdir);
register_genser wit_ssrdoarg ser_wit_ssrdoarg;
register_genser wit_ssrexactarg ser_wit_ssrapplyarg;
register_genser wit_ssrfixfwd ser_wit_ssrfixfwd;
register_genser wit_ssrfwd ser_wit_ssrfwd;
register_genser wit_ssrfwdfmt (mk_uniform sexp_of_ssrfwdfmt ssrfwdfmt_of_sexp hash_fold_ssrfwdfmt compare_ssrfwdfmt);
register_genser wit_ssrfwdid (let module M = Ser_genarg.GS0(Ser_names.Id) in M.genser);
register_genser wit_ssrhint ser_wit_ssrhint;
register_genser wit_ssrhpats (mk_uniform sexp_of_ssrhpats ssrhpats_of_sexp hash_fold_ssrhpats compare_ssrhpats);
register_genser wit_ssrhpats_nobs (mk_uniform sexp_of_ssrhpats ssrhpats_of_sexp hash_fold_ssrhpats compare_ssrhpats);
register_genser wit_ssrhpats_wtransp (mk_uniform sexp_of_ssrhpats_wtransp ssrhpats_wtransp_of_sexp hash_fold_ssrhpats_wtransp compare_ssrhpats_wtransp);
register_genser wit_ssrintrosarg ser_wit_ssrintrosarg;
register_genser wit_ssrposefwd ser_wit_ssrposefwd;
register_genser wit_ssrrpat (mk_uniform sexp_of_ssripat ssripat_of_sexp hash_fold_ssripat compare_ssripat);
register_genser wit_ssrseqarg ser_wit_ssrseqarg;
register_genser wit_ssrseqdir (mk_uniform sexp_of_ssrdir ssrdir_of_sexp hash_fold_ssrdir compare_ssrdir);
register_genser wit_ssrsetfwd ser_wit_ssrsetfwd;
register_genser wit_ssrsufffwd ser_wit_ssrsufffwd;
register_genser wit_ssrtacarg Serlib_ltac.Ser_tacarg.ser_wit_tactic;
register_genser wit_ssrtclarg Serlib_ltac.Ser_tacarg.ser_wit_tactic;
register_genser wit_ssrterm (mk_uniform sexp_of_ssrterm ssrterm_of_sexp hash_fold_ssrterm compare_ssrterm);
register_genser wit_ssrunlockarg ser_wit_ssrunlockarg;
register_genser wit_ssrunlockargs (gen_ser_list ser_wit_ssrunlockarg);
register_genser wit_ssrwgen (mk_uniform sexp_of_clause clause_of_sexp hash_fold_clause compare_clause);
register_genser wit_ssrwlogfwd ser_wit_ssrwlogfwd;
()
let _ = register ()