mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-16 06:32:51 -06:00
added showContext
This commit is contained in:
@@ -467,6 +467,20 @@ PgfText *pgf_print_type(PgfType ty,
|
||||
return printer.get_text();
|
||||
}
|
||||
|
||||
PGF_API
|
||||
PgfText *pgf_print_context(size_t n_hypos, PgfTypeHypo *hypos,
|
||||
PgfPrintContext *ctxt, int prio,
|
||||
PgfMarshaller *m)
|
||||
{
|
||||
PgfPrinter printer(ctxt,prio,m);
|
||||
for (size_t i = 0; i < n_hypos; i++) {
|
||||
if (i > 0)
|
||||
printer.puts(" ");
|
||||
printer.hypo(&hypos[i]);
|
||||
}
|
||||
return printer.get_text();
|
||||
}
|
||||
|
||||
PGF_API
|
||||
PgfType pgf_read_type(PgfText *input, PgfUnmarshaller *u)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user