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

Function end_rule

extern/btyacc/reader.c:1238–1252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1236}
1237
1238void end_rule()
1239{
1240 register int i;
1241
1242 if (!last_was_action && plhs[nrules]->tag) {
1243 for (i = nitems - 1; pitem[i]; --i) continue;
1244 if (pitem[i+1] == 0 || pitem[i+1]->tag != plhs[nrules]->tag)
1245 default_action_warning(); }
1246
1247 last_was_action = 0;
1248 if (nitems >= maxitems) expand_items();
1249 pitem[nitems] = 0;
1250 ++nitems;
1251 ++nrules;
1252}
1253
1254void insert_empty_rule()
1255{

Callers 2

add_symbolFunction · 0.85
read_grammarFunction · 0.85

Calls 2

default_action_warningFunction · 0.85
expand_itemsFunction · 0.85

Tested by

no test coverage detected