mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 03:32:51 -06:00
a top-level API for parsing in the C runtime
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user