libpgf: the first prototype for the robust parser

This commit is contained in:
kr.angelov
2012-02-29 14:43:08 +00:00
parent 65a69cab91
commit aca0bd5ee5
6 changed files with 369 additions and 50 deletions

View File

@@ -149,7 +149,10 @@ GU_DEFINE_TYPE(
PGF_PRODUCTION_CONST, PgfProductionConst,
GU_MEMBER(PgfProductionConst, expr, PgfExpr),
GU_MEMBER(PgfProductionConst, n_toks, GuLength),
GU_FLEX_MEMBER(PgfProductionConst, toks, GuString)));
GU_FLEX_MEMBER(PgfProductionConst, toks, GuString)),
GU_CONSTRUCTOR_S(
PGF_PRODUCTION_META, PgfProductionMeta,
GU_MEMBER(PgfProductionMeta, args, PgfPArgs)));
GU_DEFINE_TYPE(PgfProductions, GuList, gu_type(PgfProduction));
GU_DEFINE_TYPE(PgfProductionSeq, GuSeq, gu_type(PgfProduction));