From b99fa6aa9a828f98f82d2ede6266069f4c11cbc5 Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Wed, 22 Feb 2012 21:27:54 +0000 Subject: libpgf: now we have both complete bottom up index for robust parsing and fast lexical lookup from the same index --- src/runtime/c/pgf/data.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (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 cf0e00d82..36c5e509c 100644 --- a/src/runtime/c/pgf/data.h +++ b/src/runtime/c/pgf/data.h @@ -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; -- cgit v1.2.3