| 902 | } |
| 903 | |
| 904 | void initialize_grammar() |
| 905 | { |
| 906 | nitems = 4; |
| 907 | maxitems = 300; |
| 908 | pitem = NEW2(maxitems, bucket *); |
| 909 | if (pitem == 0) no_space(); |
| 910 | pitem[0] = 0; |
| 911 | pitem[1] = 0; |
| 912 | pitem[2] = 0; |
| 913 | pitem[3] = 0; |
| 914 | |
| 915 | nrules = 3; |
| 916 | maxrules = 100; |
| 917 | plhs = NEW2(maxrules, bucket *); |
| 918 | if (plhs == 0) no_space(); |
| 919 | plhs[0] = 0; |
| 920 | plhs[1] = 0; |
| 921 | plhs[2] = 0; |
| 922 | rprec = NEW2(maxrules, Yshort); |
| 923 | if (rprec == 0) no_space(); |
| 924 | rprec[0] = 0; |
| 925 | rprec[1] = 0; |
| 926 | rprec[2] = 0; |
| 927 | rassoc = NEW2(maxrules, char); |
| 928 | if (rassoc == 0) no_space(); |
| 929 | rassoc[0] = TOKEN; |
| 930 | rassoc[1] = TOKEN; |
| 931 | rassoc[2] = TOKEN; |
| 932 | } |
| 933 | |
| 934 | void expand_items() |
| 935 | { |
no test coverage detected