1
0
forked from GitHub/gf-core

libpgf: two small fixes in the parser debugger

This commit is contained in:
kr.angelov
2012-02-22 14:06:49 +00:00
parent 786bf883b7
commit 42410f80d2

View File

@@ -127,7 +127,7 @@ pgf_print_production(int fid, PgfProduction prod, GuWriter *wtr, GuExn* err)
}
case PGF_PRODUCTION_COERCE: {
PgfProductionCoerce* pcoerce = i.data;
gu_printf(wtr,err,"_[C%d]\n",pcoerce->coerce);
gu_printf(wtr,err,"_[C%d]\n",pcoerce->coerce->fid);
break;
}
default:
@@ -172,7 +172,7 @@ pgf_print_item(PgfItem* item, GuWriter* wtr, GuExn* err)
}
case PGF_PRODUCTION_COERCE: {
PgfProductionCoerce* pcoerce = i.data;
gu_printf(wtr, err, "_[%d]; %d : ",
gu_printf(wtr, err, "_[C%d]; %d : ",
pcoerce->coerce->fid,
item->base->lin_idx);
if (item->seq_idx == 0)