package dolmen
A parser library for automated deduction
Install
Dune Dependency
Authors
Maintainers
Sources
dolmen-0.8.tbz
sha256=3ee4b4b028b18ab0066cb4648fa14cd4d628a3afd79455f85fb796a9969ac80c
sha512=06d455f0221814dae44d9d8614cab7c1d4fb43a383e603a92ffc9cf4a753d42c5f2a0f3c5ae64aa6cf02da769c4666b130443ae2cf8fa0918c906d46e0caec9a
doc/src/dolmen.icnf/parser.ml.html
Source file parser.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 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847
module Make # 6 "src/languages/icnf/parser.mly" (L : Dolmen_intf.Location.S) # 7 "src/languages/icnf/parser.ml" # 7 "src/languages/icnf/parser.mly" (T : Ast.Term with type location := L.t) # 12 "src/languages/icnf/parser.ml" # 8 "src/languages/icnf/parser.mly" (S : Ast.Statement with type location := L.t and type term := T.t) # 17 "src/languages/icnf/parser.ml" = struct module MenhirBasics = struct exception Error of int let _eRR = fun _s -> raise (Error _s) type token = Tokens.token end include MenhirBasics type ('s, 'r) _menhir_state = | MenhirState00 : ('s, _menhir_box_file) _menhir_state (** State 00. Stack shape : . Start symbol: file. *) | MenhirState01 : (('s, _menhir_box_file) _menhir_cell1_NEWLINE, _menhir_box_file) _menhir_state (** State 01. Stack shape : NEWLINE. Start symbol: file. *) | MenhirState03 : (('s, _menhir_box_file) _menhir_cell1_list_NEWLINE_, _menhir_box_file) _menhir_state (** State 03. Stack shape : list(NEWLINE). Start symbol: file. *) | MenhirState07 : ((('s, _menhir_box_file) _menhir_cell1_list_NEWLINE_, _menhir_box_file) _menhir_cell1_start, _menhir_box_file) _menhir_state (** State 07. Stack shape : list(NEWLINE) start. Start symbol: file. *) | MenhirState08 : (('s, _menhir_box_file) _menhir_cell1_NEWLINE, _menhir_box_file) _menhir_state (** State 08. Stack shape : NEWLINE. Start symbol: file. *) | MenhirState11 : (('s, _menhir_box_file) _menhir_cell1_A, _menhir_box_file) _menhir_state (** State 11. Stack shape : A. Start symbol: file. *) | MenhirState15 : (('s, 'r) _menhir_cell1_atom, 'r) _menhir_state (** State 15. Stack shape : atom. Start symbol: <undetermined>. *) | MenhirState21 : (('s, _menhir_box_file) _menhir_cell1_clause, _menhir_box_file) _menhir_state (** State 21. Stack shape : clause. Start symbol: file. *) | MenhirState23 : (('s, 'r) _menhir_cell1_atom, 'r) _menhir_state (** State 23. Stack shape : atom. Start symbol: <undetermined>. *) | MenhirState25 : (('s, _menhir_box_file) _menhir_cell1_assumption, _menhir_box_file) _menhir_state (** State 25. Stack shape : assumption. Start symbol: file. *) | MenhirState29 : ('s, _menhir_box_input) _menhir_state (** State 29. Stack shape : . Start symbol: input. *) | MenhirState33 : (('s, _menhir_box_input) _menhir_cell1_NEWLINE, _menhir_box_input) _menhir_state (** State 33. Stack shape : NEWLINE. Start symbol: input. *) | MenhirState35 : (('s, _menhir_box_input) _menhir_cell1_A, _menhir_box_input) _menhir_state (** State 35. Stack shape : A. Start symbol: input. *) and ('s, 'r) _menhir_cell1_assumption = | MenhirCell1_assumption of 's * ('s, 'r) _menhir_state * (S.t) and ('s, 'r) _menhir_cell1_atom = | MenhirCell1_atom of 's * ('s, 'r) _menhir_state * (T.t) * Lexing.position and ('s, 'r) _menhir_cell1_clause = | MenhirCell1_clause of 's * ('s, 'r) _menhir_state * (S.t) and ('s, 'r) _menhir_cell1_list_NEWLINE_ = | MenhirCell1_list_NEWLINE_ of 's * ('s, 'r) _menhir_state * (unit list) and ('s, 'r) _menhir_cell1_start = | MenhirCell1_start of 's * ('s, 'r) _menhir_state * (S.t) and ('s, 'r) _menhir_cell1_A = | MenhirCell1_A of 's * ('s, 'r) _menhir_state * Lexing.position and ('s, 'r) _menhir_cell1_NEWLINE = | MenhirCell1_NEWLINE of 's * ('s, 'r) _menhir_state * Lexing.position and _menhir_box_input = | MenhirBox_input of (S.t option) [@@unboxed] and _menhir_box_file = | MenhirBox_file of (S.t list) [@@unboxed] let _menhir_action_02 = fun _endpos__4_ _startpos__1_ l -> let _endpos = _endpos__4_ in let _startpos = _startpos__1_ in ( # 53 "src/languages/icnf/parser.mly" ( let loc = L.mk_pos _startpos _endpos in S.assumption ~loc l ) # 136 "src/languages/icnf/parser.ml" : (S.t)) let _menhir_action_03 = fun _endpos_i_ _startpos_i_ i -> let _endpos = _endpos_i_ in let _startpos = _startpos_i_ in ( # 57 "src/languages/icnf/parser.mly" ( let loc = L.mk_pos _startpos _endpos in T.atom ~loc i ) # 146 "src/languages/icnf/parser.ml" : (T.t)) let _menhir_action_04 = fun _endpos__3_ _startpos_l_ l -> let _endpos = _endpos__3_ in let _startpos = _startpos_l_ in ( # 49 "src/languages/icnf/parser.mly" ( let loc = L.mk_pos _startpos _endpos in S.clause ~loc l ) # 156 "src/languages/icnf/parser.ml" : (S.t)) let _menhir_action_05 = fun l -> ( # 31 "src/languages/icnf/parser.mly" ( l ) # 164 "src/languages/icnf/parser.ml" : (S.t list)) let _menhir_action_06 = fun i -> ( # 19 "src/languages/icnf/parser.mly" ( i ) # 172 "src/languages/icnf/parser.ml" : (S.t option)) let _menhir_action_07 = fun s -> ( # 21 "src/languages/icnf/parser.mly" ( Some s ) # 180 "src/languages/icnf/parser.ml" : (S.t option)) let _menhir_action_08 = fun c -> ( # 23 "src/languages/icnf/parser.mly" ( Some c ) # 188 "src/languages/icnf/parser.ml" : (S.t option)) let _menhir_action_09 = fun a -> ( # 25 "src/languages/icnf/parser.mly" ( Some a ) # 196 "src/languages/icnf/parser.ml" : (S.t option)) let _menhir_action_10 = fun () -> ( # 27 "src/languages/icnf/parser.mly" ( None ) # 204 "src/languages/icnf/parser.ml" : (S.t option)) let _menhir_action_11 = fun () -> ( # 216 "<standard.mly>" ( [] ) # 212 "src/languages/icnf/parser.ml" : (unit list)) let _menhir_action_12 = fun x xs -> ( # 219 "<standard.mly>" ( x :: xs ) # 220 "src/languages/icnf/parser.ml" : (unit list)) let _menhir_action_13 = fun () -> ( # 216 "<standard.mly>" ( [] ) # 228 "src/languages/icnf/parser.ml" : (T.t list)) let _menhir_action_14 = fun x xs -> ( # 219 "<standard.mly>" ( x :: xs ) # 236 "src/languages/icnf/parser.ml" : (T.t list)) let _menhir_action_15 = fun x -> ( # 228 "<standard.mly>" ( [ x ] ) # 244 "src/languages/icnf/parser.ml" : (T.t list)) let _menhir_action_16 = fun x xs -> ( # 231 "<standard.mly>" ( x :: xs ) # 252 "src/languages/icnf/parser.ml" : (T.t list)) let _menhir_action_17 = fun () -> ( # 39 "src/languages/icnf/parser.mly" ( [] ) # 260 "src/languages/icnf/parser.ml" : (S.t list)) let _menhir_action_18 = fun l -> ( # 41 "src/languages/icnf/parser.mly" ( l ) # 268 "src/languages/icnf/parser.ml" : (S.t list)) let _menhir_action_19 = fun c l -> ( # 43 "src/languages/icnf/parser.mly" ( c :: l ) # 276 "src/languages/icnf/parser.ml" : (S.t list)) let _menhir_action_20 = fun a l -> ( # 45 "src/languages/icnf/parser.mly" ( a :: l ) # 284 "src/languages/icnf/parser.ml" : (S.t list)) let _menhir_action_21 = fun _endpos__3_ _startpos__1_ -> let _endpos = _endpos__3_ in let _startpos = _startpos__1_ in ( # 35 "src/languages/icnf/parser.mly" ( let loc = L.mk_pos _startpos _endpos in S.p_inccnf ~loc () ) # 294 "src/languages/icnf/parser.ml" : (S.t)) let _menhir_print_token : token -> string = fun _tok -> match _tok with | Tokens.A -> "A" | Tokens.EOF -> "EOF" | Tokens.INCCNF -> "INCCNF" | Tokens.INT _ -> "INT" | Tokens.NEWLINE -> "NEWLINE" | Tokens.P -> "P" | Tokens.ZERO -> "ZERO" let _menhir_fail : unit -> 'a = fun () -> Printf.eprintf "Internal failure -- please contact the parser generator's developers.\n%!"; assert false include struct [@@@ocaml.warning "-4-37"] let _menhir_run_46 : type ttv_stack. ttv_stack -> _ -> _menhir_box_input = fun _menhir_stack _v -> MenhirBox_input _v let rec _menhir_goto_input : type ttv_stack. ttv_stack -> _ -> (ttv_stack, _menhir_box_input) _menhir_state -> _menhir_box_input = fun _menhir_stack _v _menhir_s -> match _menhir_s with | MenhirState29 -> _menhir_run_46 _menhir_stack _v | MenhirState33 -> _menhir_run_43 _menhir_stack _v | _ -> _menhir_fail () and _menhir_run_43 : type ttv_stack. (ttv_stack, _menhir_box_input) _menhir_cell1_NEWLINE -> _ -> _menhir_box_input = fun _menhir_stack _v -> let MenhirCell1_NEWLINE (_menhir_stack, _menhir_s, _) = _menhir_stack in let i = _v in let _v = _menhir_action_06 i in _menhir_goto_input _menhir_stack _v _menhir_s let _menhir_run_44 : type ttv_stack. ttv_stack -> _ -> (ttv_stack, _menhir_box_input) _menhir_state -> _menhir_box_input = fun _menhir_stack _v _menhir_s -> let c = _v in let _v = _menhir_action_08 c in _menhir_goto_input _menhir_stack _v _menhir_s let _menhir_run_27 : type ttv_stack. ((ttv_stack, _menhir_box_file) _menhir_cell1_list_NEWLINE_, _menhir_box_file) _menhir_cell1_start -> _ -> _menhir_box_file = fun _menhir_stack _v -> let MenhirCell1_start (_menhir_stack, _, _) = _menhir_stack in let MenhirCell1_list_NEWLINE_ (_menhir_stack, _, _) = _menhir_stack in let l = _v in let _v = _menhir_action_05 l in MenhirBox_file _v let rec _menhir_goto_problem : type ttv_stack. ttv_stack -> _ -> (ttv_stack, _menhir_box_file) _menhir_state -> _menhir_box_file = fun _menhir_stack _v _menhir_s -> match _menhir_s with | MenhirState07 -> _menhir_run_27 _menhir_stack _v | MenhirState25 -> _menhir_run_26 _menhir_stack _v | MenhirState21 -> _menhir_run_22 _menhir_stack _v | MenhirState08 -> _menhir_run_17 _menhir_stack _v | _ -> _menhir_fail () and _menhir_run_26 : type ttv_stack. (ttv_stack, _menhir_box_file) _menhir_cell1_assumption -> _ -> _menhir_box_file = fun _menhir_stack _v -> let MenhirCell1_assumption (_menhir_stack, _menhir_s, a) = _menhir_stack in let l = _v in let _v = _menhir_action_20 a l in _menhir_goto_problem _menhir_stack _v _menhir_s and _menhir_run_22 : type ttv_stack. (ttv_stack, _menhir_box_file) _menhir_cell1_clause -> _ -> _menhir_box_file = fun _menhir_stack _v -> let MenhirCell1_clause (_menhir_stack, _menhir_s, c) = _menhir_stack in let l = _v in let _v = _menhir_action_19 c l in _menhir_goto_problem _menhir_stack _v _menhir_s and _menhir_run_17 : type ttv_stack. (ttv_stack, _menhir_box_file) _menhir_cell1_NEWLINE -> _ -> _menhir_box_file = fun _menhir_stack _v -> let MenhirCell1_NEWLINE (_menhir_stack, _menhir_s, _) = _menhir_stack in let l = _v in let _v = _menhir_action_18 l in _menhir_goto_problem _menhir_stack _v _menhir_s let _menhir_run_10 : type ttv_stack. ttv_stack -> (ttv_stack, _menhir_box_file) _menhir_state -> _menhir_box_file = fun _menhir_stack _menhir_s -> let _v = _menhir_action_17 () in _menhir_goto_problem _menhir_stack _v _menhir_s let _menhir_run_45 : type ttv_stack. ttv_stack -> _ -> (ttv_stack, _menhir_box_input) _menhir_state -> _menhir_box_input = fun _menhir_stack _v _menhir_s -> let a = _v in let _v = _menhir_action_09 a in _menhir_goto_input _menhir_stack _v _menhir_s let rec _menhir_run_08 : type ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_file) _menhir_state -> _menhir_box_file = fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s -> let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in let _menhir_stack = MenhirCell1_NEWLINE (_menhir_stack, _menhir_s, _endpos) in let _menhir_s = MenhirState08 in let _tok = _menhir_lexer _menhir_lexbuf in match (_tok : MenhirBasics.token) with | Tokens.NEWLINE -> _menhir_run_08 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s | Tokens.INT _v -> _menhir_run_09 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s | Tokens.EOF -> _menhir_run_10 _menhir_stack _menhir_s | Tokens.A -> _menhir_run_11 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s | _ -> _eRR 8 and _menhir_run_09 : type ttv_stack ttv_result. ttv_stack -> _ -> _ -> _ -> (ttv_stack, ttv_result) _menhir_state -> ttv_result = fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s -> let _startpos = _menhir_lexbuf.Lexing.lex_start_p in let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in let _tok = _menhir_lexer _menhir_lexbuf in let (_endpos_i_, _startpos_i_, i) = (_endpos, _startpos, _v) in let _v = _menhir_action_03 _endpos_i_ _startpos_i_ i in _menhir_goto_atom _menhir_stack _menhir_lexbuf _menhir_lexer _startpos_i_ _v _menhir_s _tok and _menhir_goto_atom : type ttv_stack ttv_result. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, ttv_result) _menhir_state -> _ -> ttv_result = fun _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok -> match _menhir_s with | MenhirState29 -> _menhir_run_23 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok | MenhirState33 -> _menhir_run_23 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok | MenhirState07 -> _menhir_run_23 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok | MenhirState08 -> _menhir_run_23 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok | MenhirState25 -> _menhir_run_23 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok | MenhirState23 -> _menhir_run_23 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok | MenhirState21 -> _menhir_run_23 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok | MenhirState35 -> _menhir_run_15 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok | MenhirState15 -> _menhir_run_15 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok | MenhirState11 -> _menhir_run_15 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok | _ -> _menhir_fail () and _menhir_run_23 : type ttv_stack ttv_result. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, ttv_result) _menhir_state -> _ -> ttv_result = fun _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok -> match (_tok : MenhirBasics.token) with | Tokens.INT _v_0 -> let _menhir_stack = MenhirCell1_atom (_menhir_stack, _menhir_s, _v, _startpos) in _menhir_run_09 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState23 | Tokens.ZERO -> let (_startpos_x_, x) = (_startpos, _v) in let _v = _menhir_action_15 x in _menhir_goto_nonempty_list_atom_ _menhir_stack _menhir_lexbuf _menhir_lexer _startpos_x_ _v _menhir_s | _ -> _eRR 23 and _menhir_goto_nonempty_list_atom_ : type ttv_stack ttv_result. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, ttv_result) _menhir_state -> ttv_result = fun _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s -> match _menhir_s with | MenhirState29 -> _menhir_run_40 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s | MenhirState33 -> _menhir_run_40 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s | MenhirState23 -> _menhir_run_24 _menhir_stack _menhir_lexbuf _menhir_lexer _v | MenhirState07 -> _menhir_run_18 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s | MenhirState25 -> _menhir_run_18 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s | MenhirState21 -> _menhir_run_18 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s | MenhirState08 -> _menhir_run_18 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s | _ -> _menhir_fail () and _menhir_run_40 : type ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_input) _menhir_state -> _menhir_box_input = fun _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s -> let _tok = _menhir_lexer _menhir_lexbuf in match (_tok : MenhirBasics.token) with | Tokens.NEWLINE -> let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in let (_endpos__3_, _startpos_l_, l) = (_endpos, _startpos, _v) in let _v = _menhir_action_04 _endpos__3_ _startpos_l_ l in _menhir_goto_clause _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok | _ -> _eRR 41 and _menhir_goto_clause : type ttv_stack ttv_result. ttv_stack -> _ -> _ -> _ -> (ttv_stack, ttv_result) _menhir_state -> _ -> ttv_result = fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok -> match _menhir_s with | MenhirState29 -> _menhir_run_44 _menhir_stack _v _menhir_s | MenhirState33 -> _menhir_run_44 _menhir_stack _v _menhir_s | MenhirState07 -> _menhir_run_21 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok | MenhirState25 -> _menhir_run_21 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok | MenhirState21 -> _menhir_run_21 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok | MenhirState08 -> _menhir_run_21 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok | _ -> _menhir_fail () and _menhir_run_21 : type ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_file) _menhir_state -> _ -> _menhir_box_file = fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok -> let _menhir_stack = MenhirCell1_clause (_menhir_stack, _menhir_s, _v) in match (_tok : MenhirBasics.token) with | Tokens.NEWLINE -> _menhir_run_08 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState21 | Tokens.INT _v_0 -> _menhir_run_09 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState21 | Tokens.EOF -> _menhir_run_10 _menhir_stack MenhirState21 | Tokens.A -> _menhir_run_11 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState21 | _ -> _eRR 21 and _menhir_run_11 : type ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_file) _menhir_state -> _menhir_box_file = fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s -> let _startpos = _menhir_lexbuf.Lexing.lex_start_p in let _menhir_stack = MenhirCell1_A (_menhir_stack, _menhir_s, _startpos) in let _tok = _menhir_lexer _menhir_lexbuf in match (_tok : MenhirBasics.token) with | Tokens.INT _v -> _menhir_run_09 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState11 | Tokens.ZERO -> let _v = _menhir_action_13 () in _menhir_run_12 _menhir_stack _menhir_lexbuf _menhir_lexer _v | _ -> _eRR 11 and _menhir_run_12 : type ttv_stack. (ttv_stack, _menhir_box_file) _menhir_cell1_A -> _ -> _ -> _ -> _menhir_box_file = fun _menhir_stack _menhir_lexbuf _menhir_lexer _v -> let _tok = _menhir_lexer _menhir_lexbuf in match (_tok : MenhirBasics.token) with | Tokens.NEWLINE -> let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in let _tok = _menhir_lexer _menhir_lexbuf in let MenhirCell1_A (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in let (_endpos__4_, l) = (_endpos, _v) in let _v = _menhir_action_02 _endpos__4_ _startpos__1_ l in _menhir_goto_assumption _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok | _ -> _eRR 13 and _menhir_goto_assumption : type ttv_stack ttv_result. ttv_stack -> _ -> _ -> _ -> (ttv_stack, ttv_result) _menhir_state -> _ -> ttv_result = fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok -> match _menhir_s with | MenhirState29 -> _menhir_run_45 _menhir_stack _v _menhir_s | MenhirState33 -> _menhir_run_45 _menhir_stack _v _menhir_s | MenhirState07 -> _menhir_run_25 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok | MenhirState08 -> _menhir_run_25 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok | MenhirState25 -> _menhir_run_25 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok | MenhirState21 -> _menhir_run_25 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok | _ -> _menhir_fail () and _menhir_run_25 : type ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_file) _menhir_state -> _ -> _menhir_box_file = fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok -> let _menhir_stack = MenhirCell1_assumption (_menhir_stack, _menhir_s, _v) in match (_tok : MenhirBasics.token) with | Tokens.NEWLINE -> _menhir_run_08 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState25 | Tokens.INT _v_0 -> _menhir_run_09 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState25 | Tokens.EOF -> _menhir_run_10 _menhir_stack MenhirState25 | Tokens.A -> _menhir_run_11 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState25 | _ -> _eRR 25 and _menhir_run_24 : type ttv_stack ttv_result. (ttv_stack, ttv_result) _menhir_cell1_atom -> _ -> _ -> _ -> ttv_result = fun _menhir_stack _menhir_lexbuf _menhir_lexer _v -> let MenhirCell1_atom (_menhir_stack, _menhir_s, x, _startpos_x_) = _menhir_stack in let xs = _v in let _v = _menhir_action_16 x xs in _menhir_goto_nonempty_list_atom_ _menhir_stack _menhir_lexbuf _menhir_lexer _startpos_x_ _v _menhir_s and _menhir_run_18 : type ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_file) _menhir_state -> _menhir_box_file = fun _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s -> let _tok = _menhir_lexer _menhir_lexbuf in match (_tok : MenhirBasics.token) with | Tokens.NEWLINE -> let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in let _tok = _menhir_lexer _menhir_lexbuf in let (_endpos__3_, _startpos_l_, l) = (_endpos, _startpos, _v) in let _v = _menhir_action_04 _endpos__3_ _startpos_l_ l in _menhir_goto_clause _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok | _ -> _eRR 19 and _menhir_run_15 : type ttv_stack ttv_result. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, ttv_result) _menhir_state -> _ -> ttv_result = fun _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok -> let _menhir_stack = MenhirCell1_atom (_menhir_stack, _menhir_s, _v, _startpos) in match (_tok : MenhirBasics.token) with | Tokens.INT _v_0 -> _menhir_run_09 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState15 | Tokens.ZERO -> let _v_1 = _menhir_action_13 () in _menhir_run_16 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 | _ -> _eRR 15 and _menhir_run_16 : type ttv_stack ttv_result. (ttv_stack, ttv_result) _menhir_cell1_atom -> _ -> _ -> _ -> ttv_result = fun _menhir_stack _menhir_lexbuf _menhir_lexer _v -> let MenhirCell1_atom (_menhir_stack, _menhir_s, x, _) = _menhir_stack in let xs = _v in let _v = _menhir_action_14 x xs in _menhir_goto_list_atom_ _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s and _menhir_goto_list_atom_ : type ttv_stack ttv_result. ttv_stack -> _ -> _ -> _ -> (ttv_stack, ttv_result) _menhir_state -> ttv_result = fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s -> match _menhir_s with | MenhirState35 -> _menhir_run_36 _menhir_stack _menhir_lexbuf _menhir_lexer _v | MenhirState15 -> _menhir_run_16 _menhir_stack _menhir_lexbuf _menhir_lexer _v | MenhirState11 -> _menhir_run_12 _menhir_stack _menhir_lexbuf _menhir_lexer _v | _ -> _menhir_fail () and _menhir_run_36 : type ttv_stack. (ttv_stack, _menhir_box_input) _menhir_cell1_A -> _ -> _ -> _ -> _menhir_box_input = fun _menhir_stack _menhir_lexbuf _menhir_lexer _v -> let _tok = _menhir_lexer _menhir_lexbuf in match (_tok : MenhirBasics.token) with | Tokens.NEWLINE -> let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in let MenhirCell1_A (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in let (_endpos__4_, l) = (_endpos, _v) in let _v = _menhir_action_02 _endpos__4_ _startpos__1_ l in _menhir_goto_assumption _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok | _ -> _eRR 37 let _menhir_run_07 : type ttv_stack. ((ttv_stack, _menhir_box_file) _menhir_cell1_list_NEWLINE_ as 'stack) -> _ -> _ -> _ -> ('stack, _menhir_box_file) _menhir_state -> _ -> _menhir_box_file = fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok -> let _menhir_stack = MenhirCell1_start (_menhir_stack, _menhir_s, _v) in match (_tok : MenhirBasics.token) with | Tokens.NEWLINE -> _menhir_run_08 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState07 | Tokens.INT _v_0 -> _menhir_run_09 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState07 | Tokens.EOF -> _menhir_run_10 _menhir_stack MenhirState07 | Tokens.A -> _menhir_run_11 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState07 | _ -> _eRR 7 let _menhir_run_03 : type ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_file) _menhir_state -> _menhir_box_file = fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s -> let _menhir_stack = MenhirCell1_list_NEWLINE_ (_menhir_stack, _menhir_s, _v) in let _startpos = _menhir_lexbuf.Lexing.lex_start_p in let _tok = _menhir_lexer _menhir_lexbuf in match (_tok : MenhirBasics.token) with | Tokens.INCCNF -> let _tok = _menhir_lexer _menhir_lexbuf in (match (_tok : MenhirBasics.token) with | Tokens.NEWLINE -> let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in let _tok = _menhir_lexer _menhir_lexbuf in let _v_0 = let (_startpos__1_, _endpos__3_) = (_startpos, _endpos) in _menhir_action_21 _endpos__3_ _startpos__1_ in _menhir_run_07 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState03 _tok | _ -> _eRR 5) | _ -> _eRR 4 let rec _menhir_run_02 : type ttv_stack. (ttv_stack, _menhir_box_file) _menhir_cell1_NEWLINE -> _ -> _ -> _ -> _menhir_box_file = fun _menhir_stack _menhir_lexbuf _menhir_lexer _v -> let MenhirCell1_NEWLINE (_menhir_stack, _menhir_s, _) = _menhir_stack in let (xs, x) = (_v, ()) in let _v = _menhir_action_12 x xs in _menhir_goto_list_NEWLINE_ _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s and _menhir_goto_list_NEWLINE_ : type ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_file) _menhir_state -> _menhir_box_file = fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s -> match _menhir_s with | MenhirState00 -> _menhir_run_03 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s | MenhirState01 -> _menhir_run_02 _menhir_stack _menhir_lexbuf _menhir_lexer _v | _ -> _menhir_fail () let rec _menhir_run_01 : type ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_file) _menhir_state -> _menhir_box_file = fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s -> let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in let _menhir_stack = MenhirCell1_NEWLINE (_menhir_stack, _menhir_s, _endpos) in let _tok = _menhir_lexer _menhir_lexbuf in match (_tok : MenhirBasics.token) with | Tokens.NEWLINE -> _menhir_run_01 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState01 | Tokens.P -> let _v = _menhir_action_11 () in _menhir_run_02 _menhir_stack _menhir_lexbuf _menhir_lexer _v | _ -> _eRR 1 let _menhir_run_00 : type ttv_stack. ttv_stack -> _ -> _ -> _menhir_box_file = fun _menhir_stack _menhir_lexbuf _menhir_lexer -> let _tok = _menhir_lexer _menhir_lexbuf in match (_tok : MenhirBasics.token) with | Tokens.NEWLINE -> _menhir_run_01 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState00 | Tokens.P -> let _v = _menhir_action_11 () in _menhir_run_03 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState00 | _ -> _eRR 0 let _menhir_run_39 : type ttv_stack. ttv_stack -> _ -> (ttv_stack, _menhir_box_input) _menhir_state -> _menhir_box_input = fun _menhir_stack _v _menhir_s -> let s = _v in let _v = _menhir_action_07 s in _menhir_goto_input _menhir_stack _v _menhir_s let _menhir_goto_start : type ttv_stack ttv_result. ttv_stack -> _ -> _ -> _ -> (ttv_stack, ttv_result) _menhir_state -> _ -> ttv_result = fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok -> match _menhir_s with | MenhirState29 -> _menhir_run_39 _menhir_stack _v _menhir_s | MenhirState33 -> _menhir_run_39 _menhir_stack _v _menhir_s | MenhirState03 -> _menhir_run_07 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok | _ -> _menhir_fail () let _menhir_run_30 : type ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_input) _menhir_state -> _menhir_box_input = fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s -> let _startpos = _menhir_lexbuf.Lexing.lex_start_p in let _tok = _menhir_lexer _menhir_lexbuf in match (_tok : MenhirBasics.token) with | Tokens.INCCNF -> let _tok = _menhir_lexer _menhir_lexbuf in (match (_tok : MenhirBasics.token) with | Tokens.NEWLINE -> let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in let (_startpos__1_, _endpos__3_) = (_startpos, _endpos) in let _v = _menhir_action_21 _endpos__3_ _startpos__1_ in _menhir_goto_start _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok | _ -> _eRR 31) | _ -> _eRR 30 let _menhir_run_34 : type ttv_stack. ttv_stack -> (ttv_stack, _menhir_box_input) _menhir_state -> _menhir_box_input = fun _menhir_stack _menhir_s -> let _v = _menhir_action_10 () in _menhir_goto_input _menhir_stack _v _menhir_s let _menhir_run_35 : type ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_input) _menhir_state -> _menhir_box_input = fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s -> let _startpos = _menhir_lexbuf.Lexing.lex_start_p in let _menhir_stack = MenhirCell1_A (_menhir_stack, _menhir_s, _startpos) in let _tok = _menhir_lexer _menhir_lexbuf in match (_tok : MenhirBasics.token) with | Tokens.INT _v -> _menhir_run_09 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState35 | Tokens.ZERO -> let _v = _menhir_action_13 () in _menhir_run_36 _menhir_stack _menhir_lexbuf _menhir_lexer _v | _ -> _eRR 35 let rec _menhir_run_33 : type ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_input) _menhir_state -> _menhir_box_input = fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s -> let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in let _menhir_stack = MenhirCell1_NEWLINE (_menhir_stack, _menhir_s, _endpos) in let _menhir_s = MenhirState33 in let _tok = _menhir_lexer _menhir_lexbuf in match (_tok : MenhirBasics.token) with | Tokens.P -> _menhir_run_30 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s | Tokens.NEWLINE -> _menhir_run_33 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s | Tokens.INT _v -> _menhir_run_09 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s | Tokens.EOF -> _menhir_run_34 _menhir_stack _menhir_s | Tokens.A -> _menhir_run_35 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s | _ -> _eRR 33 let _menhir_run_29 : type ttv_stack. ttv_stack -> _ -> _ -> _menhir_box_input = fun _menhir_stack _menhir_lexbuf _menhir_lexer -> let _menhir_s = MenhirState29 in let _tok = _menhir_lexer _menhir_lexbuf in match (_tok : MenhirBasics.token) with | Tokens.P -> _menhir_run_30 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s | Tokens.NEWLINE -> _menhir_run_33 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s | Tokens.INT _v -> _menhir_run_09 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s | Tokens.EOF -> _menhir_run_34 _menhir_stack _menhir_s | Tokens.A -> _menhir_run_35 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s | _ -> _eRR 29 end let input = fun _menhir_lexer _menhir_lexbuf -> let _menhir_stack = () in let MenhirBox_input v = _menhir_run_29 _menhir_stack _menhir_lexbuf _menhir_lexer in v let file = fun _menhir_lexer _menhir_lexbuf -> let _menhir_stack = () in let MenhirBox_file v = _menhir_run_00 _menhir_stack _menhir_lexbuf _menhir_lexer in v end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>