short result_size;
};
struct state {
+ short reduce_prod;
short go_to_cnt;
const struct lookup * go_to;
- short reduce_prod;
};
###### functions
}
}
if (is->go_to.cnt)
- fprintf(f, "\t[%d] = { %d, goto_%d, %d },\n",
- i, is->go_to.cnt, i, prod);
+ fprintf(f, "\t[%d] = { %d, %d, goto_%d },\n",
+ i, prod, is->go_to.cnt, i);
else
- fprintf(f, "\t[%d] = { 0, NULL, %d },\n", i, prod);
+ fprintf(f, "\t[%d] = { %d, 0, NULL },\n", i, prod);
}
fprintf(f, "};\n\n");
}