diff options
| author | kr.angelov <kr.angelov@gmail.com> | 2012-12-13 14:44:33 +0000 |
|---|---|---|
| committer | kr.angelov <kr.angelov@gmail.com> | 2012-12-13 14:44:33 +0000 |
| commit | 14e721dda9a38762695ac5435c24818265629b02 (patch) | |
| tree | 9dc11a3db929482f9b4f6cb8bf59978c9288d818 /src/runtime/c/pgf/expr.h | |
| parent | 68249a11d2daf6a7d639110e218418af84fa75d2 (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.h | 10 |
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); |
