1
0
forked from GitHub/gf-core
This commit is contained in:
Krasimir Angelov
2023-12-20 10:18:54 +01:00
parent 4c701e68e2
commit 93e47b6409

View File

@@ -496,7 +496,7 @@ void PgfLRTableMaker::print_production(CCat *ccat, Production *prod)
ref<PgfDTyp> type = prod->lin->absfun->type;
printer.nprintf(37, "?%zu -> ", ccat->id);
printer.puts(&prod->lin->name);
printer.puts("[");
printer.nprintf(37, "/%zu[", prod->index);
PgfDBMarshaller m;
size_t args_start = type->hypos->len * prod->index;
for (size_t i = 0; i < type->hypos->len; i++) {
@@ -752,6 +752,9 @@ void PgfLRTableMaker::predict(State *state, Fold fold, Item *item, ref<PgfText>
return true;
};
probspace_iter(abstr->funs_by_cat, cat, f, false);
} else {
Item *new_item = new(item,ccat,lin_idx) Item;
process(state,fold,new_item);
}
if (fold == PROBE) {