| 120 | |
| 121 | |
| 122 | void output_actions() |
| 123 | { |
| 124 | nvectors = 3*nstates + nvars; |
| 125 | |
| 126 | froms = NEW2(nvectors, Yshort *); |
| 127 | tos = NEW2(nvectors, Yshort *); |
| 128 | tally = NEW2(nvectors, Yshort); |
| 129 | width = NEW2(nvectors, Yshort); |
| 130 | if (SRtotal+RRtotal) |
| 131 | conflicts = NEW2(4*(SRtotal+RRtotal), Yshort); |
| 132 | else |
| 133 | conflicts = 0; |
| 134 | nconflicts = 0; |
| 135 | |
| 136 | token_actions(); |
| 137 | FREE(lookaheads); |
| 138 | FREE(LA); |
| 139 | FREE(LAruleno); |
| 140 | FREE(accessing_symbol); |
| 141 | |
| 142 | goto_actions(); |
| 143 | FREE(goto_map + ntokens); |
| 144 | FREE(from_state); |
| 145 | FREE(to_state); |
| 146 | |
| 147 | sort_actions(); |
| 148 | pack_table(); |
| 149 | output_base(); |
| 150 | output_table(); |
| 151 | output_check(); |
| 152 | output_ctable(); |
| 153 | } |
| 154 | |
| 155 | int find_conflict_base(int cbase) |
| 156 | { |
no test coverage detected