1
0
forked from GitHub/gf-core

libpgf: now we have both complete bottom up index for robust parsing and fast lexical lookup from the same index

This commit is contained in:
kr.angelov
2012-02-22 21:27:54 +00:00
parent 4eaa41eaf0
commit f1d2852c4d
3 changed files with 334 additions and 172 deletions

View File

@@ -189,10 +189,11 @@ extern GU_DECLARE_TYPE(PgfFunIndices, GuStringMap);
typedef GuMap PgfCoerceIdx;
extern GU_DECLARE_TYPE(PgfCoerceIdx, GuMap);
typedef GuStringMap PgfLexiconIdx;
extern GU_DECLARE_TYPE(PgfLexiconIdx, GuStringMap);
typedef GuStringMap PgfTransitions;
extern GU_DECLARE_TYPE(PgfTransitions, GuStringMap);
typedef GuBuf PgfEpsilonIdx;
typedef GuMap PgfEpsilonIdx;
extern GU_DECLARE_TYPE(PgfEpsilonIdx, GuMap);
struct PgfConcr {
PgfFlags* cflags;
@@ -200,7 +201,7 @@ struct PgfConcr {
GuMap* ccats;
PgfFunIndices* fun_indices;
PgfCoerceIdx* coerce_idx;
PgfLexiconIdx* lexicon_idx;
PgfTransitions* lexicon_idx;
PgfEpsilonIdx* epsilon_idx;
PgfCncFuns* cncfuns;
PgfSequences* sequences;