1
0
forked from GitHub/gf-core

Add ExprApp to Python bindings

This commit is contained in:
John J. Camilleri
2021-09-14 15:28:39 +02:00
parent 6ebb8e5fda
commit fd61a6c0d3
5 changed files with 140 additions and 10 deletions

View File

@@ -23,9 +23,15 @@ typedef struct {
typedef struct {
PyObject_HEAD
PyObject *fun; // PyUnicodeObject
PyObject *name; // PyUnicodeObject
} ExprFunObject;
typedef struct {
PyObject_HEAD
ExprObject *e1; // ExprObject
ExprObject *e2; // ExprObject
} ExprAppObject;
typedef struct {
PyObject_HEAD
PyObject *value; // PyLongObject | PyFloatObject | PyUnicodeObject
@@ -45,6 +51,8 @@ extern PyTypeObject pgf_ExprType;
extern PyTypeObject pgf_ExprFunType;
extern PyTypeObject pgf_ExprAppType;
extern PyTypeObject pgf_ExprLitType;
extern PyTypeObject pgf_ExprMetaType;