From 7ddd0d5f3e44efb39503375301adaed562ff358e Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Tue, 21 Feb 2012 21:17:50 +0000 Subject: libpgf: added index for fast lexicon lookup. Still not perfect --- src/runtime/c/pgf/data.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/runtime/c/pgf/data.h') diff --git a/src/runtime/c/pgf/data.h b/src/runtime/c/pgf/data.h index 45f060c23..cf0e00d82 100644 --- a/src/runtime/c/pgf/data.h +++ b/src/runtime/c/pgf/data.h @@ -173,6 +173,7 @@ struct PgfAlternative { struct PgfCCat { PgfCncCat* cnccat; PgfFunIds* lindefs; + size_t n_synprods; PgfProductionSeq prods; int fid; }; @@ -188,12 +189,19 @@ 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 GuBuf PgfEpsilonIdx; + struct PgfConcr { PgfFlags* cflags; PgfPrintNames* printnames; GuMap* ccats; PgfFunIndices* fun_indices; PgfCoerceIdx* coerce_idx; + PgfLexiconIdx* lexicon_idx; + PgfEpsilonIdx* epsilon_idx; PgfCncFuns* cncfuns; PgfSequences* sequences; PgfCIdMap* cnccats; -- cgit v1.2.3