1
0
forked from GitHub/gf-core

added function treeProbability in the Haskell binding

This commit is contained in:
Krasimir Angelov
2017-09-01 08:46:52 +02:00
parent 1182a9b63d
commit 5a37660811
5 changed files with 42 additions and 2 deletions

View File

@@ -325,6 +325,9 @@ foreign import ccall "pgf/pgf.h pgf_expr_unlit"
foreign import ccall "pgf/expr.h pgf_expr_arity"
pgf_expr_arity :: PgfExpr -> IO CInt
foreign import ccall "pgf/expr.h pgf_compute_tree_probability"
pgf_compute_tree_probability :: Ptr PgfPGF -> PgfExpr -> IO CFloat
foreign import ccall "pgf/expr.h pgf_check_expr"
pgf_check_expr :: Ptr PgfPGF -> Ptr PgfExpr -> PgfType -> Ptr GuExn -> Ptr GuPool -> IO ()