summaryrefslogtreecommitdiff
path: root/src/runtime/c/pgf/expr.h
diff options
context:
space:
mode:
authorkr.angelov <kr.angelov@gmail.com>2012-12-13 14:44:33 +0000
committerkr.angelov <kr.angelov@gmail.com>2012-12-13 14:44:33 +0000
commit14e721dda9a38762695ac5435c24818265629b02 (patch)
tree9dc11a3db929482f9b4f6cb8bf59978c9288d818 /src/runtime/c/pgf/expr.h
parent68249a11d2daf6a7d639110e218418af84fa75d2 (diff)
a top-level API for parsing in the C runtime
Diffstat (limited to 'src/runtime/c/pgf/expr.h')
-rw-r--r--src/runtime/c/pgf/expr.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/runtime/c/pgf/expr.h b/src/runtime/c/pgf/expr.h
index f4d5881c7..4c1bddbae 100644
--- a/src/runtime/c/pgf/expr.h
+++ b/src/runtime/c/pgf/expr.h
@@ -5,7 +5,6 @@
#include <gu/write.h>
#include <gu/variant.h>
#include <gu/seq.h>
-#include <pgf/pgf.h>
/// Abstract syntax trees
/// @file
@@ -125,6 +124,15 @@ typedef struct {
PgfExpr expr;
} PgfExprImplArg;
+typedef float prob_t;
+
+typedef struct {
+ prob_t prob;
+ PgfExpr expr;
+} PgfExprProb;
+
+extern GU_DECLARE_TYPE(PgfExprProb, struct);
+
int
pgf_expr_arity(PgfExpr expr);