1Terminals unused in grammar 2 3 ':' 4 ',' 5 '.' 6 '\'' 7 '+' 8 '-' 9 '/' 10 '*' 11 '%' 12 '$' 13 '<' 14 '>' 15 '?' 16 '@' 17 '{' 18 19 20Grammar 21 22 0 $accept: statement_list "end of file" 23 24 1 statement_list: statement_list statement 25 2 | %empty 26 27 3 statement: TC_SECTION section_string_or_value ']' 28 4 | TC_LABEL '=' string_or_value 29 5 | TC_OFFSET option_offset ']' '=' string_or_value 30 6 | TC_LABEL 31 7 | END_OF_LINE 32 33 8 section_string_or_value: var_string_list_section 34 9 | %empty 35 36 10 string_or_value: expr 37 11 | BOOL_TRUE 38 12 | BOOL_FALSE 39 13 | NULL_NULL 40 14 | END_OF_LINE 41 42 15 option_offset: var_string_list 43 16 | %empty 44 45 17 encapsed_list: encapsed_list cfg_var_ref 46 18 | encapsed_list TC_QUOTED_STRING 47 19 | %empty 48 49 20 var_string_list_section: cfg_var_ref 50 21 | constant_literal 51 22 | '"' encapsed_list '"' 52 23 | var_string_list_section cfg_var_ref 53 24 | var_string_list_section constant_literal 54 25 | var_string_list_section '"' encapsed_list '"' 55 56 26 var_string_list: cfg_var_ref 57 27 | constant_string 58 28 | '"' encapsed_list '"' 59 29 | var_string_list cfg_var_ref 60 30 | var_string_list constant_string 61 31 | var_string_list '"' encapsed_list '"' 62 63 32 expr: var_string_list 64 33 | expr '|' expr 65 34 | expr '&' expr 66 35 | expr '^' expr 67 36 | '~' expr 68 37 | '!' expr 69 38 | '(' expr ')' 70 71 39 cfg_var_ref: TC_DOLLAR_CURLY TC_VARNAME '}' 72 73 40 constant_literal: TC_CONSTANT 74 41 | TC_RAW 75 42 | TC_NUMBER 76 43 | TC_STRING 77 44 | TC_WHITESPACE 78 79 45 constant_string: TC_CONSTANT 80 46 | TC_RAW 81 47 | TC_NUMBER 82 48 | TC_STRING 83 49 | TC_WHITESPACE 84 85 86Terminals, with rules where they appear 87 88"end of file" (0) 0 89'!' (33) 37 90'"' (34) 22 25 28 31 91'$' (36) 92'%' (37) 93'&' (38) 34 94'\'' (39) 95'(' (40) 38 96')' (41) 38 97'*' (42) 98'+' (43) 99',' (44) 100'-' (45) 101'.' (46) 102'/' (47) 103':' (58) 104'<' (60) 105'=' (61) 4 5 106'>' (62) 107'?' (63) 108'@' (64) 109']' (93) 3 5 110'^' (94) 35 111'{' (123) 112'|' (124) 33 113'}' (125) 39 114'~' (126) 36 115error (256) 116TC_SECTION (258) 3 117TC_RAW (259) 41 46 118TC_CONSTANT (260) 40 45 119TC_NUMBER (261) 42 47 120TC_STRING (262) 43 48 121TC_WHITESPACE (263) 44 49 122TC_LABEL (264) 4 6 123TC_OFFSET (265) 5 124TC_DOLLAR_CURLY (266) 39 125TC_VARNAME (267) 39 126TC_QUOTED_STRING (268) 18 127BOOL_TRUE (269) 11 128BOOL_FALSE (270) 12 129NULL_NULL (271) 13 130END_OF_LINE (272) 7 14 131 132 133Nonterminals, with rules where they appear 134 135$accept (44) 136 on left: 0 137statement_list (45) 138 on left: 1 2, on right: 0 1 139statement (46) 140 on left: 3 4 5 6 7, on right: 1 141section_string_or_value (47) 142 on left: 8 9, on right: 3 143string_or_value (48) 144 on left: 10 11 12 13 14, on right: 4 5 145option_offset (49) 146 on left: 15 16, on right: 5 147encapsed_list (50) 148 on left: 17 18 19, on right: 17 18 22 25 28 31 149var_string_list_section (51) 150 on left: 20 21 22 23 24 25, on right: 8 23 24 25 151var_string_list (52) 152 on left: 26 27 28 29 30 31, on right: 15 29 30 31 32 153expr (53) 154 on left: 32 33 34 35 36 37 38, on right: 10 33 34 35 36 37 38 155cfg_var_ref (54) 156 on left: 39, on right: 17 20 23 26 29 157constant_literal (55) 158 on left: 40 41 42 43 44, on right: 21 24 159constant_string (56) 160 on left: 45 46 47 48 49, on right: 27 30 161 162 163State 0 164 165 0 $accept: . statement_list "end of file" 166 167 $default reduce using rule 2 (statement_list) 168 169 statement_list go to state 1 170 171 172State 1 173 174 0 $accept: statement_list . "end of file" 175 1 statement_list: statement_list . statement 176 177 "end of file" shift, and go to state 2 178 TC_SECTION shift, and go to state 3 179 TC_LABEL shift, and go to state 4 180 TC_OFFSET shift, and go to state 5 181 END_OF_LINE shift, and go to state 6 182 183 statement go to state 7 184 185 186State 2 187 188 0 $accept: statement_list "end of file" . 189 190 $default accept 191 192 193State 3 194 195 3 statement: TC_SECTION . section_string_or_value ']' 196 197 TC_RAW shift, and go to state 8 198 TC_CONSTANT shift, and go to state 9 199 TC_NUMBER shift, and go to state 10 200 TC_STRING shift, and go to state 11 201 TC_WHITESPACE shift, and go to state 12 202 TC_DOLLAR_CURLY shift, and go to state 13 203 '"' shift, and go to state 14 204 205 $default reduce using rule 9 (section_string_or_value) 206 207 section_string_or_value go to state 15 208 var_string_list_section go to state 16 209 cfg_var_ref go to state 17 210 constant_literal go to state 18 211 212 213State 4 214 215 4 statement: TC_LABEL . '=' string_or_value 216 6 | TC_LABEL . 217 218 '=' shift, and go to state 19 219 220 $default reduce using rule 6 (statement) 221 222 223State 5 224 225 5 statement: TC_OFFSET . option_offset ']' '=' string_or_value 226 227 TC_RAW shift, and go to state 20 228 TC_CONSTANT shift, and go to state 21 229 TC_NUMBER shift, and go to state 22 230 TC_STRING shift, and go to state 23 231 TC_WHITESPACE shift, and go to state 24 232 TC_DOLLAR_CURLY shift, and go to state 13 233 '"' shift, and go to state 25 234 235 $default reduce using rule 16 (option_offset) 236 237 option_offset go to state 26 238 var_string_list go to state 27 239 cfg_var_ref go to state 28 240 constant_string go to state 29 241 242 243State 6 244 245 7 statement: END_OF_LINE . 246 247 $default reduce using rule 7 (statement) 248 249 250State 7 251 252 1 statement_list: statement_list statement . 253 254 $default reduce using rule 1 (statement_list) 255 256 257State 8 258 259 41 constant_literal: TC_RAW . 260 261 $default reduce using rule 41 (constant_literal) 262 263 264State 9 265 266 40 constant_literal: TC_CONSTANT . 267 268 $default reduce using rule 40 (constant_literal) 269 270 271State 10 272 273 42 constant_literal: TC_NUMBER . 274 275 $default reduce using rule 42 (constant_literal) 276 277 278State 11 279 280 43 constant_literal: TC_STRING . 281 282 $default reduce using rule 43 (constant_literal) 283 284 285State 12 286 287 44 constant_literal: TC_WHITESPACE . 288 289 $default reduce using rule 44 (constant_literal) 290 291 292State 13 293 294 39 cfg_var_ref: TC_DOLLAR_CURLY . TC_VARNAME '}' 295 296 TC_VARNAME shift, and go to state 30 297 298 299State 14 300 301 22 var_string_list_section: '"' . encapsed_list '"' 302 303 $default reduce using rule 19 (encapsed_list) 304 305 encapsed_list go to state 31 306 307 308State 15 309 310 3 statement: TC_SECTION section_string_or_value . ']' 311 312 ']' shift, and go to state 32 313 314 315State 16 316 317 8 section_string_or_value: var_string_list_section . 318 23 var_string_list_section: var_string_list_section . cfg_var_ref 319 24 | var_string_list_section . constant_literal 320 25 | var_string_list_section . '"' encapsed_list '"' 321 322 TC_RAW shift, and go to state 8 323 TC_CONSTANT shift, and go to state 9 324 TC_NUMBER shift, and go to state 10 325 TC_STRING shift, and go to state 11 326 TC_WHITESPACE shift, and go to state 12 327 TC_DOLLAR_CURLY shift, and go to state 13 328 '"' shift, and go to state 33 329 330 $default reduce using rule 8 (section_string_or_value) 331 332 cfg_var_ref go to state 34 333 constant_literal go to state 35 334 335 336State 17 337 338 20 var_string_list_section: cfg_var_ref . 339 340 $default reduce using rule 20 (var_string_list_section) 341 342 343State 18 344 345 21 var_string_list_section: constant_literal . 346 347 $default reduce using rule 21 (var_string_list_section) 348 349 350State 19 351 352 4 statement: TC_LABEL '=' . string_or_value 353 354 TC_RAW shift, and go to state 20 355 TC_CONSTANT shift, and go to state 21 356 TC_NUMBER shift, and go to state 22 357 TC_STRING shift, and go to state 23 358 TC_WHITESPACE shift, and go to state 24 359 TC_DOLLAR_CURLY shift, and go to state 13 360 BOOL_TRUE shift, and go to state 36 361 BOOL_FALSE shift, and go to state 37 362 NULL_NULL shift, and go to state 38 363 END_OF_LINE shift, and go to state 39 364 '"' shift, and go to state 25 365 '~' shift, and go to state 40 366 '!' shift, and go to state 41 367 '(' shift, and go to state 42 368 369 string_or_value go to state 43 370 var_string_list go to state 44 371 expr go to state 45 372 cfg_var_ref go to state 28 373 constant_string go to state 29 374 375 376State 20 377 378 46 constant_string: TC_RAW . 379 380 $default reduce using rule 46 (constant_string) 381 382 383State 21 384 385 45 constant_string: TC_CONSTANT . 386 387 $default reduce using rule 45 (constant_string) 388 389 390State 22 391 392 47 constant_string: TC_NUMBER . 393 394 $default reduce using rule 47 (constant_string) 395 396 397State 23 398 399 48 constant_string: TC_STRING . 400 401 $default reduce using rule 48 (constant_string) 402 403 404State 24 405 406 49 constant_string: TC_WHITESPACE . 407 408 $default reduce using rule 49 (constant_string) 409 410 411State 25 412 413 28 var_string_list: '"' . encapsed_list '"' 414 415 $default reduce using rule 19 (encapsed_list) 416 417 encapsed_list go to state 46 418 419 420State 26 421 422 5 statement: TC_OFFSET option_offset . ']' '=' string_or_value 423 424 ']' shift, and go to state 47 425 426 427State 27 428 429 15 option_offset: var_string_list . 430 29 var_string_list: var_string_list . cfg_var_ref 431 30 | var_string_list . constant_string 432 31 | var_string_list . '"' encapsed_list '"' 433 434 TC_RAW shift, and go to state 20 435 TC_CONSTANT shift, and go to state 21 436 TC_NUMBER shift, and go to state 22 437 TC_STRING shift, and go to state 23 438 TC_WHITESPACE shift, and go to state 24 439 TC_DOLLAR_CURLY shift, and go to state 13 440 '"' shift, and go to state 48 441 442 $default reduce using rule 15 (option_offset) 443 444 cfg_var_ref go to state 49 445 constant_string go to state 50 446 447 448State 28 449 450 26 var_string_list: cfg_var_ref . 451 452 $default reduce using rule 26 (var_string_list) 453 454 455State 29 456 457 27 var_string_list: constant_string . 458 459 $default reduce using rule 27 (var_string_list) 460 461 462State 30 463 464 39 cfg_var_ref: TC_DOLLAR_CURLY TC_VARNAME . '}' 465 466 '}' shift, and go to state 51 467 468 469State 31 470 471 17 encapsed_list: encapsed_list . cfg_var_ref 472 18 | encapsed_list . TC_QUOTED_STRING 473 22 var_string_list_section: '"' encapsed_list . '"' 474 475 TC_DOLLAR_CURLY shift, and go to state 13 476 TC_QUOTED_STRING shift, and go to state 52 477 '"' shift, and go to state 53 478 479 cfg_var_ref go to state 54 480 481 482State 32 483 484 3 statement: TC_SECTION section_string_or_value ']' . 485 486 $default reduce using rule 3 (statement) 487 488 489State 33 490 491 25 var_string_list_section: var_string_list_section '"' . encapsed_list '"' 492 493 $default reduce using rule 19 (encapsed_list) 494 495 encapsed_list go to state 55 496 497 498State 34 499 500 23 var_string_list_section: var_string_list_section cfg_var_ref . 501 502 $default reduce using rule 23 (var_string_list_section) 503 504 505State 35 506 507 24 var_string_list_section: var_string_list_section constant_literal . 508 509 $default reduce using rule 24 (var_string_list_section) 510 511 512State 36 513 514 11 string_or_value: BOOL_TRUE . 515 516 $default reduce using rule 11 (string_or_value) 517 518 519State 37 520 521 12 string_or_value: BOOL_FALSE . 522 523 $default reduce using rule 12 (string_or_value) 524 525 526State 38 527 528 13 string_or_value: NULL_NULL . 529 530 $default reduce using rule 13 (string_or_value) 531 532 533State 39 534 535 14 string_or_value: END_OF_LINE . 536 537 $default reduce using rule 14 (string_or_value) 538 539 540State 40 541 542 36 expr: '~' . expr 543 544 TC_RAW shift, and go to state 20 545 TC_CONSTANT shift, and go to state 21 546 TC_NUMBER shift, and go to state 22 547 TC_STRING shift, and go to state 23 548 TC_WHITESPACE shift, and go to state 24 549 TC_DOLLAR_CURLY shift, and go to state 13 550 '"' shift, and go to state 25 551 '~' shift, and go to state 40 552 '!' shift, and go to state 41 553 '(' shift, and go to state 42 554 555 var_string_list go to state 44 556 expr go to state 56 557 cfg_var_ref go to state 28 558 constant_string go to state 29 559 560 561State 41 562 563 37 expr: '!' . expr 564 565 TC_RAW shift, and go to state 20 566 TC_CONSTANT shift, and go to state 21 567 TC_NUMBER shift, and go to state 22 568 TC_STRING shift, and go to state 23 569 TC_WHITESPACE shift, and go to state 24 570 TC_DOLLAR_CURLY shift, and go to state 13 571 '"' shift, and go to state 25 572 '~' shift, and go to state 40 573 '!' shift, and go to state 41 574 '(' shift, and go to state 42 575 576 var_string_list go to state 44 577 expr go to state 57 578 cfg_var_ref go to state 28 579 constant_string go to state 29 580 581 582State 42 583 584 38 expr: '(' . expr ')' 585 586 TC_RAW shift, and go to state 20 587 TC_CONSTANT shift, and go to state 21 588 TC_NUMBER shift, and go to state 22 589 TC_STRING shift, and go to state 23 590 TC_WHITESPACE shift, and go to state 24 591 TC_DOLLAR_CURLY shift, and go to state 13 592 '"' shift, and go to state 25 593 '~' shift, and go to state 40 594 '!' shift, and go to state 41 595 '(' shift, and go to state 42 596 597 var_string_list go to state 44 598 expr go to state 58 599 cfg_var_ref go to state 28 600 constant_string go to state 29 601 602 603State 43 604 605 4 statement: TC_LABEL '=' string_or_value . 606 607 $default reduce using rule 4 (statement) 608 609 610State 44 611 612 29 var_string_list: var_string_list . cfg_var_ref 613 30 | var_string_list . constant_string 614 31 | var_string_list . '"' encapsed_list '"' 615 32 expr: var_string_list . 616 617 TC_RAW shift, and go to state 20 618 TC_CONSTANT shift, and go to state 21 619 TC_NUMBER shift, and go to state 22 620 TC_STRING shift, and go to state 23 621 TC_WHITESPACE shift, and go to state 24 622 TC_DOLLAR_CURLY shift, and go to state 13 623 '"' shift, and go to state 48 624 625 $default reduce using rule 32 (expr) 626 627 cfg_var_ref go to state 49 628 constant_string go to state 50 629 630 631State 45 632 633 10 string_or_value: expr . 634 33 expr: expr . '|' expr 635 34 | expr . '&' expr 636 35 | expr . '^' expr 637 638 '^' shift, and go to state 59 639 '|' shift, and go to state 60 640 '&' shift, and go to state 61 641 642 $default reduce using rule 10 (string_or_value) 643 644 645State 46 646 647 17 encapsed_list: encapsed_list . cfg_var_ref 648 18 | encapsed_list . TC_QUOTED_STRING 649 28 var_string_list: '"' encapsed_list . '"' 650 651 TC_DOLLAR_CURLY shift, and go to state 13 652 TC_QUOTED_STRING shift, and go to state 52 653 '"' shift, and go to state 62 654 655 cfg_var_ref go to state 54 656 657 658State 47 659 660 5 statement: TC_OFFSET option_offset ']' . '=' string_or_value 661 662 '=' shift, and go to state 63 663 664 665State 48 666 667 31 var_string_list: var_string_list '"' . encapsed_list '"' 668 669 $default reduce using rule 19 (encapsed_list) 670 671 encapsed_list go to state 64 672 673 674State 49 675 676 29 var_string_list: var_string_list cfg_var_ref . 677 678 $default reduce using rule 29 (var_string_list) 679 680 681State 50 682 683 30 var_string_list: var_string_list constant_string . 684 685 $default reduce using rule 30 (var_string_list) 686 687 688State 51 689 690 39 cfg_var_ref: TC_DOLLAR_CURLY TC_VARNAME '}' . 691 692 $default reduce using rule 39 (cfg_var_ref) 693 694 695State 52 696 697 18 encapsed_list: encapsed_list TC_QUOTED_STRING . 698 699 $default reduce using rule 18 (encapsed_list) 700 701 702State 53 703 704 22 var_string_list_section: '"' encapsed_list '"' . 705 706 $default reduce using rule 22 (var_string_list_section) 707 708 709State 54 710 711 17 encapsed_list: encapsed_list cfg_var_ref . 712 713 $default reduce using rule 17 (encapsed_list) 714 715 716State 55 717 718 17 encapsed_list: encapsed_list . cfg_var_ref 719 18 | encapsed_list . TC_QUOTED_STRING 720 25 var_string_list_section: var_string_list_section '"' encapsed_list . '"' 721 722 TC_DOLLAR_CURLY shift, and go to state 13 723 TC_QUOTED_STRING shift, and go to state 52 724 '"' shift, and go to state 65 725 726 cfg_var_ref go to state 54 727 728 729State 56 730 731 33 expr: expr . '|' expr 732 34 | expr . '&' expr 733 35 | expr . '^' expr 734 36 | '~' expr . 735 736 $default reduce using rule 36 (expr) 737 738 739State 57 740 741 33 expr: expr . '|' expr 742 34 | expr . '&' expr 743 35 | expr . '^' expr 744 37 | '!' expr . 745 746 $default reduce using rule 37 (expr) 747 748 749State 58 750 751 33 expr: expr . '|' expr 752 34 | expr . '&' expr 753 35 | expr . '^' expr 754 38 | '(' expr . ')' 755 756 '^' shift, and go to state 59 757 '|' shift, and go to state 60 758 '&' shift, and go to state 61 759 ')' shift, and go to state 66 760 761 762State 59 763 764 35 expr: expr '^' . expr 765 766 TC_RAW shift, and go to state 20 767 TC_CONSTANT shift, and go to state 21 768 TC_NUMBER shift, and go to state 22 769 TC_STRING shift, and go to state 23 770 TC_WHITESPACE shift, and go to state 24 771 TC_DOLLAR_CURLY shift, and go to state 13 772 '"' shift, and go to state 25 773 '~' shift, and go to state 40 774 '!' shift, and go to state 41 775 '(' shift, and go to state 42 776 777 var_string_list go to state 44 778 expr go to state 67 779 cfg_var_ref go to state 28 780 constant_string go to state 29 781 782 783State 60 784 785 33 expr: expr '|' . expr 786 787 TC_RAW shift, and go to state 20 788 TC_CONSTANT shift, and go to state 21 789 TC_NUMBER shift, and go to state 22 790 TC_STRING shift, and go to state 23 791 TC_WHITESPACE shift, and go to state 24 792 TC_DOLLAR_CURLY shift, and go to state 13 793 '"' shift, and go to state 25 794 '~' shift, and go to state 40 795 '!' shift, and go to state 41 796 '(' shift, and go to state 42 797 798 var_string_list go to state 44 799 expr go to state 68 800 cfg_var_ref go to state 28 801 constant_string go to state 29 802 803 804State 61 805 806 34 expr: expr '&' . expr 807 808 TC_RAW shift, and go to state 20 809 TC_CONSTANT shift, and go to state 21 810 TC_NUMBER shift, and go to state 22 811 TC_STRING shift, and go to state 23 812 TC_WHITESPACE shift, and go to state 24 813 TC_DOLLAR_CURLY shift, and go to state 13 814 '"' shift, and go to state 25 815 '~' shift, and go to state 40 816 '!' shift, and go to state 41 817 '(' shift, and go to state 42 818 819 var_string_list go to state 44 820 expr go to state 69 821 cfg_var_ref go to state 28 822 constant_string go to state 29 823 824 825State 62 826 827 28 var_string_list: '"' encapsed_list '"' . 828 829 $default reduce using rule 28 (var_string_list) 830 831 832State 63 833 834 5 statement: TC_OFFSET option_offset ']' '=' . string_or_value 835 836 TC_RAW shift, and go to state 20 837 TC_CONSTANT shift, and go to state 21 838 TC_NUMBER shift, and go to state 22 839 TC_STRING shift, and go to state 23 840 TC_WHITESPACE shift, and go to state 24 841 TC_DOLLAR_CURLY shift, and go to state 13 842 BOOL_TRUE shift, and go to state 36 843 BOOL_FALSE shift, and go to state 37 844 NULL_NULL shift, and go to state 38 845 END_OF_LINE shift, and go to state 39 846 '"' shift, and go to state 25 847 '~' shift, and go to state 40 848 '!' shift, and go to state 41 849 '(' shift, and go to state 42 850 851 string_or_value go to state 70 852 var_string_list go to state 44 853 expr go to state 45 854 cfg_var_ref go to state 28 855 constant_string go to state 29 856 857 858State 64 859 860 17 encapsed_list: encapsed_list . cfg_var_ref 861 18 | encapsed_list . TC_QUOTED_STRING 862 31 var_string_list: var_string_list '"' encapsed_list . '"' 863 864 TC_DOLLAR_CURLY shift, and go to state 13 865 TC_QUOTED_STRING shift, and go to state 52 866 '"' shift, and go to state 71 867 868 cfg_var_ref go to state 54 869 870 871State 65 872 873 25 var_string_list_section: var_string_list_section '"' encapsed_list '"' . 874 875 $default reduce using rule 25 (var_string_list_section) 876 877 878State 66 879 880 38 expr: '(' expr ')' . 881 882 $default reduce using rule 38 (expr) 883 884 885State 67 886 887 33 expr: expr . '|' expr 888 34 | expr . '&' expr 889 35 | expr . '^' expr 890 35 | expr '^' expr . 891 892 $default reduce using rule 35 (expr) 893 894 895State 68 896 897 33 expr: expr . '|' expr 898 33 | expr '|' expr . 899 34 | expr . '&' expr 900 35 | expr . '^' expr 901 902 $default reduce using rule 33 (expr) 903 904 905State 69 906 907 33 expr: expr . '|' expr 908 34 | expr . '&' expr 909 34 | expr '&' expr . 910 35 | expr . '^' expr 911 912 $default reduce using rule 34 (expr) 913 914 915State 70 916 917 5 statement: TC_OFFSET option_offset ']' '=' string_or_value . 918 919 $default reduce using rule 5 (statement) 920 921 922State 71 923 924 31 var_string_list: var_string_list '"' encapsed_list '"' . 925 926 $default reduce using rule 31 (var_string_list) 927