1
0
forked from GitHub/gf-core

added exprFunctions in the Haskell binding

This commit is contained in:
Krasimir Angelov
2017-09-05 10:07:43 +02:00
parent 85cf2d9f5a
commit 30b7ba04c7
4 changed files with 66 additions and 1 deletions

View File

@@ -334,6 +334,9 @@ foreign import ccall "pgf/expr.h pgf_expr_hash"
foreign import ccall "pgf/expr.h pgf_expr_size"
pgf_expr_size :: PgfExpr -> IO CInt
foreign import ccall "pgf/expr.h pgf_expr_functions"
pgf_expr_functions :: PgfExpr -> Ptr GuPool -> IO (Ptr GuSeq)
foreign import ccall "pgf/expr.h pgf_compute_tree_probability"
pgf_compute_tree_probability :: Ptr PgfPGF -> PgfExpr -> IO CFloat