diff options
| author | kr.angelov <kr.angelov@gmail.com> | 2013-05-01 06:09:55 +0000 |
|---|---|---|
| committer | kr.angelov <kr.angelov@gmail.com> | 2013-05-01 06:09:55 +0000 |
| commit | 22f44ef61f99acdec5d19f336bb80f6bb3a4e8b7 (patch) | |
| tree | 4ee1496edc1c5df1b11464ce8425071c3ef11994 /src/runtime/c/pgf/pgf.h | |
| parent | 41bccf5737544a6981dc6a17bb4bb8116ace7937 (diff) | |
word completion in the C runtime. The runtime/python/test.py example is now using readline with word completion
Diffstat (limited to 'src/runtime/c/pgf/pgf.h')
| -rw-r--r-- | src/runtime/c/pgf/pgf.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/runtime/c/pgf/pgf.h b/src/runtime/c/pgf/pgf.h index 03f1d4d48..39dc0dd04 100644 --- a/src/runtime/c/pgf/pgf.h +++ b/src/runtime/c/pgf/pgf.h @@ -116,6 +116,10 @@ pgf_linearize(PgfConcr* concr, PgfExpr expr, GuWriter* wtr, GuExn* err); PgfExprEnum* pgf_parse(PgfConcr* concr, PgfCId cat, PgfLexer *lexer, GuPool* pool); +GuEnum* +pgf_get_completions(PgfConcr* concr, PgfCId cat, PgfLexer *lexer, + GuString prefix, GuPool* pool); + bool pgf_parseval(PgfConcr* concr, PgfExpr expr, PgfCId cat, double *precision, double *recall, double *exact); |
