From 3ad5493758227a3d273dea66061fa254f14c886d Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Wed, 13 Jun 2012 05:49:30 +0000 Subject: Use a separated tag for meta productions in the robust parser. This cleans up the code a lot --- src/runtime/c/pgf/data.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/runtime/c/pgf/data.c') diff --git a/src/runtime/c/pgf/data.c b/src/runtime/c/pgf/data.c index 74dba9cb8..ce37659f4 100644 --- a/src/runtime/c/pgf/data.c +++ b/src/runtime/c/pgf/data.c @@ -127,9 +127,12 @@ GU_DEFINE_TYPE( GU_MEMBER(PgfProductionCoerce, coerce, PgfCCatId)), GU_CONSTRUCTOR_S( PGF_PRODUCTION_EXTERN, PgfProductionExtern, - GU_MEMBER(PgfProductionExtern, fun, PgfFunId), - GU_MEMBER(PgfProductionExtern, args, PgfPArgs), - GU_MEMBER(PgfProductionExtern, callback, PgfLiteralCallback))); + GU_MEMBER(PgfProductionExtern, callback, PgfLiteralCallback), + GU_MEMBER(PgfProductionExtern, lins, GuSeq)), + GU_CONSTRUCTOR_S( + PGF_PRODUCTION_META, PgfProductionMeta, + GU_MEMBER(PgfProductionMeta, lins, GuSeq), + GU_MEMBER(PgfProductionMeta, args, PgfPArgs))); GU_DEFINE_TYPE(PgfProductions, GuList, gu_type(PgfProduction)); GU_DEFINE_TYPE(PgfProductionSeq, GuSeq, gu_type(PgfProduction)); -- cgit v1.2.3