1
0
forked from GitHub/gf-core

Add remaining Expr subclasses, tests failing

This commit is contained in:
John J. Camilleri
2021-09-15 16:27:58 +02:00
parent c6d6914688
commit 238f01c9fc
5 changed files with 496 additions and 160 deletions

View File

@@ -23,8 +23,10 @@ typedef struct {
typedef struct {
PyObject_HEAD
PyObject *name; // PyUnicodeObject
} ExprFunObject;
PyObject *bindType; // PyLongObject
PyObject *var; // PyUnicodeObject
ExprObject *expr;
} ExprAbsObject;
typedef struct {
PyObject_HEAD
@@ -42,21 +44,35 @@ typedef struct {
PyObject *id; // PyLongObject
} ExprMetaObject;
typedef struct {
PyObject_HEAD
PyObject *name; // PyUnicodeObject
} ExprFunObject;
typedef struct {
PyObject_HEAD
PyObject *index; // PyLongObject
} ExprVarObject;
typedef struct {
PyObject_HEAD
ExprObject *expr;
TypeObject *type;
} ExprTypedObject;
typedef struct {
PyObject_HEAD
ExprObject *expr;
} ExprImplArgObject;
extern PyTypeObject pgf_ExprType;
extern PyTypeObject pgf_ExprFunType;
extern PyTypeObject pgf_ExprAbsType;
extern PyTypeObject pgf_ExprAppType;
extern PyTypeObject pgf_ExprLitType;
extern PyTypeObject pgf_ExprMetaType;
extern PyTypeObject pgf_ExprFunType;
extern PyTypeObject pgf_ExprVarType;
extern PyTypeObject pgf_ExprTypedType;
extern PyTypeObject pgf_ExprImplArgType;
#endif // PYPGF_EXPR_H_