MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / output_actions

Function output_actions

extern/btyacc/output.c:122–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120
121
122void 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
155int find_conflict_base(int cbase)
156{

Callers 1

outputFunction · 0.85

Calls 8

token_actionsFunction · 0.85
goto_actionsFunction · 0.85
sort_actionsFunction · 0.85
pack_tableFunction · 0.85
output_baseFunction · 0.85
output_tableFunction · 0.85
output_checkFunction · 0.85
output_ctableFunction · 0.85

Tested by

no test coverage detected