mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-22 19:22:50 -06:00
libpgf: simple fix in the grammar printer and the reader
This commit is contained in:
@@ -123,7 +123,7 @@ pgf_print_productions(GuMapItor* fn, const void* key, void* value,
|
|||||||
}
|
}
|
||||||
case PGF_PRODUCTION_COERCE: {
|
case PGF_PRODUCTION_COERCE: {
|
||||||
PgfProductionCoerce* pcoerce = i.data;
|
PgfProductionCoerce* pcoerce = i.data;
|
||||||
gu_printf(wtr,err,"_[C%d]\n",pcoerce->coerce);
|
gu_printf(wtr,err,"_[C%d]\n",pcoerce->coerce->fid);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
|||||||
@@ -434,6 +434,7 @@ pgf_read_to_PgfCCatId(GuType* type, PgfReader* rdr, void* to)
|
|||||||
ccat = gu_new(PgfCCat, rdr->opool);
|
ccat = gu_new(PgfCCat, rdr->opool);
|
||||||
ccat->cnccat = NULL;
|
ccat->cnccat = NULL;
|
||||||
ccat->lindefs = gu_map_get(rdr->curr_lindefs, &fid, PgfFunIds*);
|
ccat->lindefs = gu_map_get(rdr->curr_lindefs, &fid, PgfFunIds*);
|
||||||
|
ccat->n_synprods = 0;
|
||||||
ccat->prods = gu_null_seq;
|
ccat->prods = gu_null_seq;
|
||||||
ccat->fid = fid;
|
ccat->fid = fid;
|
||||||
|
|
||||||
@@ -780,6 +781,7 @@ pgf_read_new_PgfCncCat(GuType* type, PgfReader* rdr, GuPool* pool,
|
|||||||
ccat = gu_new(PgfCCat, rdr->opool);
|
ccat = gu_new(PgfCCat, rdr->opool);
|
||||||
ccat->cnccat = NULL;
|
ccat->cnccat = NULL;
|
||||||
ccat->lindefs = gu_map_get(rdr->curr_lindefs, &fid, PgfFunIds*);
|
ccat->lindefs = gu_map_get(rdr->curr_lindefs, &fid, PgfFunIds*);
|
||||||
|
ccat->n_synprods = 0;
|
||||||
ccat->prods = gu_null_seq;
|
ccat->prods = gu_null_seq;
|
||||||
ccat->fid = fid;
|
ccat->fid = fid;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user