summaryrefslogtreecommitdiff
path: root/src/runtime/c/pgf/pgf.h
diff options
context:
space:
mode:
authorgregoire.detrez <gregoire.detrez@gu.se>2013-01-24 13:31:34 +0000
committergregoire.detrez <gregoire.detrez@gu.se>2013-01-24 13:31:34 +0000
commit0aae4702edbd4889159e3772b72d0a4c10b7e57a (patch)
tree4b04b948fffe0ef768c204a25b1628a7640b0b27 /src/runtime/c/pgf/pgf.h
parente7db50b9bdd710690c78038d095bf249a9ed7f02 (diff)
Python binding: add a parsing function that accepts directly a list of tokens.
Is allows to define a tokenizer in python (or use an existing one, from nltk for instance.)
Diffstat (limited to 'src/runtime/c/pgf/pgf.h')
-rw-r--r--src/runtime/c/pgf/pgf.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/runtime/c/pgf/pgf.h b/src/runtime/c/pgf/pgf.h
index 1f3947bff..afef6ec48 100644
--- a/src/runtime/c/pgf/pgf.h
+++ b/src/runtime/c/pgf/pgf.h
@@ -116,6 +116,9 @@ PgfExprEnum*
pgf_parse(PgfConcr* concr, PgfCId cat, PgfLexer *lexer, GuPool* pool);
PgfExprEnum*
+pgf_parse_tokens(PgfConcr* concr, PgfCId cat, char* tokens[], int len, GuPool* pool);
+
+PgfExprEnum*
pgf_generate(PgfPGF* pgf, PgfCId cat, GuPool* pool);
// an experimental function. Please don't use it