the C runtime and the Python binding now have an API for parser evaluation. The API computes PARSEVAL and Exact Match for a given tree. As a side effect the abstract trees in Python are now compared for equality by value and not by reference

This commit is contained in:
kr.angelov
2013-04-19 10:57:46 +00:00
parent 2a0c69a412
commit 15fd8b15ab
6 changed files with 328 additions and 2 deletions

View File

@@ -154,6 +154,12 @@ pgf_expr_unapply(PgfExpr expr, GuPool* pool);
PgfExpr
pgf_read_expr(GuReader* rdr, GuPool* pool, GuExn* err);
bool
pgf_literal_eq(PgfLiteral lit1, PgfLiteral lit2);
bool
pgf_expr_eq(PgfExpr e1, PgfExpr e2);
void
pgf_print_literal(PgfLiteral lit, GuWriter* wtr, GuExn* err);