diff options
| author | krangelov <kr.angelov@gmail.com> | 2020-08-14 20:54:15 +0200 |
|---|---|---|
| committer | krangelov <kr.angelov@gmail.com> | 2020-08-14 20:54:15 +0200 |
| commit | 23edeec5a95bb7378d8f075e5bee5e67235adadd (patch) | |
| tree | c521597bbd8b606db7abb293eddafa596be0fe51 /src/runtime/c/pgf/expr.h | |
| parent | 830dbe760db2df0c573c06cb481d0611bf55908b (diff) | |
added an API for cloning expressions/types/literals
Diffstat (limited to 'src/runtime/c/pgf/expr.h')
| -rw-r--r-- | src/runtime/c/pgf/expr.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/runtime/c/pgf/expr.h b/src/runtime/c/pgf/expr.h index 2c960ac92..59af969ec 100644 --- a/src/runtime/c/pgf/expr.h +++ b/src/runtime/c/pgf/expr.h @@ -233,6 +233,15 @@ PGF_API_DECL void pgf_print_expr_tuple(size_t n_exprs, PgfExpr exprs[], PgfPrintContext* ctxt, GuOut* out, GuExn* err); +PGF_API PgfLiteral +pgf_clone_literal(PgfLiteral lit, GuPool* pool); + +PGF_API PgfExpr +pgf_clone_expr(PgfExpr expr, GuPool* pool); + +PGF_API PgfType* +pgf_clone_type(PgfType* type, GuPool* pool); + PGF_API_DECL prob_t pgf_compute_tree_probability(PgfPGF *gr, PgfExpr expr); |
