From e31c883075e71870a57b6bc9fbbbca285ca8e9f0 Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Wed, 29 Feb 2012 14:43:08 +0000 Subject: libpgf: the first prototype for the robust parser --- src/runtime/c/pgf/data.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (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 36c5e509c..53df0058c 100644 --- a/src/runtime/c/pgf/data.h +++ b/src/runtime/c/pgf/data.h @@ -206,6 +206,7 @@ struct PgfConcr { PgfCncFuns* cncfuns; PgfSequences* sequences; PgfCIdMap* cnccats; + int total_cats; int max_fid; }; @@ -254,7 +255,8 @@ typedef struct PgfSymbolKP typedef enum { PGF_PRODUCTION_APPLY, PGF_PRODUCTION_COERCE, - PGF_PRODUCTION_CONST + PGF_PRODUCTION_CONST, + PGF_PRODUCTION_META } PgfProductionTag; typedef struct PgfPArg PgfPArg; @@ -289,6 +291,9 @@ typedef struct { GuString toks[]; // XXX } PgfProductionConst; +typedef struct { + PgfPArgs args; +} PgfProductionMeta; extern GU_DECLARE_TYPE(PgfPatt, GuVariant); -- cgit v1.2.3