mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 13:09:33 -06:00
Start work on marshalling in Python bindings
This commit is contained in:
26
src/runtime/python/expr.h
Normal file
26
src/runtime/python/expr.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#ifndef PYPGF_EXPR_H_
|
||||
#define PYPGF_EXPR_H_
|
||||
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include <Python.h>
|
||||
|
||||
#include <pgf/pgf.h>
|
||||
|
||||
typedef struct {
|
||||
PyObject_HEAD
|
||||
PyObject* master;
|
||||
// GuPool* pool;
|
||||
// PgfType* type;
|
||||
PgfText *cat;
|
||||
} TypeObject;
|
||||
|
||||
extern PyTypeObject pgf_TypeType;
|
||||
|
||||
// typedef struct {
|
||||
// PyObject_HEAD
|
||||
// PyObject* master;
|
||||
// GuPool* pool;
|
||||
// PgfExpr expr;
|
||||
// } ExprObject;
|
||||
|
||||
#endif // PYPGF_EXPR_H_
|
||||
Reference in New Issue
Block a user