summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorkr.angelov <kr.angelov@gmail.com>2013-11-20 09:54:37 +0000
committerkr.angelov <kr.angelov@gmail.com>2013-11-20 09:54:37 +0000
commit9a2725279e0ce992fd0717582a78a0abdac51fa9 (patch)
tree32ef64d898beb6e5b9d6397fe94bcbad8838523d /src
parent308421789a231b7edba24e13db38bfa7cf4adf47 (diff)
fix in the Python binding
Diffstat (limited to 'src')
-rw-r--r--src/runtime/c/pgf/pgf.h6
-rw-r--r--src/runtime/python/pypgf.c1
2 files changed, 6 insertions, 1 deletions
diff --git a/src/runtime/c/pgf/pgf.h b/src/runtime/c/pgf/pgf.h
index ffc293306..606cb9940 100644
--- a/src/runtime/c/pgf/pgf.h
+++ b/src/runtime/c/pgf/pgf.h
@@ -158,6 +158,12 @@ pgf_parse_with_heuristics(PgfConcr* concr, PgfCId cat,
GuExn* err,
GuPool* pool, GuPool* out_pool);
+typedef struct {
+ PgfToken tok;
+ PgfCId cat;
+ prob_t prob;
+} PgfTokenProb;
+
GuEnum*
pgf_complete(PgfConcr* concr, PgfCId cat, GuString string,
GuString prefix, GuExn* err, GuPool* pool);
diff --git a/src/runtime/python/pypgf.c b/src/runtime/python/pypgf.c
index 8fe4256e2..459b5870b 100644
--- a/src/runtime/python/pypgf.c
+++ b/src/runtime/python/pypgf.c
@@ -5,7 +5,6 @@
#include <gu/map.h>
#include <gu/file.h>
#include <pgf/pgf.h>
-#include <pgf/lexer.h>
#include <pgf/linearizer.h>
static PyObject* PGFError;