1
0
forked from GitHub/gf-core

now fully functional Java API for custom literals

This commit is contained in:
kr.angelov
2014-04-10 14:14:31 +00:00
parent 3a0aa8b997
commit a9ebeaea44
14 changed files with 399 additions and 110 deletions

View File

@@ -151,6 +151,23 @@ GuEnum*
pgf_complete(PgfConcr* concr, PgfCId cat, GuString string,
GuString prefix, GuExn* err, GuPool* pool);
GuPool*
pgf_concr_get_pool(PgfConcr* concr);
typedef struct PgfLiteralCallback PgfLiteralCallback;
struct PgfLiteralCallback {
PgfExprProb* (*match)(PgfLiteralCallback* self,
size_t lin_idx,
GuString sentence, size_t* poffset,
GuPool *out_pool);
};
void
pgf_concr_add_literal(PgfConcr *concr, PgfCId cat,
PgfLiteralCallback* callback,
GuExn* err);
/// @}
void