added an API for printing the PGF to human readable format

This commit is contained in:
kr.angelov
2012-01-21 10:27:55 +00:00
parent 1acb722ba2
commit 64a00dad48
8 changed files with 94 additions and 34 deletions

View File

@@ -144,7 +144,7 @@ int main(int argc, char* argv[]) {
}
gu_putc(' ', wtr, err);
// Write out the abstract syntax tree
pgf_expr_print(expr, wtr, err);
pgf_print_expr(expr, 0, wtr, err);
gu_putc('\n', wtr, err);
// Enumerate the concrete syntax trees corresponding