From 14e721dda9a38762695ac5435c24818265629b02 Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Thu, 13 Dec 2012 14:44:33 +0000 Subject: a top-level API for parsing in the C runtime --- src/runtime/c/pgf/expr.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/runtime/c/pgf/expr.h') 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 #include #include -#include /// 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); -- cgit v1.2.3