diff options
| author | kr.angelov <kr.angelov@gmail.com> | 2013-04-19 10:57:46 +0000 |
|---|---|---|
| committer | kr.angelov <kr.angelov@gmail.com> | 2013-04-19 10:57:46 +0000 |
| commit | 542dcaa0ec7fe63f1fce0a4507c2174ec28b48d6 (patch) | |
| tree | acb0d1a9d8003208c761af8efe7bbe59b5bf3e46 /src/runtime/c/pgf/expr.h | |
| parent | f050609101e25fdee6f884a0da43dafa8889772e (diff) | |
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
Diffstat (limited to 'src/runtime/c/pgf/expr.h')
| -rw-r--r-- | src/runtime/c/pgf/expr.h | 6 |
1 files changed, 6 insertions, 0 deletions
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); |
