From 542dcaa0ec7fe63f1fce0a4507c2174ec28b48d6 Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Fri, 19 Apr 2013 10:57:46 +0000 Subject: 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 --- src/runtime/c/pgf/expr.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/runtime/c/pgf/expr.h') diff --git a/src/runtime/c/pgf/expr.h b/src/runtime/c/pgf/expr.h index 5828289f1..7bd2d218f 100644 --- a/src/runtime/c/pgf/expr.h +++ b/src/runtime/c/pgf/expr.h @@ -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); -- cgit v1.2.3