1
0
forked from GitHub/gf-core

bugfix in the debug mode for the parser

This commit is contained in:
kr.angelov
2013-11-22 12:26:49 +00:00
parent 14bbbf1f27
commit cddc19a5ad

View File

@@ -1022,10 +1022,10 @@ pgf_parsing_complete(PgfParsing* ps, PgfItem* item, PgfExprProb *ep)
GuExn* err = gu_exn(NULL, type, tmp_pool); GuExn* err = gu_exn(NULL, type, tmp_pool);
if (tmp_ccat == NULL) { if (tmp_ccat == NULL) {
gu_printf(out, err, "["); gu_printf(out, err, "[");
pgf_print_range(conts->state, before, out, err); pgf_print_range(item->conts->state, ps->before, out, err);
gu_printf(out, err, "; C%d; %d; C%d]\n", gu_printf(out, err, "; C%d; %d; C%d]\n",
conts->ccat->fid, item->conts->ccat->fid,
conts->lin_idx, item->conts->lin_idx,
ccat->fid); ccat->fid);
} }
pgf_print_production(ccat->fid, prod, out, err, tmp_pool); pgf_print_production(ccat->fid, prod, out, err, tmp_pool);