forked from GitHub/gf-core
Make Hypo its own class instead of using tuples
This commit is contained in:
@@ -8,13 +8,22 @@
|
||||
|
||||
typedef struct {
|
||||
PyObject_HEAD
|
||||
PyObject *hypos; // PyListObject of PyTupleObject: (bind_type: int, cid: string, type: TypeObject)
|
||||
PyObject *name; // PyUnicodeObject
|
||||
PyObject *hypos; // PyListObject of HypoObject
|
||||
PyObject *name; // PyUnicodeObject
|
||||
PyObject *exprs; // PyListObject of ExprObject
|
||||
} TypeObject;
|
||||
|
||||
PyTypeObject pgf_TypeType;
|
||||
|
||||
typedef struct {
|
||||
PyObject_HEAD
|
||||
PyObject *bind_type; // PyLongObject
|
||||
PyObject *cid; // PyUnicodeObject
|
||||
TypeObject *type;
|
||||
} HypoObject;
|
||||
|
||||
PyTypeObject pgf_HypoType;
|
||||
|
||||
typedef struct {
|
||||
PyObject_HEAD
|
||||
} ExprObject;
|
||||
|
||||
Reference in New Issue
Block a user