mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-03 00:02:50 -06:00
another attempt to port the robust parser to MacOS
This commit is contained in:
@@ -297,11 +297,11 @@ struct PgfPArg {
|
||||
PgfCCatIds* hypos;
|
||||
};
|
||||
|
||||
GU_DECLARE_TYPE(PgfPArg, struct);
|
||||
extern GU_DECLARE_TYPE(PgfPArg, struct);
|
||||
|
||||
typedef GuSeq PgfPArgs;
|
||||
|
||||
GU_DECLARE_TYPE(PgfPArgs, GuSeq);
|
||||
extern GU_DECLARE_TYPE(PgfPArgs, GuSeq);
|
||||
|
||||
typedef struct {
|
||||
PgfFunId fun;
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
/// An abstract syntax tree
|
||||
typedef GuVariant PgfExpr;
|
||||
|
||||
GU_DECLARE_TYPE(PgfExpr, GuVariant);
|
||||
extern GU_DECLARE_TYPE(PgfExpr, GuVariant);
|
||||
|
||||
typedef GuList(PgfExpr) PgfExprs;
|
||||
|
||||
|
||||
@@ -110,13 +110,11 @@ static GU_DEFINE_TYPE(PgfCFCat, struct,
|
||||
|
||||
extern GuHasher pgf_cfcat_hasher;
|
||||
|
||||
typedef GuMap PgfEpsilonIdx;
|
||||
GU_DEFINE_TYPE(PgfEpsilonIdx, GuMap,
|
||||
gu_type(PgfCFCat), &pgf_cfcat_hasher,
|
||||
gu_ptr_type(PgfCCat), &gu_null_struct);
|
||||
|
||||
// GuString -> PgfItemBuf*
|
||||
typedef GuStringMap PgfTransitions;
|
||||
GU_DEFINE_TYPE(PgfTransitions, GuStringMap,
|
||||
gu_ptr_type(PgfItemBuf), &gu_null_struct);
|
||||
|
||||
|
||||
@@ -70,7 +70,7 @@ pgf_read(GuIn* in, GuPool* pool, GuExn* err);
|
||||
|
||||
|
||||
#include <gu/type.h>
|
||||
GU_DECLARE_TYPE(PgfPGF, struct);
|
||||
extern GU_DECLARE_TYPE(PgfPGF, struct);
|
||||
|
||||
/// @}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user