forked from GitHub/gf-core
the callbacks in C now take the concrete syntax as a parameter
This commit is contained in:
@@ -150,11 +150,11 @@ pgf_complete(PgfConcr* concr, PgfCId cat, GuString string,
|
||||
typedef struct PgfLiteralCallback PgfLiteralCallback;
|
||||
|
||||
struct PgfLiteralCallback {
|
||||
PgfExprProb* (*match)(PgfLiteralCallback* self,
|
||||
PgfExprProb* (*match)(PgfLiteralCallback* self, PgfConcr* concr,
|
||||
size_t lin_idx,
|
||||
GuString sentence, size_t* poffset,
|
||||
GuPool *out_pool);
|
||||
GuEnum* (*predict)(PgfLiteralCallback* self,
|
||||
GuEnum* (*predict)(PgfLiteralCallback* self, PgfConcr* concr,
|
||||
size_t lin_idx,
|
||||
GuString prefix,
|
||||
GuPool *out_pool);
|
||||
|
||||
Reference in New Issue
Block a user