Files
posthog/common/hogql_parser/parser.h
Marius Andra d1ea0d6f01 chore(devex): common hogql_parser (#27719)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-01-22 09:39:40 +01:00

12 lines
285 B
C

#define PY_SSIZE_T_CLEAN
#include <Python.h>
// MODULE STATE
// Module state, primarily for storing references to Python objects used throughout the parser (such as imports)
typedef struct {
PyObject* ast_module;
PyObject* base_module;
PyObject* errors_module;
} parser_state;