some fixes in the robust parser and a new API for literals

This commit is contained in:
kr.angelov
2012-04-12 06:55:25 +00:00
parent 13f4eef70c
commit c6c54f8815
5 changed files with 310 additions and 205 deletions

View File

@@ -212,9 +212,11 @@ extern GU_DECLARE_TYPE(PgfEpsilonIdx, GuMap);
typedef struct PgfLiteralCallback PgfLiteralCallback;
extern GU_DECLARE_TYPE(PgfLiteralCallback, struct);
typedef struct PgfItem PgfItem;
struct PgfLiteralCallback {
bool (*match)(PgfLiteralCallback* self, int lin_idx, PgfTokens toks,
PgfExprProb** out_ep, GuPool *pool);
bool (*match)(PgfConcr* concr, PgfItem* item, PgfToken tok,
PgfExprProb** out_ep, GuPool *pool);
};
typedef GuMap PgfCallbacksMap;