| 1 |
open Ppx_sexp_conv_lib.Conv |
| 2 |
|
| 3 |
[@@@warning "-37"] |
| 4 |
|
| 5 |
type abstract_a [@@deriving sexp] [@@deriving_inline sexp_grammar] |
| 6 |
|
| 7 |
let _ = fun (_ : abstract_a) -> () |
| 8 |
|
| 9 |
let (abstract_a_sexp_grammar : abstract_a Sexplib0.Sexp_grammar.t) = |
| 10 |
{ untyped = Any "Test_coverage_for_deriving.abstract_a" } |
| 11 |
;; |
| 12 |
|
| 13 |
let _ = abstract_a_sexp_grammar |
| 14 |
|
| 15 |
[@@@end] |
| 16 |
|
| 17 |
type abstract_b [@@deriving sexp] [@@deriving_inline sexp_grammar] |
| 18 |
|
| 19 |
let _ = fun (_ : abstract_b) -> () |
| 20 |
|
| 21 |
let (abstract_b_sexp_grammar : abstract_b Sexplib0.Sexp_grammar.t) = |
| 22 |
{ untyped = Any "Test_coverage_for_deriving.abstract_b" } |
| 23 |
;; |
| 24 |
|
| 25 |
let _ = abstract_b_sexp_grammar |
| 26 |
|
| 27 |
[@@@end] |
| 28 |
|
| 29 |
type integer = int [@@deriving sexp] [@@deriving_inline sexp_grammar] |
| 30 |
|
| 31 |
let _ = fun (_ : integer) -> () |
| 32 |
let (integer_sexp_grammar : integer Sexplib0.Sexp_grammar.t) = int_sexp_grammar |
| 33 |
let _ = integer_sexp_grammar |
| 34 |
|
| 35 |
[@@@end] |
| 36 |
|
| 37 |
type tuple = int * string [@@deriving sexp] [@@deriving_inline sexp_grammar] |
| 38 |
|
| 39 |
let _ = fun (_ : tuple) -> () |
| 40 |
|
| 41 |
let (tuple_sexp_grammar : tuple Sexplib0.Sexp_grammar.t) = |
| 42 |
{ untyped = |
| 43 |
Lazy |
| 44 |
(lazy |
| 45 |
(List |
| 46 |
(Cons (int_sexp_grammar.untyped, Cons (string_sexp_grammar.untyped, Empty))))) |
| 47 |
} |
| 48 |
;; |
| 49 |
|
| 50 |
let _ = tuple_sexp_grammar |
| 51 |
|
| 52 |
[@@@end] |
| 53 |
|
| 54 |
type pos = |
| 55 |
{ x : float |
| 56 |
; y : float |
| 57 |
} |
| 58 |
[@@deriving sexp] [@@deriving_inline sexp_grammar] |
| 59 |
|
| 60 |
let _ = fun (_ : pos) -> () |
| 61 |
|
| 62 |
let (pos_sexp_grammar : pos Sexplib0.Sexp_grammar.t) = |
| 63 |
{ untyped = |
| 64 |
Lazy |
| 65 |
(lazy |
| 66 |
(List |
| 67 |
(Fields |
| 68 |
{ allow_extra_fields = false |
| 69 |
; fields = |
| 70 |
[ No_tag |
| 71 |
{ name = "x" |
| 72 |
; required = true |
| 73 |
; args = Cons (float_sexp_grammar.untyped, Empty) |
| 74 |
} |
| 75 |
; No_tag |
| 76 |
{ name = "y" |
| 77 |
; required = true |
| 78 |
; args = Cons (float_sexp_grammar.untyped, Empty) |
| 79 |
} |
| 80 |
] |
| 81 |
}))) |
| 82 |
} |
| 83 |
;; |
| 84 |
|
| 85 |
let _ = pos_sexp_grammar |
| 86 |
|
| 87 |
[@@@end] |
| 88 |
|
| 89 |
type 'a unary = 'a list [@@deriving sexp] [@@deriving_inline sexp_grammar] |
| 90 |
|
| 91 |
let _ = fun (_ : 'a unary) -> () |
| 92 |
|
| 93 |
let unary_sexp_grammar : |
| 94 |
'a. 'a Sexplib0.Sexp_grammar.t -> 'a unary Sexplib0.Sexp_grammar.t |
| 95 |
= |
| 96 |
fun _'a_sexp_grammar -> list_sexp_grammar _'a_sexp_grammar |
| 97 |
;; |
| 98 |
|
| 99 |
let _ = unary_sexp_grammar |
| 100 |
|
| 101 |
[@@@end] |
| 102 |
|
| 103 |
type enum = |
| 104 |
| One |
| 105 |
| Two |
| 106 |
| Three |
| 107 |
[@@deriving sexp] [@@deriving_inline sexp_grammar] |
| 108 |
|
| 109 |
let _ = fun (_ : enum) -> () |
| 110 |
|
| 111 |
let (enum_sexp_grammar : enum Sexplib0.Sexp_grammar.t) = |
| 112 |
{ untyped = |
| 113 |
Variant |
| 114 |
{ case_sensitivity = Case_sensitive_except_first_character |
| 115 |
; clauses = |
| 116 |
[ No_tag { name = "One"; clause_kind = Atom_clause } |
| 117 |
; No_tag { name = "Two"; clause_kind = Atom_clause } |
| 118 |
; No_tag { name = "Three"; clause_kind = Atom_clause } |
| 119 |
] |
| 120 |
} |
| 121 |
} |
| 122 |
;; |
| 123 |
|
| 124 |
let _ = enum_sexp_grammar |
| 125 |
|
| 126 |
[@@@end] |
| 127 |
|
| 128 |
type ('a, 'b) which = |
| 129 |
| This of 'a |
| 130 |
| That of 'b |
| 131 |
[@@deriving sexp] [@@deriving_inline sexp_grammar] |
| 132 |
|
| 133 |
let _ = fun (_ : ('a, 'b) which) -> () |
| 134 |
|
| 135 |
let which_sexp_grammar : |
| 136 |
'a 'b. |
| 137 |
'a Sexplib0.Sexp_grammar.t |
| 138 |
-> 'b Sexplib0.Sexp_grammar.t |
| 139 |
-> ('a, 'b) which Sexplib0.Sexp_grammar.t |
| 140 |
= |
| 141 |
fun _'a_sexp_grammar _'b_sexp_grammar -> |
| 142 |
{ untyped = |
| 143 |
Variant |
| 144 |
{ case_sensitivity = Case_sensitive_except_first_character |
| 145 |
; clauses = |
| 146 |
[ No_tag |
| 147 |
{ name = "This" |
| 148 |
; clause_kind = |
| 149 |
List_clause { args = Cons (_'a_sexp_grammar.untyped, Empty) } |
| 150 |
} |
| 151 |
; No_tag |
| 152 |
{ name = "That" |
| 153 |
; clause_kind = |
| 154 |
List_clause { args = Cons (_'b_sexp_grammar.untyped, Empty) } |
| 155 |
} |
| 156 |
] |
| 157 |
} |
| 158 |
} |
| 159 |
;; |
| 160 |
|
| 161 |
let _ = which_sexp_grammar |
| 162 |
|
| 163 |
[@@@end] |
| 164 |
|
| 165 |
type 'a optional = |
| 166 |
| No |
| 167 |
| Yes of 'a |
| 168 |
[@@deriving sexp] [@@deriving_inline sexp_grammar] |
| 169 |
|
| 170 |
let _ = fun (_ : 'a optional) -> () |
| 171 |
|
| 172 |
let optional_sexp_grammar : |
| 173 |
'a. 'a Sexplib0.Sexp_grammar.t -> 'a optional Sexplib0.Sexp_grammar.t |
| 174 |
= |
| 175 |
fun _'a_sexp_grammar -> |
| 176 |
{ untyped = |
| 177 |
Variant |
| 178 |
{ case_sensitivity = Case_sensitive_except_first_character |
| 179 |
; clauses = |
| 180 |
[ No_tag { name = "No"; clause_kind = Atom_clause } |
| 181 |
; No_tag |
| 182 |
{ name = "Yes" |
| 183 |
; clause_kind = |
| 184 |
List_clause { args = Cons (_'a_sexp_grammar.untyped, Empty) } |
| 185 |
} |
| 186 |
] |
| 187 |
} |
| 188 |
} |
| 189 |
;; |
| 190 |
|
| 191 |
let _ = optional_sexp_grammar |
| 192 |
|
| 193 |
[@@@end] |
| 194 |
|
| 195 |
type empty = | [@@deriving sexp] [@@deriving_inline sexp_grammar] |
| 196 |
|
| 197 |
let _ = fun (_ : empty) -> () |
| 198 |
let (empty_sexp_grammar : empty Sexplib0.Sexp_grammar.t) = { untyped = Union [] } |
| 199 |
let _ = empty_sexp_grammar |
| 200 |
|
| 201 |
[@@@end] |
| 202 |
|
| 203 |
type _ phantom = int [@@deriving sexp] [@@deriving_inline sexp_grammar] |
| 204 |
|
| 205 |
let _ = fun (_ : _ phantom) -> () |
| 206 |
|
| 207 |
let phantom_sexp_grammar : |
| 208 |
'a__086_. |
| 209 |
'a__086_ Sexplib0.Sexp_grammar.t -> 'a__086_ phantom Sexplib0.Sexp_grammar.t |
| 210 |
= |
| 211 |
fun _'a__086__sexp_grammar -> int_sexp_grammar |
| 212 |
;; |
| 213 |
|
| 214 |
let _ = phantom_sexp_grammar |
| 215 |
|
| 216 |
[@@@end] |
| 217 |
|
| 218 |
type color = |
| 219 |
[ `Red |
| 220 |
| `Blue |
| 221 |
] |
| 222 |
[@@deriving sexp] [@@deriving_inline sexp_grammar] |
| 223 |
|
| 224 |
let _ = fun (_ : color) -> () |
| 225 |
|
| 226 |
let (color_sexp_grammar : color Sexplib0.Sexp_grammar.t) = |
| 227 |
{ untyped = |
| 228 |
Variant |
| 229 |
{ case_sensitivity = Case_sensitive |
| 230 |
; clauses = |
| 231 |
[ No_tag { name = "Red"; clause_kind = Atom_clause } |
| 232 |
; No_tag { name = "Blue"; clause_kind = Atom_clause } |
| 233 |
] |
| 234 |
} |
| 235 |
} |
| 236 |
;; |
| 237 |
|
| 238 |
let _ = color_sexp_grammar |
| 239 |
|
| 240 |
[@@@end] |
| 241 |
|
| 242 |
type adjective = |
| 243 |
[ color |
| 244 |
| `Fast |
| 245 |
| `Slow |
| 246 |
| `Count of int |
| 247 |
] |
| 248 |
[@@deriving sexp] [@@deriving_inline sexp_grammar] |
| 249 |
|
| 250 |
let _ = fun (_ : adjective) -> () |
| 251 |
|
| 252 |
let (adjective_sexp_grammar : adjective Sexplib0.Sexp_grammar.t) = |
| 253 |
{ untyped = |
| 254 |
Lazy |
| 255 |
(lazy |
| 256 |
(Union |
| 257 |
[ color_sexp_grammar.untyped |
| 258 |
; Variant |
| 259 |
{ case_sensitivity = Case_sensitive |
| 260 |
; clauses = |
| 261 |
[ No_tag { name = "Fast"; clause_kind = Atom_clause } |
| 262 |
; No_tag { name = "Slow"; clause_kind = Atom_clause } |
| 263 |
; No_tag |
| 264 |
{ name = "Count" |
| 265 |
; clause_kind = |
| 266 |
List_clause { args = Cons (int_sexp_grammar.untyped, Empty) } |
| 267 |
} |
| 268 |
] |
| 269 |
} |
| 270 |
])) |
| 271 |
} |
| 272 |
;; |
| 273 |
|
| 274 |
let _ = adjective_sexp_grammar |
| 275 |
|
| 276 |
[@@@end] |
| 277 |
|
| 278 |
type 'a tree = |
| 279 |
{ data : 'a |
| 280 |
; children : 'a tree list |
| 281 |
} |
| 282 |
[@@deriving sexp] [@@deriving_inline sexp_grammar] |
| 283 |
|
| 284 |
let _ = fun (_ : 'a tree) -> () |
| 285 |
|
| 286 |
include struct |
| 287 |
open struct |
| 288 |
let (grammars__118_ : Sexplib0.Sexp_grammar.defn Stdlib.List.t Stdlib.Lazy.t) = |
| 289 |
lazy |
| 290 |
(let tree_sexp_grammar |
| 291 |
: 'a. 'a Sexplib0.Sexp_grammar.t -> 'a tree Sexplib0.Sexp_grammar.t |
| 292 |
= |
| 293 |
fun _'a_sexp_grammar -> |
| 294 |
{ untyped = Recursive ("tree", [ _'a_sexp_grammar.untyped ]) } |
| 295 |
in |
| 296 |
[ { tycon = "tree" |
| 297 |
; tyvars = [ "a" ] |
| 298 |
; grammar = |
| 299 |
List |
| 300 |
(Fields |
| 301 |
{ allow_extra_fields = false |
| 302 |
; fields = |
| 303 |
[ No_tag |
| 304 |
{ name = "data" |
| 305 |
; required = true |
| 306 |
; args = Cons (Tyvar "a", Empty) |
| 307 |
} |
| 308 |
; No_tag |
| 309 |
{ name = "children" |
| 310 |
; required = true |
| 311 |
; args = |
| 312 |
Cons |
| 313 |
( (list_sexp_grammar |
| 314 |
(tree_sexp_grammar { untyped = Tyvar "a" })) |
| 315 |
.untyped |
| 316 |
, Empty ) |
| 317 |
} |
| 318 |
] |
| 319 |
}) |
| 320 |
} |
| 321 |
]) |
| 322 |
;; |
| 323 |
|
| 324 |
let _ = grammars__118_ |
| 325 |
end |
| 326 |
|
| 327 |
let tree_sexp_grammar : |
| 328 |
'a. 'a Sexplib0.Sexp_grammar.t -> 'a tree Sexplib0.Sexp_grammar.t |
| 329 |
= |
| 330 |
fun _'a_sexp_grammar -> |
| 331 |
{ untyped = |
| 332 |
Tycon ("tree", [ _'a_sexp_grammar.untyped ], Stdlib.Lazy.force grammars__118_) |
| 333 |
} |
| 334 |
;; |
| 335 |
|
| 336 |
let _ = tree_sexp_grammar |
| 337 |
end |
| 338 |
|
| 339 |
[@@@end] |
| 340 |
|
| 341 |
type alpha = int |
| 342 |
|
| 343 |
and beta = |
| 344 |
{ alpha : alpha |
| 345 |
; betas : beta list |
| 346 |
} |
| 347 |
|
| 348 |
and gamma = beta list [@@deriving sexp] [@@deriving_inline sexp_grammar] |
| 349 |
|
| 350 |
let _ = fun (_ : alpha) -> () |
| 351 |
let _ = fun (_ : beta) -> () |
| 352 |
let _ = fun (_ : gamma) -> () |
| 353 |
|
| 354 |
include struct |
| 355 |
open struct |
| 356 |
let (grammars__131_ : Sexplib0.Sexp_grammar.defn Stdlib.List.t Stdlib.Lazy.t) = |
| 357 |
lazy |
| 358 |
(let (alpha_sexp_grammar : alpha Sexplib0.Sexp_grammar.t) = |
| 359 |
{ untyped = Recursive ("alpha", []) } |
| 360 |
and (beta_sexp_grammar : beta Sexplib0.Sexp_grammar.t) = |
| 361 |
{ untyped = Recursive ("beta", []) } |
| 362 |
in |
| 363 |
[ { tycon = "alpha"; tyvars = []; grammar = int_sexp_grammar.untyped } |
| 364 |
; { tycon = "beta" |
| 365 |
; tyvars = [] |
| 366 |
; grammar = |
| 367 |
List |
| 368 |
(Fields |
| 369 |
{ allow_extra_fields = false |
| 370 |
; fields = |
| 371 |
[ No_tag |
| 372 |
{ name = "alpha" |
| 373 |
; required = true |
| 374 |
; args = Cons (alpha_sexp_grammar.untyped, Empty) |
| 375 |
} |
| 376 |
; No_tag |
| 377 |
{ name = "betas" |
| 378 |
; required = true |
| 379 |
; args = |
| 380 |
Cons ((list_sexp_grammar beta_sexp_grammar).untyped, Empty) |
| 381 |
} |
| 382 |
] |
| 383 |
}) |
| 384 |
} |
| 385 |
]) |
| 386 |
;; |
| 387 |
|
| 388 |
let _ = grammars__131_ |
| 389 |
end |
| 390 |
|
| 391 |
let (alpha_sexp_grammar : alpha Sexplib0.Sexp_grammar.t) = |
| 392 |
{ untyped = Lazy (lazy (Tycon ("alpha", [], Stdlib.Lazy.force grammars__131_))) } |
| 393 |
|
| 394 |
and (beta_sexp_grammar : beta Sexplib0.Sexp_grammar.t) = |
| 395 |
{ untyped = Lazy (lazy (Tycon ("beta", [], Stdlib.Lazy.force grammars__131_))) } |
| 396 |
;; |
| 397 |
|
| 398 |
let _ = alpha_sexp_grammar |
| 399 |
and _ = beta_sexp_grammar |
| 400 |
end |
| 401 |
|
| 402 |
let (gamma_sexp_grammar : gamma Sexplib0.Sexp_grammar.t) = |
| 403 |
{ untyped = Lazy (lazy (list_sexp_grammar beta_sexp_grammar).untyped) } |
| 404 |
;; |
| 405 |
|
| 406 |
let _ = gamma_sexp_grammar |
| 407 |
|
| 408 |
[@@@end] |
| 409 |
|
| 410 |
type record_attributes = |
| 411 |
{ a : int [@default 0] |
| 412 |
; b : bool [@sexp.bool] |
| 413 |
; c : float option [@sexp.option] |
| 414 |
; d : string list [@sexp.list] |
| 415 |
; e : bytes array [@sexp.array] |
| 416 |
; f : Ppx_sexp_conv_lib.Sexp.t [@sexp.omit_nil] |
| 417 |
} |
| 418 |
[@@sexp.allow_extra_fields] [@@deriving sexp] [@@deriving_inline sexp_grammar] |
| 419 |
|
| 420 |
let _ = fun (_ : record_attributes) -> () |
| 421 |
|
| 422 |
let (record_attributes_sexp_grammar : record_attributes Sexplib0.Sexp_grammar.t) = |
| 423 |
{ untyped = |
| 424 |
Lazy |
| 425 |
(lazy |
| 426 |
(List |
| 427 |
(Fields |
| 428 |
{ allow_extra_fields = true |
| 429 |
; fields = |
| 430 |
[ No_tag |
| 431 |
{ name = "a" |
| 432 |
; required = false |
| 433 |
; args = Cons (int_sexp_grammar.untyped, Empty) |
| 434 |
} |
| 435 |
; No_tag { name = "b"; required = false; args = Empty } |
| 436 |
; No_tag |
| 437 |
{ name = "c" |
| 438 |
; required = false |
| 439 |
; args = Cons (float_sexp_grammar.untyped, Empty) |
| 440 |
} |
| 441 |
; No_tag |
| 442 |
{ name = "d" |
| 443 |
; required = false |
| 444 |
; args = Cons (List (Many string_sexp_grammar.untyped), Empty) |
| 445 |
} |
| 446 |
; No_tag |
| 447 |
{ name = "e" |
| 448 |
; required = false |
| 449 |
; args = Cons (List (Many bytes_sexp_grammar.untyped), Empty) |
| 450 |
} |
| 451 |
; No_tag |
| 452 |
{ name = "f" |
| 453 |
; required = false |
| 454 |
; args = |
| 455 |
Cons (Ppx_sexp_conv_lib.Sexp.t_sexp_grammar.untyped, Empty) |
| 456 |
} |
| 457 |
] |
| 458 |
}))) |
| 459 |
} |
| 460 |
;; |
| 461 |
|
| 462 |
let _ = record_attributes_sexp_grammar |
| 463 |
|
| 464 |
[@@@end] |
| 465 |
|
| 466 |
type variant_attributes = |
| 467 |
| A |
| 468 |
| B of int list [@sexp.list] |
| 469 |
| C of |
| 470 |
{ a : int [@default 0] |
| 471 |
; b : bool [@sexp.bool] |
| 472 |
; c : float option [@sexp.option] |
| 473 |
; d : string list [@sexp.list] |
| 474 |
; e : bytes array [@sexp.array] |
| 475 |
; f : Ppx_sexp_conv_lib.Sexp.t [@sexp.omit_nil] |
| 476 |
} [@sexp.allow_extra_fields] |
| 477 |
[@@deriving sexp] [@@deriving_inline sexp_grammar] |
| 478 |
|
| 479 |
let _ = fun (_ : variant_attributes) -> () |
| 480 |
|
| 481 |
let (variant_attributes_sexp_grammar : variant_attributes Sexplib0.Sexp_grammar.t) = |
| 482 |
{ untyped = |
| 483 |
Lazy |
| 484 |
(lazy |
| 485 |
(Variant |
| 486 |
{ case_sensitivity = Case_sensitive_except_first_character |
| 487 |
; clauses = |
| 488 |
[ No_tag { name = "A"; clause_kind = Atom_clause } |
| 489 |
; No_tag |
| 490 |
{ name = "B" |
| 491 |
; clause_kind = List_clause { args = Many int_sexp_grammar.untyped } |
| 492 |
} |
| 493 |
; No_tag |
| 494 |
{ name = "C" |
| 495 |
; clause_kind = |
| 496 |
List_clause |
| 497 |
{ args = |
| 498 |
Fields |
| 499 |
{ allow_extra_fields = true |
| 500 |
; fields = |
| 501 |
[ No_tag |
| 502 |
{ name = "a" |
| 503 |
; required = false |
| 504 |
; args = Cons (int_sexp_grammar.untyped, Empty) |
| 505 |
} |
| 506 |
; No_tag |
| 507 |
{ name = "b"; required = false; args = Empty } |
| 508 |
; No_tag |
| 509 |
{ name = "c" |
| 510 |
; required = false |
| 511 |
; args = Cons (float_sexp_grammar.untyped, Empty) |
| 512 |
} |
| 513 |
; No_tag |
| 514 |
{ name = "d" |
| 515 |
; required = false |
| 516 |
; args = |
| 517 |
Cons |
| 518 |
( List (Many string_sexp_grammar.untyped) |
| 519 |
, Empty ) |
| 520 |
} |
| 521 |
; No_tag |
| 522 |
{ name = "e" |
| 523 |
; required = false |
| 524 |
; args = |
| 525 |
Cons |
| 526 |
( List (Many bytes_sexp_grammar.untyped) |
| 527 |
, Empty ) |
| 528 |
} |
| 529 |
; No_tag |
| 530 |
{ name = "f" |
| 531 |
; required = false |
| 532 |
; args = |
| 533 |
Cons |
| 534 |
( Ppx_sexp_conv_lib.Sexp.t_sexp_grammar |
| 535 |
.untyped |
| 536 |
, Empty ) |
| 537 |
} |
| 538 |
] |
| 539 |
} |
| 540 |
} |
| 541 |
} |
| 542 |
] |
| 543 |
})) |
| 544 |
} |
| 545 |
;; |
| 546 |
|
| 547 |
let _ = variant_attributes_sexp_grammar |
| 548 |
|
| 549 |
[@@@end] |
| 550 |
|
| 551 |
type polymorphic_variant_attributes = |
| 552 |
[ `A |
| 553 |
| `B of int list [@sexp.list] |
| 554 |
] |
| 555 |
[@@deriving sexp] [@@deriving_inline sexp_grammar] |
| 556 |
|
| 557 |
let _ = fun (_ : polymorphic_variant_attributes) -> () |
| 558 |
|
| 559 |
let (polymorphic_variant_attributes_sexp_grammar : |
| 560 |
polymorphic_variant_attributes Sexplib0.Sexp_grammar.t) |
| 561 |
= |
| 562 |
{ untyped = |
| 563 |
Lazy |
| 564 |
(lazy |
| 565 |
(Variant |
| 566 |
{ case_sensitivity = Case_sensitive |
| 567 |
; clauses = |
| 568 |
[ No_tag { name = "A"; clause_kind = Atom_clause } |
| 569 |
; No_tag |
| 570 |
{ name = "B" |
| 571 |
; clause_kind = List_clause { args = Many int_sexp_grammar.untyped } |
| 572 |
} |
| 573 |
] |
| 574 |
})) |
| 575 |
} |
| 576 |
;; |
| 577 |
|
| 578 |
let _ = polymorphic_variant_attributes_sexp_grammar |
| 579 |
|
| 580 |
[@@@end] |
| 581 |
|
| 582 |
type opaque = |
| 583 |
{ x : (string[@sexp.opaque]) |
| 584 |
; y : int -> int |
| 585 |
} |
| 586 |
[@@deriving sexp] [@@deriving_inline sexp_grammar] |
| 587 |
|
| 588 |
let _ = fun (_ : opaque) -> () |
| 589 |
|
| 590 |
let (opaque_sexp_grammar : opaque Sexplib0.Sexp_grammar.t) = |
| 591 |
{ untyped = |
| 592 |
Lazy |
| 593 |
(lazy |
| 594 |
(List |
| 595 |
(Fields |
| 596 |
{ allow_extra_fields = false |
| 597 |
; fields = |
| 598 |
[ No_tag |
| 599 |
{ name = "x" |
| 600 |
; required = true |
| 601 |
; args = |
| 602 |
Cons (Sexplib0.Sexp_conv.opaque_sexp_grammar.untyped, Empty) |
| 603 |
} |
| 604 |
; No_tag |
| 605 |
{ name = "y" |
| 606 |
; required = true |
| 607 |
; args = Cons (Sexplib0.Sexp_conv.fun_sexp_grammar.untyped, Empty) |
| 608 |
} |
| 609 |
] |
| 610 |
}))) |
| 611 |
} |
| 612 |
;; |
| 613 |
|
| 614 |
let _ = opaque_sexp_grammar |
| 615 |
|
| 616 |
[@@@end] |