implemented functionType and marshalling for types and expressions

This commit is contained in:
krangelov
2021-08-10 15:07:41 +02:00
parent 7b5669a333
commit a5008c2fe1
11 changed files with 329 additions and 193 deletions

View File

@@ -7,13 +7,6 @@ typedef variant PgfExpr;
struct PgfHypo;
struct PgfType;
typedef int PgfMetaId;
typedef enum {
PGF_BIND_TYPE_EXPLICIT,
PGF_BIND_TYPE_IMPLICIT
} PgfBindType;
/// A literal for an abstract syntax tree
typedef variant PgfLiteral;
@@ -106,4 +99,13 @@ typedef struct {
PgfExpr expr;
} PgfExprProb;
PGF_INTERNAL_DECL
uintptr_t pgf_unmarshall_literal(PgfUnmarshaller *u, PgfLiteral l);
PGF_INTERNAL_DECL
uintptr_t pgf_unmarshall_expr(PgfUnmarshaller *u, PgfExpr e);
PGF_INTERNAL_DECL
uintptr_t pgf_unmarshall_type(PgfUnmarshaller *u, PgfType *tp);
#endif /* EXPR_H_ */