|
|
@@ -0,0 +1,4256 @@
|
|
|
+/* Generated by Pyrex 0.9.2.1 on Sun Jun 27 12:11:14 2004 */
|
|
|
+
|
|
|
+#include "Python.h"
|
|
|
+#include "structmember.h"
|
|
|
+#ifndef PY_LONG_LONG
|
|
|
+ #define PY_LONG_LONG LONG_LONG
|
|
|
+#endif
|
|
|
+#include "stdio.h"
|
|
|
+#include "string.h"
|
|
|
+#include "../c/bisondynlib.h"
|
|
|
+
|
|
|
+
|
|
|
+typedef struct {PyObject **p; char *s;} __Pyx_InternTabEntry; /*proto*/
|
|
|
+typedef struct {PyObject **p; char *s; long n;} __Pyx_StringTabEntry; /*proto*/
|
|
|
+static PyObject *__Pyx_UnpackItem(PyObject *, int); /*proto*/
|
|
|
+static int __Pyx_EndUnpack(PyObject *, int); /*proto*/
|
|
|
+static int __Pyx_PrintItem(PyObject *); /*proto*/
|
|
|
+static int __Pyx_PrintNewline(void); /*proto*/
|
|
|
+static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb); /*proto*/
|
|
|
+static void __Pyx_ReRaise(void); /*proto*/
|
|
|
+static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list); /*proto*/
|
|
|
+static PyObject *__Pyx_GetExcValue(void); /*proto*/
|
|
|
+static int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed, char *name); /*proto*/
|
|
|
+static int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type); /*proto*/
|
|
|
+static int __Pyx_GetStarArgs(PyObject **args, PyObject **kwds, char *kwd_list[], int nargs, PyObject **args2, PyObject **kwds2); /*proto*/
|
|
|
+static void __Pyx_WriteUnraisable(char *name); /*proto*/
|
|
|
+static void __Pyx_AddTraceback(char *funcname); /*proto*/
|
|
|
+static PyTypeObject *__Pyx_ImportType(char *module_name, char *class_name, long size); /*proto*/
|
|
|
+static int __Pyx_SetVtable(PyObject *dict, void *vtable); /*proto*/
|
|
|
+static int __Pyx_GetVtable(PyObject *dict, void **vtabptr); /*proto*/
|
|
|
+static PyObject *__Pyx_CreateClass(PyObject *bases, PyObject *dict, PyObject *name, char *modname); /*proto*/
|
|
|
+static int __Pyx_InternStrings(__Pyx_InternTabEntry *t); /*proto*/
|
|
|
+static int __Pyx_InitStrings(__Pyx_StringTabEntry *t); /*proto*/
|
|
|
+static PyObject *__Pyx_GetName(PyObject *dict, PyObject *name); /*proto*/
|
|
|
+
|
|
|
+static PyObject *__pyx_m;
|
|
|
+static PyObject *__pyx_b;
|
|
|
+static int __pyx_lineno;
|
|
|
+static char *__pyx_filename;
|
|
|
+staticforward char **__pyx_f;
|
|
|
+
|
|
|
+static char __pyx_mdoc[] = "\nPyrex-generated portion of pybison\n";
|
|
|
+
|
|
|
+/* Declarations from bison_ */
|
|
|
+
|
|
|
+staticforward PyTypeObject __pyx_type_6bison__ParserEngine;
|
|
|
+
|
|
|
+struct __pyx_obj_6bison__ParserEngine {
|
|
|
+ PyObject_HEAD
|
|
|
+ PyObject *parser;
|
|
|
+ PyObject *parserHash;
|
|
|
+ PyObject *libFilename_py;
|
|
|
+ void (*libHandle);
|
|
|
+ char (*libHash);
|
|
|
+};
|
|
|
+
|
|
|
+static PyTypeObject *__pyx_ptype_6bison__ParserEngine = 0;
|
|
|
+static PyObject *__pyx_k11;
|
|
|
+DL_EXPORT(PyObject) *(py_callback(PyObject *,char (*),int ,int ,void (*),...)); /*proto*/
|
|
|
+DL_EXPORT(void) (py_input(PyObject *,char (*),int (*),int )); /*proto*/
|
|
|
+
|
|
|
+/* Implementation of bison_ */
|
|
|
+
|
|
|
+char (__pyx_k7[]) = "distutils.sysconfig";
|
|
|
+char (__pyx_k8[]) = "distutils.ccompiler";
|
|
|
+char (__pyx_k9[]) = "\\s+";
|
|
|
+char (__pyx_k10[]) = "[^'\"]%s[^'\"]?";
|
|
|
+
|
|
|
+static PyObject *__pyx_n_sys;
|
|
|
+static PyObject *__pyx_n_os;
|
|
|
+static PyObject *__pyx_n_sha;
|
|
|
+static PyObject *__pyx_n_re;
|
|
|
+static PyObject *__pyx_n_imp;
|
|
|
+static PyObject *__pyx_n_traceback;
|
|
|
+static PyObject *__pyx_n_distutils;
|
|
|
+static PyObject *__pyx_n_reSpaces;
|
|
|
+static PyObject *__pyx_n_unquoted;
|
|
|
+static PyObject *__pyx_n_cmpLines;
|
|
|
+static PyObject *__pyx_n_hashParserObject;
|
|
|
+static PyObject *__pyx_n_compile;
|
|
|
+
|
|
|
+static PyObject *__pyx_k7p;
|
|
|
+static PyObject *__pyx_k8p;
|
|
|
+static PyObject *__pyx_k9p;
|
|
|
+static PyObject *__pyx_k10p;
|
|
|
+
|
|
|
+static PyObject *__pyx_n_range;
|
|
|
+static PyObject *__pyx_n_verbose;
|
|
|
+static PyObject *__pyx_n__handle;
|
|
|
+static PyObject *__pyx_n_print_exc;
|
|
|
+
|
|
|
+static PyObject *__pyx_k12p;
|
|
|
+
|
|
|
+char (__pyx_k12[]) = "py_callback: calling handler for %s";
|
|
|
+
|
|
|
+DL_EXPORT(PyObject) *py_callback(PyObject *__pyx_v_parser,char (*__pyx_v_target),int __pyx_v_option,int __pyx_v_nargs,void (*__pyx_v_args),...) {
|
|
|
+ int (*__pyx_v_pargs);
|
|
|
+ void (*__pyx_v_objptr);
|
|
|
+ PyObject *__pyx_v_obj;
|
|
|
+ int __pyx_v_i;
|
|
|
+ PyObject *__pyx_v_valobj;
|
|
|
+ void (*__pyx_v_val);
|
|
|
+ char (*__pyx_v_tokval);
|
|
|
+ PyObject *__pyx_v_names;
|
|
|
+ PyObject *__pyx_v_values;
|
|
|
+ PyObject *__pyx_v_termname;
|
|
|
+ PyObject *__pyx_v_res;
|
|
|
+ PyObject *__pyx_r;
|
|
|
+ PyObject *__pyx_1 = 0;
|
|
|
+ PyObject *__pyx_2 = 0;
|
|
|
+ PyObject *__pyx_3 = 0;
|
|
|
+ int __pyx_4;
|
|
|
+ PyObject *__pyx_5 = 0;
|
|
|
+ Py_INCREF(__pyx_v_parser);
|
|
|
+ __pyx_v_obj = Py_None; Py_INCREF(__pyx_v_obj);
|
|
|
+ __pyx_v_valobj = Py_None; Py_INCREF(__pyx_v_valobj);
|
|
|
+ __pyx_v_names = Py_None; Py_INCREF(__pyx_v_names);
|
|
|
+ __pyx_v_values = Py_None; Py_INCREF(__pyx_v_values);
|
|
|
+ __pyx_v_termname = Py_None; Py_INCREF(__pyx_v_termname);
|
|
|
+ __pyx_v_res = Py_None; Py_INCREF(__pyx_v_res);
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":76 */
|
|
|
+ __pyx_v_pargs = ((int (*))(&__pyx_v_args));
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":84 */
|
|
|
+ /*try:*/ {
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":85 */
|
|
|
+ __pyx_1 = PyList_New(__pyx_v_nargs); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 85; goto __pyx_L2;}
|
|
|
+ Py_DECREF(__pyx_v_names);
|
|
|
+ __pyx_v_names = __pyx_1;
|
|
|
+ __pyx_1 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":86 */
|
|
|
+ __pyx_1 = PyList_New(__pyx_v_nargs); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 86; goto __pyx_L2;}
|
|
|
+ Py_DECREF(__pyx_v_values);
|
|
|
+ __pyx_v_values = __pyx_1;
|
|
|
+ __pyx_1 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":87 */
|
|
|
+ __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_range); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 87; goto __pyx_L2;}
|
|
|
+ __pyx_2 = PyInt_FromLong(__pyx_v_nargs); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 87; goto __pyx_L2;}
|
|
|
+ __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 87; goto __pyx_L2;}
|
|
|
+ PyTuple_SET_ITEM(__pyx_3, 0, __pyx_2);
|
|
|
+ __pyx_2 = 0;
|
|
|
+ __pyx_2 = PyObject_CallObject(__pyx_1, __pyx_3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 87; goto __pyx_L2;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ __pyx_1 = PyObject_GetIter(__pyx_2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 87; goto __pyx_L2;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ for (;;) {
|
|
|
+ __pyx_L4:;
|
|
|
+ __pyx_3 = PyIter_Next(__pyx_1);
|
|
|
+ if (!__pyx_3) {
|
|
|
+ if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 87; goto __pyx_L2;}
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ __pyx_4 = PyInt_AsLong(__pyx_3); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 87; goto __pyx_L2;}
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ __pyx_v_i = __pyx_4;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":88 */
|
|
|
+ __pyx_2 = PyString_FromString(((char (*))(__pyx_v_pargs[(__pyx_v_i * 2)]))); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 88; goto __pyx_L2;}
|
|
|
+ Py_DECREF(__pyx_v_termname);
|
|
|
+ __pyx_v_termname = __pyx_2;
|
|
|
+ __pyx_2 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":89 */
|
|
|
+ __pyx_v_val = ((void (*))(__pyx_v_pargs[((__pyx_v_i * 2) + 1)]));
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":90 */
|
|
|
+ __pyx_3 = (PyObject *)__pyx_v_val;
|
|
|
+ Py_INCREF(__pyx_3);
|
|
|
+ Py_DECREF(__pyx_v_valobj);
|
|
|
+ __pyx_v_valobj = __pyx_3;
|
|
|
+ __pyx_3 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":92 */
|
|
|
+ Py_INCREF(__pyx_v_termname);
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":93 */
|
|
|
+ Py_INCREF(__pyx_v_valobj);
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":94 */
|
|
|
+ PyList_SetItem(__pyx_v_names,__pyx_v_i,__pyx_v_termname);
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":95 */
|
|
|
+ PyList_SetItem(__pyx_v_values,__pyx_v_i,__pyx_v_valobj);
|
|
|
+ }
|
|
|
+ __pyx_L5:;
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":97 */
|
|
|
+ __pyx_2 = PyObject_GetAttr(__pyx_v_parser, __pyx_n_verbose); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 97; goto __pyx_L2;}
|
|
|
+ __pyx_4 = PyObject_IsTrue(__pyx_2); if (__pyx_4 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 97; goto __pyx_L2;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ if (__pyx_4) {
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":98 */
|
|
|
+ __pyx_3 = PyString_FromString(__pyx_v_target); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 98; goto __pyx_L2;}
|
|
|
+ __pyx_1 = PyNumber_Remainder(__pyx_k12p, __pyx_3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 98; goto __pyx_L2;}
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ if (__Pyx_PrintItem(__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 98; goto __pyx_L2;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ if (__Pyx_PrintNewline() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 98; goto __pyx_L2;}
|
|
|
+ goto __pyx_L6;
|
|
|
+ }
|
|
|
+ __pyx_L6:;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":100 */
|
|
|
+ __pyx_2 = PyObject_GetAttr(__pyx_v_parser, __pyx_n__handle); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 100; goto __pyx_L2;}
|
|
|
+ __pyx_3 = PyString_FromString(__pyx_v_target); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 100; goto __pyx_L2;}
|
|
|
+ __pyx_1 = PyInt_FromLong(__pyx_v_option); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 100; goto __pyx_L2;}
|
|
|
+ __pyx_5 = PyTuple_New(4); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 100; goto __pyx_L2;}
|
|
|
+ PyTuple_SET_ITEM(__pyx_5, 0, __pyx_3);
|
|
|
+ PyTuple_SET_ITEM(__pyx_5, 1, __pyx_1);
|
|
|
+ Py_INCREF(__pyx_v_names);
|
|
|
+ PyTuple_SET_ITEM(__pyx_5, 2, __pyx_v_names);
|
|
|
+ Py_INCREF(__pyx_v_values);
|
|
|
+ PyTuple_SET_ITEM(__pyx_5, 3, __pyx_v_values);
|
|
|
+ __pyx_3 = 0;
|
|
|
+ __pyx_1 = 0;
|
|
|
+ __pyx_3 = PyObject_CallObject(__pyx_2, __pyx_5); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 100; goto __pyx_L2;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_DECREF(__pyx_5); __pyx_5 = 0;
|
|
|
+ Py_DECREF(__pyx_v_res);
|
|
|
+ __pyx_v_res = __pyx_3;
|
|
|
+ __pyx_3 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":101 */
|
|
|
+ Py_INCREF(__pyx_v_res);
|
|
|
+ __pyx_r = __pyx_v_res;
|
|
|
+ goto __pyx_L0;
|
|
|
+ }
|
|
|
+ goto __pyx_L3;
|
|
|
+ __pyx_L2:;
|
|
|
+ Py_XDECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_XDECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_XDECREF(__pyx_5); __pyx_5 = 0;
|
|
|
+ Py_XDECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":102 */
|
|
|
+ /*except:*/ {
|
|
|
+ __Pyx_AddTraceback("bison_.py_callback");
|
|
|
+ __pyx_1 = __Pyx_GetExcValue(); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 102; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":103 */
|
|
|
+ __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_traceback); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 103; goto __pyx_L1;}
|
|
|
+ __pyx_5 = PyObject_GetAttr(__pyx_2, __pyx_n_print_exc); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 103; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ __pyx_3 = PyTuple_New(0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 103; goto __pyx_L1;}
|
|
|
+ __pyx_1 = PyObject_CallObject(__pyx_5, __pyx_3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 103; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_5); __pyx_5 = 0;
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":104 */
|
|
|
+ Py_INCREF(Py_None);
|
|
|
+ __pyx_r = Py_None;
|
|
|
+ goto __pyx_L0;
|
|
|
+ goto __pyx_L3;
|
|
|
+ }
|
|
|
+ __pyx_L3:;
|
|
|
+
|
|
|
+ __pyx_r = Py_None; Py_INCREF(__pyx_r);
|
|
|
+ goto __pyx_L0;
|
|
|
+ __pyx_L1:;
|
|
|
+ Py_XDECREF(__pyx_1);
|
|
|
+ Py_XDECREF(__pyx_2);
|
|
|
+ Py_XDECREF(__pyx_3);
|
|
|
+ Py_XDECREF(__pyx_5);
|
|
|
+ __Pyx_AddTraceback("bison_.py_callback");
|
|
|
+ __pyx_r = 0;
|
|
|
+ __pyx_L0:;
|
|
|
+ Py_DECREF(__pyx_v_obj);
|
|
|
+ Py_DECREF(__pyx_v_valobj);
|
|
|
+ Py_DECREF(__pyx_v_names);
|
|
|
+ Py_DECREF(__pyx_v_values);
|
|
|
+ Py_DECREF(__pyx_v_termname);
|
|
|
+ Py_DECREF(__pyx_v_res);
|
|
|
+ Py_DECREF(__pyx_v_parser);
|
|
|
+ return __pyx_r;
|
|
|
+}
|
|
|
+
|
|
|
+static PyObject *__pyx_n_read;
|
|
|
+static PyObject *__pyx_n_len;
|
|
|
+
|
|
|
+DL_EXPORT(void) py_input(PyObject *__pyx_v_parser,char (*__pyx_v_buf),int (*__pyx_v_result),int __pyx_v_max_size) {
|
|
|
+ char (*__pyx_v_buf1);
|
|
|
+ int __pyx_v_buflen;
|
|
|
+ PyObject *__pyx_v_raw;
|
|
|
+ PyObject *__pyx_1 = 0;
|
|
|
+ PyObject *__pyx_2 = 0;
|
|
|
+ PyObject *__pyx_3 = 0;
|
|
|
+ Py_INCREF(__pyx_v_parser);
|
|
|
+ __pyx_v_raw = Py_None; Py_INCREF(__pyx_v_raw);
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":114 */
|
|
|
+ __pyx_1 = PyObject_GetAttr(__pyx_v_parser, __pyx_n_read); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; goto __pyx_L1;}
|
|
|
+ __pyx_2 = PyInt_FromLong(__pyx_v_max_size); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; goto __pyx_L1;}
|
|
|
+ __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; goto __pyx_L1;}
|
|
|
+ PyTuple_SET_ITEM(__pyx_3, 0, __pyx_2);
|
|
|
+ __pyx_2 = 0;
|
|
|
+ __pyx_2 = PyObject_CallObject(__pyx_1, __pyx_3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ Py_DECREF(__pyx_v_raw);
|
|
|
+ __pyx_v_raw = __pyx_2;
|
|
|
+ __pyx_2 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":115 */
|
|
|
+ __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_len); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 115; goto __pyx_L1;}
|
|
|
+ __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 115; goto __pyx_L1;}
|
|
|
+ Py_INCREF(__pyx_v_raw);
|
|
|
+ PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_raw);
|
|
|
+ __pyx_2 = PyObject_CallObject(__pyx_1, __pyx_3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 115; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ __pyx_v_buflen = PyInt_AsLong(__pyx_2);
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":116 */
|
|
|
+ (__pyx_v_result[0]) = __pyx_v_buflen;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":117 */
|
|
|
+ memcpy(__pyx_v_buf,PyString_AsString(__pyx_v_raw),__pyx_v_buflen);
|
|
|
+
|
|
|
+ goto __pyx_L0;
|
|
|
+ __pyx_L1:;
|
|
|
+ Py_XDECREF(__pyx_1);
|
|
|
+ Py_XDECREF(__pyx_2);
|
|
|
+ Py_XDECREF(__pyx_3);
|
|
|
+ __Pyx_WriteUnraisable("bison_.py_input");
|
|
|
+ __pyx_L0:;
|
|
|
+ Py_DECREF(__pyx_v_raw);
|
|
|
+ Py_DECREF(__pyx_v_parser);
|
|
|
+}
|
|
|
+
|
|
|
+static PyObject *__pyx_n_bisonEngineLibName;
|
|
|
+static PyObject *__pyx_n_get_suffixes;
|
|
|
+static PyObject *__pyx_n_openCurrentLib;
|
|
|
+
|
|
|
+static int __pyx_f_6bison__12ParserEngine___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
|
|
|
+static char __pyx_doc_6bison__12ParserEngine___init__[] = "\n Creates a ParserEngine wrapper, and builds/loads the library\n \n Arguments:\n - parser - an instance of a subclass of Parser\n \n In the course of initialisation, we check the library\n against the parser object\'s rules. If the lib doesn\'t\n exist, or can\'t be loaded, or doesn\'t match, we build\n a new library.\n \n Either way, we end up with a binary parser engine which\n matches the current rules in the parser object\n ";
|
|
|
+static int __pyx_f_6bison__12ParserEngine___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
|
|
|
+ PyObject *__pyx_v_parser = 0;
|
|
|
+ PyObject *__pyx_v_kw = 0;
|
|
|
+ int __pyx_r;
|
|
|
+ PyObject *__pyx_1 = 0;
|
|
|
+ PyObject *__pyx_2 = 0;
|
|
|
+ PyObject *__pyx_3 = 0;
|
|
|
+ PyObject *__pyx_4 = 0;
|
|
|
+ static char *__pyx_argnames[] = {"parser",0};
|
|
|
+ if (__Pyx_GetStarArgs(&__pyx_args, &__pyx_kwds, __pyx_argnames, 1, 0, &__pyx_v_kw) < 0) return -1;
|
|
|
+ if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_parser)) {
|
|
|
+ Py_XDECREF(__pyx_args);
|
|
|
+ Py_XDECREF(__pyx_kwds);
|
|
|
+ Py_XDECREF(__pyx_v_kw);
|
|
|
+ return -1;
|
|
|
+ }
|
|
|
+ Py_INCREF(__pyx_v_self);
|
|
|
+ Py_INCREF(__pyx_v_parser);
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":181 */
|
|
|
+ Py_INCREF(__pyx_v_parser);
|
|
|
+ Py_DECREF(((struct __pyx_obj_6bison__ParserEngine *)__pyx_v_self)->parser);
|
|
|
+ ((struct __pyx_obj_6bison__ParserEngine *)__pyx_v_self)->parser = __pyx_v_parser;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":183 */
|
|
|
+ __pyx_1 = PyObject_GetAttr(__pyx_v_parser, __pyx_n_bisonEngineLibName); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 183; goto __pyx_L1;}
|
|
|
+ __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_imp); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 183; goto __pyx_L1;}
|
|
|
+ __pyx_3 = PyObject_GetAttr(__pyx_2, __pyx_n_get_suffixes); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 183; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ __pyx_2 = PyTuple_New(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 183; goto __pyx_L1;}
|
|
|
+ __pyx_4 = PyObject_CallObject(__pyx_3, __pyx_2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 183; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ __pyx_3 = PyInt_FromLong(0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 183; goto __pyx_L1;}
|
|
|
+ __pyx_2 = PyObject_GetItem(__pyx_4, __pyx_3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 183; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ __pyx_4 = PyInt_FromLong(0); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 183; goto __pyx_L1;}
|
|
|
+ __pyx_3 = PyObject_GetItem(__pyx_2, __pyx_4); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 183; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ __pyx_2 = PyNumber_Add(__pyx_1, __pyx_3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 183; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ Py_DECREF(((struct __pyx_obj_6bison__ParserEngine *)__pyx_v_self)->libFilename_py);
|
|
|
+ ((struct __pyx_obj_6bison__ParserEngine *)__pyx_v_self)->libFilename_py = __pyx_2;
|
|
|
+ __pyx_2 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":185 */
|
|
|
+ __pyx_4 = __Pyx_GetName(__pyx_m, __pyx_n_hashParserObject); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 185; goto __pyx_L1;}
|
|
|
+ __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 185; goto __pyx_L1;}
|
|
|
+ Py_INCREF(((struct __pyx_obj_6bison__ParserEngine *)__pyx_v_self)->parser);
|
|
|
+ PyTuple_SET_ITEM(__pyx_1, 0, ((struct __pyx_obj_6bison__ParserEngine *)__pyx_v_self)->parser);
|
|
|
+ __pyx_3 = PyObject_CallObject(__pyx_4, __pyx_1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 185; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_DECREF(((struct __pyx_obj_6bison__ParserEngine *)__pyx_v_self)->parserHash);
|
|
|
+ ((struct __pyx_obj_6bison__ParserEngine *)__pyx_v_self)->parserHash = __pyx_3;
|
|
|
+ __pyx_3 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":187 */
|
|
|
+ __pyx_2 = PyObject_GetAttr(__pyx_v_self, __pyx_n_openCurrentLib); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 187; goto __pyx_L1;}
|
|
|
+ __pyx_4 = PyTuple_New(0); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 187; goto __pyx_L1;}
|
|
|
+ __pyx_1 = PyObject_CallObject(__pyx_2, __pyx_4); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 187; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+
|
|
|
+ __pyx_r = 0;
|
|
|
+ goto __pyx_L0;
|
|
|
+ __pyx_L1:;
|
|
|
+ Py_XDECREF(__pyx_1);
|
|
|
+ Py_XDECREF(__pyx_2);
|
|
|
+ Py_XDECREF(__pyx_3);
|
|
|
+ Py_XDECREF(__pyx_4);
|
|
|
+ __Pyx_AddTraceback("bison_.ParserEngine.__init__");
|
|
|
+ __pyx_r = -1;
|
|
|
+ __pyx_L0:;
|
|
|
+ Py_XDECREF(__pyx_v_kw);
|
|
|
+ Py_DECREF(__pyx_v_self);
|
|
|
+ Py_DECREF(__pyx_v_parser);
|
|
|
+ Py_XDECREF(__pyx_args);
|
|
|
+ Py_XDECREF(__pyx_kwds);
|
|
|
+ return __pyx_r;
|
|
|
+}
|
|
|
+
|
|
|
+static PyObject *__pyx_n_path;
|
|
|
+static PyObject *__pyx_n_isfile;
|
|
|
+static PyObject *__pyx_n_buildLib;
|
|
|
+static PyObject *__pyx_n_openLib;
|
|
|
+static PyObject *__pyx_n_closeLib;
|
|
|
+
|
|
|
+static PyObject *__pyx_k13p;
|
|
|
+static PyObject *__pyx_k14p;
|
|
|
+static PyObject *__pyx_k15p;
|
|
|
+static PyObject *__pyx_k16p;
|
|
|
+
|
|
|
+char (__pyx_k13[]) = "Hash discrepancy, need to rebuild bison lib";
|
|
|
+char (__pyx_k14[]) = " current parser class: %s";
|
|
|
+char (__pyx_k15[]) = " bison library: %s";
|
|
|
+char (__pyx_k16[]) = "Hashes match, no need to rebuild bison engine lib";
|
|
|
+
|
|
|
+static PyObject *__pyx_f_6bison__12ParserEngine_openCurrentLib(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
|
|
|
+static char __pyx_doc_6bison__12ParserEngine_openCurrentLib[] = "\n Tests if library exists and is current.\n If not, builds a fresh one\n \n Opens the library and imports the parser entry point\n ";
|
|
|
+static PyObject *__pyx_f_6bison__12ParserEngine_openCurrentLib(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
|
|
|
+ PyObject *__pyx_v_parser;
|
|
|
+ PyObject *__pyx_v_verbose;
|
|
|
+ PyObject *__pyx_v_libHash;
|
|
|
+ PyObject *__pyx_r;
|
|
|
+ PyObject *__pyx_1 = 0;
|
|
|
+ PyObject *__pyx_2 = 0;
|
|
|
+ PyObject *__pyx_3 = 0;
|
|
|
+ int __pyx_4;
|
|
|
+ int __pyx_5;
|
|
|
+ static char *__pyx_argnames[] = {0};
|
|
|
+ if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) return 0;
|
|
|
+ Py_INCREF(__pyx_v_self);
|
|
|
+ __pyx_v_parser = Py_None; Py_INCREF(__pyx_v_parser);
|
|
|
+ __pyx_v_verbose = Py_None; Py_INCREF(__pyx_v_verbose);
|
|
|
+ __pyx_v_libHash = Py_None; Py_INCREF(__pyx_v_libHash);
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":198 */
|
|
|
+ Py_INCREF(((struct __pyx_obj_6bison__ParserEngine *)__pyx_v_self)->parser);
|
|
|
+ Py_DECREF(__pyx_v_parser);
|
|
|
+ __pyx_v_parser = ((struct __pyx_obj_6bison__ParserEngine *)__pyx_v_self)->parser;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":199 */
|
|
|
+ __pyx_1 = PyObject_GetAttr(__pyx_v_parser, __pyx_n_verbose); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 199; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_v_verbose);
|
|
|
+ __pyx_v_verbose = __pyx_1;
|
|
|
+ __pyx_1 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":201 */
|
|
|
+ __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_os); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 201; goto __pyx_L1;}
|
|
|
+ __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_path); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 201; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_isfile); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 201; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 201; goto __pyx_L1;}
|
|
|
+ Py_INCREF(((struct __pyx_obj_6bison__ParserEngine *)__pyx_v_self)->libFilename_py);
|
|
|
+ PyTuple_SET_ITEM(__pyx_2, 0, ((struct __pyx_obj_6bison__ParserEngine *)__pyx_v_self)->libFilename_py);
|
|
|
+ __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 201; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ __pyx_4 = PyObject_IsTrue(__pyx_3); if (__pyx_4 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 201; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ __pyx_5 = (!__pyx_4);
|
|
|
+ if (__pyx_5) {
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":202 */
|
|
|
+ __pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_buildLib); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 202; goto __pyx_L1;}
|
|
|
+ __pyx_2 = PyTuple_New(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 202; goto __pyx_L1;}
|
|
|
+ __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 202; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ goto __pyx_L2;
|
|
|
+ }
|
|
|
+ __pyx_L2:;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":204 */
|
|
|
+ __pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_openLib); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 204; goto __pyx_L1;}
|
|
|
+ __pyx_2 = PyTuple_New(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 204; goto __pyx_L1;}
|
|
|
+ __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 204; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":207 */
|
|
|
+ __pyx_1 = PyString_FromString(((struct __pyx_obj_6bison__ParserEngine *)__pyx_v_self)->libHash); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 207; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_v_libHash);
|
|
|
+ __pyx_v_libHash = __pyx_1;
|
|
|
+ __pyx_1 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":208 */
|
|
|
+ if (PyObject_Cmp(((struct __pyx_obj_6bison__ParserEngine *)__pyx_v_self)->parserHash, __pyx_v_libHash, &__pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 208; goto __pyx_L1;}
|
|
|
+ __pyx_4 = __pyx_4 != 0;
|
|
|
+ if (__pyx_4) {
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":209 */
|
|
|
+ __pyx_5 = PyObject_IsTrue(__pyx_v_verbose); if (__pyx_5 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 209; goto __pyx_L1;}
|
|
|
+ if (__pyx_5) {
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":210 */
|
|
|
+ if (__Pyx_PrintItem(__pyx_k13p) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 210; goto __pyx_L1;}
|
|
|
+ if (__Pyx_PrintNewline() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 210; goto __pyx_L1;}
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":211 */
|
|
|
+ __pyx_2 = PyNumber_Remainder(__pyx_k14p, ((struct __pyx_obj_6bison__ParserEngine *)__pyx_v_self)->parserHash); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 211; goto __pyx_L1;}
|
|
|
+ if (__Pyx_PrintItem(__pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 211; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ if (__Pyx_PrintNewline() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 211; goto __pyx_L1;}
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":212 */
|
|
|
+ __pyx_3 = PyNumber_Remainder(__pyx_k15p, __pyx_v_libHash); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 212; goto __pyx_L1;}
|
|
|
+ if (__Pyx_PrintItem(__pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 212; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ if (__Pyx_PrintNewline() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 212; goto __pyx_L1;}
|
|
|
+ goto __pyx_L4;
|
|
|
+ }
|
|
|
+ __pyx_L4:;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":213 */
|
|
|
+ __pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_closeLib); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 213; goto __pyx_L1;}
|
|
|
+ __pyx_2 = PyTuple_New(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 213; goto __pyx_L1;}
|
|
|
+ __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 213; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":214 */
|
|
|
+ __pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_buildLib); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 214; goto __pyx_L1;}
|
|
|
+ __pyx_2 = PyTuple_New(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 214; goto __pyx_L1;}
|
|
|
+ __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 214; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":215 */
|
|
|
+ __pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_openLib); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 215; goto __pyx_L1;}
|
|
|
+ __pyx_2 = PyTuple_New(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 215; goto __pyx_L1;}
|
|
|
+ __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 215; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ goto __pyx_L3;
|
|
|
+ }
|
|
|
+ /*else*/ {
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":217 */
|
|
|
+ __pyx_4 = PyObject_IsTrue(__pyx_v_verbose); if (__pyx_4 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 217; goto __pyx_L1;}
|
|
|
+ if (__pyx_4) {
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":218 */
|
|
|
+ if (__Pyx_PrintItem(__pyx_k16p) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 218; goto __pyx_L1;}
|
|
|
+ if (__Pyx_PrintNewline() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 218; goto __pyx_L1;}
|
|
|
+ goto __pyx_L5;
|
|
|
+ }
|
|
|
+ __pyx_L5:;
|
|
|
+ }
|
|
|
+ __pyx_L3:;
|
|
|
+
|
|
|
+ __pyx_r = Py_None; Py_INCREF(__pyx_r);
|
|
|
+ goto __pyx_L0;
|
|
|
+ __pyx_L1:;
|
|
|
+ Py_XDECREF(__pyx_1);
|
|
|
+ Py_XDECREF(__pyx_2);
|
|
|
+ Py_XDECREF(__pyx_3);
|
|
|
+ __Pyx_AddTraceback("bison_.ParserEngine.openCurrentLib");
|
|
|
+ __pyx_r = 0;
|
|
|
+ __pyx_L0:;
|
|
|
+ Py_DECREF(__pyx_v_parser);
|
|
|
+ Py_DECREF(__pyx_v_verbose);
|
|
|
+ Py_DECREF(__pyx_v_libHash);
|
|
|
+ Py_DECREF(__pyx_v_self);
|
|
|
+ return __pyx_r;
|
|
|
+}
|
|
|
+
|
|
|
+static PyObject *__pyx_k17p;
|
|
|
+static PyObject *__pyx_k19p;
|
|
|
+
|
|
|
+char (__pyx_k17[]) = "Opening library %s";
|
|
|
+char (__pyx_k18[]) = "ParserEngine.openLib: error '%s'\n";
|
|
|
+char (__pyx_k19[]) = "Successfully loaded library";
|
|
|
+
|
|
|
+static PyObject *__pyx_f_6bison__12ParserEngine_openLib(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
|
|
|
+static char __pyx_doc_6bison__12ParserEngine_openLib[] = "\n Loads the parser engine\'s dynamic library,\n and extracts the following symbols:\n \n - void *do_parse() (runs parser)\n - char *parserHash (contains hash of python parser rules)\n \n Returns lib handle, plus pointer to do_parse() function, as long ints\n (which later need to be cast to pointers)\n \n Important note -this is totally linux-specific.\n If you want windows support, you\'ll have to modify these funcs to\n use glib instead (or create windows equivalents), in which case I\'d\n greatly appreciate you sending me a patch.\n ";
|
|
|
+static PyObject *__pyx_f_6bison__12ParserEngine_openLib(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
|
|
|
+ char (*__pyx_v_libFilename);
|
|
|
+ char (*__pyx_v_err);
|
|
|
+ void (*__pyx_v_handle);
|
|
|
+ PyObject *__pyx_v_parser;
|
|
|
+ PyObject *__pyx_r;
|
|
|
+ PyObject *__pyx_1 = 0;
|
|
|
+ int __pyx_2;
|
|
|
+ static char *__pyx_argnames[] = {0};
|
|
|
+ if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) return 0;
|
|
|
+ Py_INCREF(__pyx_v_self);
|
|
|
+ __pyx_v_parser = Py_None; Py_INCREF(__pyx_v_parser);
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":242 */
|
|
|
+ __pyx_v_libFilename = PyString_AsString(((struct __pyx_obj_6bison__ParserEngine *)__pyx_v_self)->libFilename_py);
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":244 */
|
|
|
+ Py_INCREF(((struct __pyx_obj_6bison__ParserEngine *)__pyx_v_self)->parser);
|
|
|
+ Py_DECREF(__pyx_v_parser);
|
|
|
+ __pyx_v_parser = ((struct __pyx_obj_6bison__ParserEngine *)__pyx_v_self)->parser;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":246 */
|
|
|
+ __pyx_1 = PyObject_GetAttr(__pyx_v_parser, __pyx_n_verbose); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 246; goto __pyx_L1;}
|
|
|
+ __pyx_2 = PyObject_IsTrue(__pyx_1); if (__pyx_2 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 246; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ if (__pyx_2) {
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":247 */
|
|
|
+ __pyx_1 = PyNumber_Remainder(__pyx_k17p, ((struct __pyx_obj_6bison__ParserEngine *)__pyx_v_self)->libFilename_py); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 247; goto __pyx_L1;}
|
|
|
+ if (__Pyx_PrintItem(__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 247; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ if (__Pyx_PrintNewline() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 247; goto __pyx_L1;}
|
|
|
+ goto __pyx_L2;
|
|
|
+ }
|
|
|
+ __pyx_L2:;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":248 */
|
|
|
+ __pyx_v_handle = bisondynlib_open(__pyx_v_libFilename);
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":249 */
|
|
|
+ ((struct __pyx_obj_6bison__ParserEngine *)__pyx_v_self)->libHandle = __pyx_v_handle;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":250 */
|
|
|
+ __pyx_v_err = bisondynlib_err();
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":251 */
|
|
|
+ __pyx_2 = (__pyx_v_err != 0);
|
|
|
+ if (__pyx_2) {
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":252 */
|
|
|
+ printf(__pyx_k18,__pyx_v_err);
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":253 */
|
|
|
+ __pyx_r = Py_None; Py_INCREF(__pyx_r);
|
|
|
+ goto __pyx_L0;
|
|
|
+ goto __pyx_L3;
|
|
|
+ }
|
|
|
+ __pyx_L3:;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":256 */
|
|
|
+ ((struct __pyx_obj_6bison__ParserEngine *)__pyx_v_self)->libHash = bisondynlib_lookup_hash(__pyx_v_handle);
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":258 */
|
|
|
+ __pyx_1 = PyObject_GetAttr(__pyx_v_parser, __pyx_n_verbose); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 258; goto __pyx_L1;}
|
|
|
+ __pyx_2 = PyObject_IsTrue(__pyx_1); if (__pyx_2 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 258; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ if (__pyx_2) {
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":259 */
|
|
|
+ if (__Pyx_PrintItem(__pyx_k19p) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 259; goto __pyx_L1;}
|
|
|
+ if (__Pyx_PrintNewline() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 259; goto __pyx_L1;}
|
|
|
+ goto __pyx_L4;
|
|
|
+ }
|
|
|
+ __pyx_L4:;
|
|
|
+
|
|
|
+ __pyx_r = Py_None; Py_INCREF(__pyx_r);
|
|
|
+ goto __pyx_L0;
|
|
|
+ __pyx_L1:;
|
|
|
+ Py_XDECREF(__pyx_1);
|
|
|
+ __Pyx_AddTraceback("bison_.ParserEngine.openLib");
|
|
|
+ __pyx_r = 0;
|
|
|
+ __pyx_L0:;
|
|
|
+ Py_DECREF(__pyx_v_parser);
|
|
|
+ Py_DECREF(__pyx_v_self);
|
|
|
+ return __pyx_r;
|
|
|
+}
|
|
|
+
|
|
|
+static PyObject *__pyx_n_dir;
|
|
|
+static PyObject *__pyx_n_startswith;
|
|
|
+static PyObject *__pyx_n_on_;
|
|
|
+static PyObject *__pyx_n_getattr;
|
|
|
+static PyObject *__pyx_n_append;
|
|
|
+static PyObject *__pyx_n_sort;
|
|
|
+static PyObject *__pyx_n_start;
|
|
|
+static PyObject *__pyx_n_tokens;
|
|
|
+static PyObject *__pyx_n_precedences;
|
|
|
+static PyObject *__pyx_n_lexscript;
|
|
|
+static PyObject *__pyx_n_unlink;
|
|
|
+static PyObject *__pyx_n_bisonFile;
|
|
|
+static PyObject *__pyx_n_open;
|
|
|
+static PyObject *__pyx_n_w;
|
|
|
+static PyObject *__pyx_n_write;
|
|
|
+static PyObject *__pyx_n_writelines;
|
|
|
+static PyObject *__pyx_n_join;
|
|
|
+static PyObject *__pyx_n___doc__;
|
|
|
+static PyObject *__pyx_n_strip;
|
|
|
+static PyObject *__pyx_n_sub;
|
|
|
+static PyObject *__pyx_n_split;
|
|
|
+static PyObject *__pyx_n_error;
|
|
|
+static PyObject *__pyx_n_NULL;
|
|
|
+static PyObject *__pyx_n_close;
|
|
|
+static PyObject *__pyx_n_flexFile;
|
|
|
+static PyObject *__pyx_n_ccompiler;
|
|
|
+static PyObject *__pyx_n_new_compiler;
|
|
|
+static PyObject *__pyx_n_set_include_dirs;
|
|
|
+static PyObject *__pyx_n_sysconfig;
|
|
|
+static PyObject *__pyx_n_get_python_inc;
|
|
|
+static PyObject *__pyx_n_bisonCmd;
|
|
|
+static PyObject *__pyx_n_repr;
|
|
|
+static PyObject *__pyx_n_spawn;
|
|
|
+static PyObject *__pyx_n_bisonCFile;
|
|
|
+static PyObject *__pyx_n_bisonCFile1;
|
|
|
+static PyObject *__pyx_n_bisonHFile;
|
|
|
+static PyObject *__pyx_n_bisonHFile1;
|
|
|
+static PyObject *__pyx_n_rename;
|
|
|
+static PyObject *__pyx_n_flexCmd;
|
|
|
+static PyObject *__pyx_n_flexCFile1;
|
|
|
+static PyObject *__pyx_n_flexCFile;
|
|
|
+static PyObject *__pyx_n_link_shared_object;
|
|
|
+static PyObject *__pyx_n_keepfiles;
|
|
|
+
|
|
|
+static PyObject *__pyx_k22p;
|
|
|
+static PyObject *__pyx_k23p;
|
|
|
+static PyObject *__pyx_k24p;
|
|
|
+static PyObject *__pyx_k25p;
|
|
|
+static PyObject *__pyx_k26p;
|
|
|
+static PyObject *__pyx_k27p;
|
|
|
+static PyObject *__pyx_k28p;
|
|
|
+static PyObject *__pyx_k29p;
|
|
|
+static PyObject *__pyx_k30p;
|
|
|
+static PyObject *__pyx_k31p;
|
|
|
+static PyObject *__pyx_k32p;
|
|
|
+static PyObject *__pyx_k33p;
|
|
|
+static PyObject *__pyx_k34p;
|
|
|
+static PyObject *__pyx_k35p;
|
|
|
+static PyObject *__pyx_k36p;
|
|
|
+static PyObject *__pyx_k38p;
|
|
|
+static PyObject *__pyx_k37p;
|
|
|
+static PyObject *__pyx_k39p;
|
|
|
+static PyObject *__pyx_k41p;
|
|
|
+static PyObject *__pyx_k40p;
|
|
|
+static PyObject *__pyx_k42p;
|
|
|
+static PyObject *__pyx_k43p;
|
|
|
+static PyObject *__pyx_k44p;
|
|
|
+static PyObject *__pyx_k45p;
|
|
|
+static PyObject *__pyx_k46p;
|
|
|
+static PyObject *__pyx_k47p;
|
|
|
+static PyObject *__pyx_k48p;
|
|
|
+static PyObject *__pyx_k49p;
|
|
|
+static PyObject *__pyx_k50p;
|
|
|
+static PyObject *__pyx_k51p;
|
|
|
+static PyObject *__pyx_k53p;
|
|
|
+static PyObject *__pyx_k54p;
|
|
|
+static PyObject *__pyx_k56p;
|
|
|
+static PyObject *__pyx_k57p;
|
|
|
+static PyObject *__pyx_k58p;
|
|
|
+static PyObject *__pyx_k59p;
|
|
|
+static PyObject *__pyx_k60p;
|
|
|
+static PyObject *__pyx_k62p;
|
|
|
+static PyObject *__pyx_k63p;
|
|
|
+static PyObject *__pyx_k64p;
|
|
|
+static PyObject *__pyx_k65p;
|
|
|
+static PyObject *__pyx_k66p;
|
|
|
+static PyObject *__pyx_k67p;
|
|
|
+static PyObject *__pyx_k68p;
|
|
|
+static PyObject *__pyx_k69p;
|
|
|
+static PyObject *__pyx_k70p;
|
|
|
+static PyObject *__pyx_k71p;
|
|
|
+static PyObject *__pyx_k72p;
|
|
|
+static PyObject *__pyx_k73p;
|
|
|
+static PyObject *__pyx_k74p;
|
|
|
+static PyObject *__pyx_k75p;
|
|
|
+static PyObject *__pyx_k76p;
|
|
|
+static PyObject *__pyx_k77p;
|
|
|
+static PyObject *__pyx_k78p;
|
|
|
+static PyObject *__pyx_k79p;
|
|
|
+static PyObject *__pyx_k80p;
|
|
|
+static PyObject *__pyx_k81p;
|
|
|
+static PyObject *__pyx_k82p;
|
|
|
+static PyObject *__pyx_k83p;
|
|
|
+static PyObject *__pyx_k84p;
|
|
|
+static PyObject *__pyx_k85p;
|
|
|
+static PyObject *__pyx_k86p;
|
|
|
+static PyObject *__pyx_k87p;
|
|
|
+static PyObject *__pyx_k88p;
|
|
|
+static PyObject *__pyx_k89p;
|
|
|
+static PyObject *__pyx_k90p;
|
|
|
+static PyObject *__pyx_k91p;
|
|
|
+static PyObject *__pyx_k92p;
|
|
|
+static PyObject *__pyx_k93p;
|
|
|
+static PyObject *__pyx_k94p;
|
|
|
+static PyObject *__pyx_k95p;
|
|
|
+static PyObject *__pyx_k96p;
|
|
|
+static PyObject *__pyx_k97p;
|
|
|
+static PyObject *__pyx_k98p;
|
|
|
+static PyObject *__pyx_k99p;
|
|
|
+static PyObject *__pyx_k100p;
|
|
|
+static PyObject *__pyx_k101p;
|
|
|
+static PyObject *__pyx_k102p;
|
|
|
+static PyObject *__pyx_k103p;
|
|
|
+static PyObject *__pyx_k104p;
|
|
|
+static PyObject *__pyx_k105p;
|
|
|
+static PyObject *__pyx_k106p;
|
|
|
+static PyObject *__pyx_k107p;
|
|
|
+static PyObject *__pyx_k108p;
|
|
|
+static PyObject *__pyx_k109p;
|
|
|
+static PyObject *__pyx_k110p;
|
|
|
+static PyObject *__pyx_k111p;
|
|
|
+static PyObject *__pyx_k113p;
|
|
|
+static PyObject *__pyx_k114p;
|
|
|
+static PyObject *__pyx_k116p;
|
|
|
+static PyObject *__pyx_k117p;
|
|
|
+static PyObject *__pyx_k118p;
|
|
|
+static PyObject *__pyx_k119p;
|
|
|
+static PyObject *__pyx_k120p;
|
|
|
+static PyObject *__pyx_k121p;
|
|
|
+static PyObject *__pyx_k122p;
|
|
|
+static PyObject *__pyx_k123p;
|
|
|
+static PyObject *__pyx_k132p;
|
|
|
+
|
|
|
+char (__pyx_k22[]) = "\n";
|
|
|
+char (__pyx_k23[]) = "%{";
|
|
|
+ char (__pyx_k24[]) = "";
|
|
|
+ char (__pyx_k25[]) = "#include <stdio.h>";
|
|
|
+ char (__pyx_k26[]) = "#include \"Python.h\"";
|
|
|
+ char (__pyx_k27[]) = "extern FILE *yyin;";
|
|
|
+ char (__pyx_k28[]) = "extern int yylineno;extern char *yytext;";
|
|
|
+ char (__pyx_k29[]) = "#define YYSTYPE void*";
|
|
|
+ char (__pyx_k30[]) = "void *(*py_callback)(void *, char *, int, int, void *, ...);";
|
|
|
+ char (__pyx_k31[]) = "void (*py_input)(void *, char *, int *, int);";
|
|
|
+ char (__pyx_k32[]) = "void *py_parser;";
|
|
|
+ char (__pyx_k33[]) = "char *rules_hash = \"%s\";";
|
|
|
+ char (__pyx_k34[]) = "";
|
|
|
+ char (__pyx_k35[]) = "%}";
|
|
|
+char (__pyx_k36[]) = "";
|
|
|
+char (__pyx_k37[]) = "%%token %s\n\n";
|
|
|
+char (__pyx_k38[]) = " ";
|
|
|
+char (__pyx_k39[]) = "%%start %s\n\n";
|
|
|
+char (__pyx_k40[]) = "%%%s %s\n";
|
|
|
+char (__pyx_k41[]) = " ";
|
|
|
+char (__pyx_k42[]) = "\n\n%%\n\n";
|
|
|
+char (__pyx_k43[]) = ";";
|
|
|
+char (__pyx_k44[]) = "";
|
|
|
+char (__pyx_k45[]) = ":";
|
|
|
+char (__pyx_k46[]) = "|";
|
|
|
+char (__pyx_k47[]) = "\\|";
|
|
|
+char (__pyx_k48[]) = " ";
|
|
|
+char (__pyx_k49[]) = "%s\n : ";
|
|
|
+char (__pyx_k50[]) = "";
|
|
|
+char (__pyx_k51[]) = "\n {\n";
|
|
|
+ char (__pyx_k53[]) = " yyerrok;\n";
|
|
|
+ char (__pyx_k54[]) = " $$ = (*py_callback)(\n py_parser, \"%s\", %s, %%s";
|
|
|
+ char (__pyx_k56[]) = "%prec";
|
|
|
+ char (__pyx_k57[]) = "\"%s\", $%d";
|
|
|
+ char (__pyx_k58[]) = ",\n ";
|
|
|
+ char (__pyx_k59[]) = ",\n ";
|
|
|
+ char (__pyx_k60[]) = "\n );\n";
|
|
|
+ char (__pyx_k62[]) = " PyObject_SetAttrString(py_parser, \"lasterror\", Py_None);\n";
|
|
|
+ char (__pyx_k63[]) = " Py_INCREF(Py_None);\n";
|
|
|
+ char (__pyx_k64[]) = " yyclearin;\n";
|
|
|
+ char (__pyx_k65[]) = " if (PyObject_HasAttrString($$, \"_pyBisonError\"))\n";
|
|
|
+ char (__pyx_k66[]) = " {\n";
|
|
|
+ char (__pyx_k67[]) = " yyerror(PyString_AsString(PyObject_GetAttrString(py_parser, \"lasterror\")));\n";
|
|
|
+ char (__pyx_k68[]) = " Py_INCREF(Py_None);\n";
|
|
|
+ char (__pyx_k69[]) = " YYERROR;\n";
|
|
|
+ char (__pyx_k70[]) = " }\n";
|
|
|
+ char (__pyx_k71[]) = " }\n";
|
|
|
+char (__pyx_k72[]) = " ";
|
|
|
+char (__pyx_k73[]) = " | ";
|
|
|
+char (__pyx_k74[]) = " ;\n\n";
|
|
|
+char (__pyx_k75[]) = "\n\n%%\n\n";
|
|
|
+char (__pyx_k76[]) = "\n";
|
|
|
+char (__pyx_k77[]) = "void do_parse(void *parser1,";
|
|
|
+char (__pyx_k78[]) = " void *(*cb)(void *, char *, int, int, void *, ...),";
|
|
|
+char (__pyx_k79[]) = " void (*in)(void *, char*, int *, int),";
|
|
|
+char (__pyx_k80[]) = " int debug";
|
|
|
+char (__pyx_k81[]) = " )";
|
|
|
+char (__pyx_k82[]) = "{";
|
|
|
+ char (__pyx_k83[]) = " //printf(\"Not calling yyparse\\n\");";
|
|
|
+ char (__pyx_k84[]) = " //return;";
|
|
|
+ char (__pyx_k85[]) = " py_callback = cb;";
|
|
|
+ char (__pyx_k86[]) = " py_input = in;";
|
|
|
+ char (__pyx_k87[]) = " py_parser = parser1;";
|
|
|
+ char (__pyx_k88[]) = " yydebug = debug;";
|
|
|
+ char (__pyx_k89[]) = " //yyin = stdin;";
|
|
|
+ char (__pyx_k90[]) = " //printf(\"calling yyparse(), in=0x%lx\\n\", py_input);";
|
|
|
+ char (__pyx_k91[]) = " yyparse();";
|
|
|
+ char (__pyx_k92[]) = " //printf(\"Back from parser\\n\");";
|
|
|
+ char (__pyx_k93[]) = "}";
|
|
|
+char (__pyx_k94[]) = "int yyerror(char *mesg)";
|
|
|
+char (__pyx_k95[]) = "{";
|
|
|
+ char (__pyx_k96[]) = " //printf(\"yytext=0x%lx\\n\", yytext);";
|
|
|
+ char (__pyx_k97[]) = " PyObject *args = PyTuple_New(3);";
|
|
|
+ char (__pyx_k98[]) = " int ret;";
|
|
|
+ char (__pyx_k99[]) = "";
|
|
|
+ char (__pyx_k100[]) = " PyTuple_SetItem(args, 0, PyInt_FromLong(yylineno+1));";
|
|
|
+ char (__pyx_k101[]) = " PyTuple_SetItem(args, 1, PyString_FromString(mesg));";
|
|
|
+ char (__pyx_k102[]) = " PyTuple_SetItem(args, 2, PyString_FromString(yytext));";
|
|
|
+ char (__pyx_k103[]) = "";
|
|
|
+ char (__pyx_k104[]) = " ret = PyObject_SetAttrString((PyObject *)py_parser, \"lasterror\", args);";
|
|
|
+ char (__pyx_k105[]) = " //printf(\"PyObject_SetAttrString: %d\\n\", ret);";
|
|
|
+ char (__pyx_k106[]) = "";
|
|
|
+ char (__pyx_k107[]) = " //printf(\"line %d: %s before %s\\n\", yylineno+1, mesg, yytext);";
|
|
|
+ char (__pyx_k108[]) = " //exit(0);";
|
|
|
+ char (__pyx_k109[]) = "}";
|
|
|
+char (__pyx_k110[]) = "\n";
|
|
|
+char (__pyx_k111[]) = "\n";
|
|
|
+char (__pyx_k113[]) = "\n";
|
|
|
+char (__pyx_k114[]) = "\n";
|
|
|
+char (__pyx_k116[]) = "bisonCmd=%s";
|
|
|
+char (__pyx_k117[]) = "renaming bison output files";
|
|
|
+char (__pyx_k118[]) = "=>";
|
|
|
+char (__pyx_k119[]) = "=>";
|
|
|
+char (__pyx_k120[]) = ".bak";
|
|
|
+char (__pyx_k121[]) = ".bak";
|
|
|
+char (__pyx_k122[]) = ".bak";
|
|
|
+char (__pyx_k123[]) = "tmp.output";
|
|
|
+char (__pyx_k132[]) = "Warning: failed to delete temporary file %s";
|
|
|
+
|
|
|
+static PyObject *__pyx_f_6bison__12ParserEngine_buildLib(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
|
|
|
+static char __pyx_doc_6bison__12ParserEngine_buildLib[] = "\n Creates the parser engine lib\n \n This consists of:\n 1. Ripping the tokens list, precedences, start target, handler docstrings\n and lex script from this Parser instance\'s attribs and methods\n 2. Creating bison and lex files\n 3. Compiling bison/lex files to C\n 4. Compiling the C files, and link into a dynamic lib\n ";
|
|
|
+static PyObject *__pyx_f_6bison__12ParserEngine_buildLib(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
|
|
|
+ char (*__pyx_v_incdir);
|
|
|
+ PyObject *__pyx_v_parser;
|
|
|
+ PyObject *__pyx_v_attribs;
|
|
|
+ PyObject *__pyx_v_gHandlers;
|
|
|
+ PyObject *__pyx_v_a;
|
|
|
+ PyObject *__pyx_v_method;
|
|
|
+ PyObject *__pyx_v_gStart;
|
|
|
+ PyObject *__pyx_v_gTokens;
|
|
|
+ PyObject *__pyx_v_gPrecedences;
|
|
|
+ PyObject *__pyx_v_gLex;
|
|
|
+ PyObject *__pyx_v_f;
|
|
|
+ PyObject *__pyx_v_write;
|
|
|
+ PyObject *__pyx_v_writelines;
|
|
|
+ PyObject *__pyx_v_p;
|
|
|
+ PyObject *__pyx_v_rules;
|
|
|
+ PyObject *__pyx_v_h;
|
|
|
+ PyObject *__pyx_v_doc;
|
|
|
+ PyObject *__pyx_v_s;
|
|
|
+ PyObject *__pyx_v_target;
|
|
|
+ PyObject *__pyx_v_options;
|
|
|
+ PyObject *__pyx_v_tmp;
|
|
|
+ PyObject *__pyx_v_opts;
|
|
|
+ PyObject *__pyx_v_r;
|
|
|
+ PyObject *__pyx_v_opts1;
|
|
|
+ PyObject *__pyx_v_o;
|
|
|
+ PyObject *__pyx_v_rule;
|
|
|
+ PyObject *__pyx_v_idx;
|
|
|
+ PyObject *__pyx_v_option;
|
|
|
+ PyObject *__pyx_v_nterms;
|
|
|
+ PyObject *__pyx_v_action;
|
|
|
+ PyObject *__pyx_v_args;
|
|
|
+ PyObject *__pyx_v_i;
|
|
|
+ PyObject *__pyx_v_epilogue;
|
|
|
+ PyObject *__pyx_v_lexLines;
|
|
|
+ PyObject *__pyx_v_line;
|
|
|
+ PyObject *__pyx_v_ccompiler;
|
|
|
+ PyObject *__pyx_v_bisonCmd;
|
|
|
+ PyObject *__pyx_v_objs;
|
|
|
+ PyObject *__pyx_v_libFileName;
|
|
|
+ PyObject *__pyx_v_hitlist;
|
|
|
+ PyObject *__pyx_v_name;
|
|
|
+ PyObject *__pyx_v_fname;
|
|
|
+ PyObject *__pyx_r;
|
|
|
+ PyObject *__pyx_1 = 0;
|
|
|
+ PyObject *__pyx_2 = 0;
|
|
|
+ PyObject *__pyx_3 = 0;
|
|
|
+ PyObject *__pyx_4 = 0;
|
|
|
+ int __pyx_5;
|
|
|
+ PyObject *__pyx_6 = 0;
|
|
|
+ PyObject *__pyx_7 = 0;
|
|
|
+ PyObject *__pyx_8 = 0;
|
|
|
+ int __pyx_9;
|
|
|
+ static char *__pyx_argnames[] = {0};
|
|
|
+ if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) return 0;
|
|
|
+ Py_INCREF(__pyx_v_self);
|
|
|
+ __pyx_v_parser = Py_None; Py_INCREF(__pyx_v_parser);
|
|
|
+ __pyx_v_attribs = Py_None; Py_INCREF(__pyx_v_attribs);
|
|
|
+ __pyx_v_gHandlers = Py_None; Py_INCREF(__pyx_v_gHandlers);
|
|
|
+ __pyx_v_a = Py_None; Py_INCREF(__pyx_v_a);
|
|
|
+ __pyx_v_method = Py_None; Py_INCREF(__pyx_v_method);
|
|
|
+ __pyx_v_gStart = Py_None; Py_INCREF(__pyx_v_gStart);
|
|
|
+ __pyx_v_gTokens = Py_None; Py_INCREF(__pyx_v_gTokens);
|
|
|
+ __pyx_v_gPrecedences = Py_None; Py_INCREF(__pyx_v_gPrecedences);
|
|
|
+ __pyx_v_gLex = Py_None; Py_INCREF(__pyx_v_gLex);
|
|
|
+ __pyx_v_f = Py_None; Py_INCREF(__pyx_v_f);
|
|
|
+ __pyx_v_write = Py_None; Py_INCREF(__pyx_v_write);
|
|
|
+ __pyx_v_writelines = Py_None; Py_INCREF(__pyx_v_writelines);
|
|
|
+ __pyx_v_p = Py_None; Py_INCREF(__pyx_v_p);
|
|
|
+ __pyx_v_rules = Py_None; Py_INCREF(__pyx_v_rules);
|
|
|
+ __pyx_v_h = Py_None; Py_INCREF(__pyx_v_h);
|
|
|
+ __pyx_v_doc = Py_None; Py_INCREF(__pyx_v_doc);
|
|
|
+ __pyx_v_s = Py_None; Py_INCREF(__pyx_v_s);
|
|
|
+ __pyx_v_target = Py_None; Py_INCREF(__pyx_v_target);
|
|
|
+ __pyx_v_options = Py_None; Py_INCREF(__pyx_v_options);
|
|
|
+ __pyx_v_tmp = Py_None; Py_INCREF(__pyx_v_tmp);
|
|
|
+ __pyx_v_opts = Py_None; Py_INCREF(__pyx_v_opts);
|
|
|
+ __pyx_v_r = Py_None; Py_INCREF(__pyx_v_r);
|
|
|
+ __pyx_v_opts1 = Py_None; Py_INCREF(__pyx_v_opts1);
|
|
|
+ __pyx_v_o = Py_None; Py_INCREF(__pyx_v_o);
|
|
|
+ __pyx_v_rule = Py_None; Py_INCREF(__pyx_v_rule);
|
|
|
+ __pyx_v_idx = Py_None; Py_INCREF(__pyx_v_idx);
|
|
|
+ __pyx_v_option = Py_None; Py_INCREF(__pyx_v_option);
|
|
|
+ __pyx_v_nterms = Py_None; Py_INCREF(__pyx_v_nterms);
|
|
|
+ __pyx_v_action = Py_None; Py_INCREF(__pyx_v_action);
|
|
|
+ __pyx_v_args = Py_None; Py_INCREF(__pyx_v_args);
|
|
|
+ __pyx_v_i = Py_None; Py_INCREF(__pyx_v_i);
|
|
|
+ __pyx_v_epilogue = Py_None; Py_INCREF(__pyx_v_epilogue);
|
|
|
+ __pyx_v_lexLines = Py_None; Py_INCREF(__pyx_v_lexLines);
|
|
|
+ __pyx_v_line = Py_None; Py_INCREF(__pyx_v_line);
|
|
|
+ __pyx_v_ccompiler = Py_None; Py_INCREF(__pyx_v_ccompiler);
|
|
|
+ __pyx_v_bisonCmd = Py_None; Py_INCREF(__pyx_v_bisonCmd);
|
|
|
+ __pyx_v_objs = Py_None; Py_INCREF(__pyx_v_objs);
|
|
|
+ __pyx_v_libFileName = Py_None; Py_INCREF(__pyx_v_libFileName);
|
|
|
+ __pyx_v_hitlist = Py_None; Py_INCREF(__pyx_v_hitlist);
|
|
|
+ __pyx_v_name = Py_None; Py_INCREF(__pyx_v_name);
|
|
|
+ __pyx_v_fname = Py_None; Py_INCREF(__pyx_v_fname);
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":278 */
|
|
|
+ Py_INCREF(((struct __pyx_obj_6bison__ParserEngine *)__pyx_v_self)->parser);
|
|
|
+ Py_DECREF(__pyx_v_parser);
|
|
|
+ __pyx_v_parser = ((struct __pyx_obj_6bison__ParserEngine *)__pyx_v_self)->parser;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":281 */
|
|
|
+ __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_dir); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 281; goto __pyx_L1;}
|
|
|
+ __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 281; goto __pyx_L1;}
|
|
|
+ Py_INCREF(__pyx_v_parser);
|
|
|
+ PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_parser);
|
|
|
+ __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 281; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_DECREF(__pyx_v_attribs);
|
|
|
+ __pyx_v_attribs = __pyx_3;
|
|
|
+ __pyx_3 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":282 */
|
|
|
+ __pyx_1 = PyList_New(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 282; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_v_gHandlers);
|
|
|
+ __pyx_v_gHandlers = __pyx_1;
|
|
|
+ __pyx_1 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":283 */
|
|
|
+ __pyx_2 = PyObject_GetIter(__pyx_v_attribs); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 283; goto __pyx_L1;}
|
|
|
+ for (;;) {
|
|
|
+ __pyx_L2:;
|
|
|
+ __pyx_3 = PyIter_Next(__pyx_2);
|
|
|
+ if (!__pyx_3) {
|
|
|
+ if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 283; goto __pyx_L1;}
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ Py_DECREF(__pyx_v_a);
|
|
|
+ __pyx_v_a = __pyx_3;
|
|
|
+ __pyx_3 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":284 */
|
|
|
+ __pyx_1 = PyObject_GetAttr(__pyx_v_a, __pyx_n_startswith); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 284; goto __pyx_L1;}
|
|
|
+ __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 284; goto __pyx_L1;}
|
|
|
+ Py_INCREF(__pyx_n_on_);
|
|
|
+ PyTuple_SET_ITEM(__pyx_3, 0, __pyx_n_on_);
|
|
|
+ __pyx_4 = PyObject_CallObject(__pyx_1, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 284; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ __pyx_5 = PyObject_IsTrue(__pyx_4); if (__pyx_5 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 284; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ if (__pyx_5) {
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":285 */
|
|
|
+ __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_getattr); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 285; goto __pyx_L1;}
|
|
|
+ __pyx_3 = PyTuple_New(2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 285; goto __pyx_L1;}
|
|
|
+ Py_INCREF(__pyx_v_parser);
|
|
|
+ PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_parser);
|
|
|
+ Py_INCREF(__pyx_v_a);
|
|
|
+ PyTuple_SET_ITEM(__pyx_3, 1, __pyx_v_a);
|
|
|
+ __pyx_4 = PyObject_CallObject(__pyx_1, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 285; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ Py_DECREF(__pyx_v_method);
|
|
|
+ __pyx_v_method = __pyx_4;
|
|
|
+ __pyx_4 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":286 */
|
|
|
+ __pyx_1 = PyObject_GetAttr(__pyx_v_gHandlers, __pyx_n_append); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 286; goto __pyx_L1;}
|
|
|
+ __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 286; goto __pyx_L1;}
|
|
|
+ Py_INCREF(__pyx_v_method);
|
|
|
+ PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_method);
|
|
|
+ __pyx_4 = PyObject_CallObject(__pyx_1, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 286; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ goto __pyx_L4;
|
|
|
+ }
|
|
|
+ __pyx_L4:;
|
|
|
+ }
|
|
|
+ __pyx_L3:;
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":287 */
|
|
|
+ __pyx_1 = PyObject_GetAttr(__pyx_v_gHandlers, __pyx_n_sort); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 287; goto __pyx_L1;}
|
|
|
+ __pyx_3 = __Pyx_GetName(__pyx_m, __pyx_n_cmpLines); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 287; goto __pyx_L1;}
|
|
|
+ __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 287; goto __pyx_L1;}
|
|
|
+ PyTuple_SET_ITEM(__pyx_4, 0, __pyx_3);
|
|
|
+ __pyx_3 = 0;
|
|
|
+ __pyx_2 = PyObject_CallObject(__pyx_1, __pyx_4); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 287; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":290 */
|
|
|
+ __pyx_3 = PyObject_GetAttr(__pyx_v_parser, __pyx_n_start); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 290; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_v_gStart);
|
|
|
+ __pyx_v_gStart = __pyx_3;
|
|
|
+ __pyx_3 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":291 */
|
|
|
+ __pyx_1 = PyObject_GetAttr(__pyx_v_parser, __pyx_n_tokens); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 291; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_v_gTokens);
|
|
|
+ __pyx_v_gTokens = __pyx_1;
|
|
|
+ __pyx_1 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":292 */
|
|
|
+ __pyx_4 = PyObject_GetAttr(__pyx_v_parser, __pyx_n_precedences); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 292; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_v_gPrecedences);
|
|
|
+ __pyx_v_gPrecedences = __pyx_4;
|
|
|
+ __pyx_4 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":293 */
|
|
|
+ __pyx_2 = PyObject_GetAttr(__pyx_v_parser, __pyx_n_lexscript); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 293; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_v_gLex);
|
|
|
+ __pyx_v_gLex = __pyx_2;
|
|
|
+ __pyx_2 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":297 */
|
|
|
+ /*try:*/ {
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":298 */
|
|
|
+ __pyx_3 = __Pyx_GetName(__pyx_m, __pyx_n_os); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 298; goto __pyx_L5;}
|
|
|
+ __pyx_1 = PyObject_GetAttr(__pyx_3, __pyx_n_unlink); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 298; goto __pyx_L5;}
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ __pyx_4 = PyObject_GetAttr(__pyx_v_parser, __pyx_n_bisonFile); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 298; goto __pyx_L5;}
|
|
|
+ __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 298; goto __pyx_L5;}
|
|
|
+ PyTuple_SET_ITEM(__pyx_2, 0, __pyx_4);
|
|
|
+ __pyx_4 = 0;
|
|
|
+ __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 298; goto __pyx_L5;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ }
|
|
|
+ goto __pyx_L6;
|
|
|
+ __pyx_L5:;
|
|
|
+ Py_XDECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ Py_XDECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_XDECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_XDECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":299 */
|
|
|
+ /*except:*/ {
|
|
|
+ __Pyx_AddTraceback("bison_.buildLib");
|
|
|
+ __pyx_4 = __Pyx_GetExcValue(); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 299; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":300 */
|
|
|
+ goto __pyx_L6;
|
|
|
+ }
|
|
|
+ __pyx_L6:;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":301 */
|
|
|
+ __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_open); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 301; goto __pyx_L1;}
|
|
|
+ __pyx_2 = PyObject_GetAttr(__pyx_v_parser, __pyx_n_bisonFile); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 301; goto __pyx_L1;}
|
|
|
+ __pyx_3 = PyTuple_New(2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 301; goto __pyx_L1;}
|
|
|
+ PyTuple_SET_ITEM(__pyx_3, 0, __pyx_2);
|
|
|
+ Py_INCREF(__pyx_n_w);
|
|
|
+ PyTuple_SET_ITEM(__pyx_3, 1, __pyx_n_w);
|
|
|
+ __pyx_2 = 0;
|
|
|
+ __pyx_4 = PyObject_CallObject(__pyx_1, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 301; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ Py_DECREF(__pyx_v_f);
|
|
|
+ __pyx_v_f = __pyx_4;
|
|
|
+ __pyx_4 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":302 */
|
|
|
+ __pyx_2 = PyObject_GetAttr(__pyx_v_f, __pyx_n_write); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 302; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_v_write);
|
|
|
+ __pyx_v_write = __pyx_2;
|
|
|
+ __pyx_2 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":303 */
|
|
|
+ __pyx_1 = PyObject_GetAttr(__pyx_v_f, __pyx_n_writelines); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 303; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_v_writelines);
|
|
|
+ __pyx_v_writelines = __pyx_1;
|
|
|
+ __pyx_1 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":306 */
|
|
|
+ __pyx_3 = PyObject_GetAttr(__pyx_k22p, __pyx_n_join); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 306; goto __pyx_L1;}
|
|
|
+ __pyx_4 = PyNumber_Remainder(__pyx_k33p, ((struct __pyx_obj_6bison__ParserEngine *)__pyx_v_self)->parserHash); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 319; goto __pyx_L1;}
|
|
|
+ __pyx_2 = PyList_New(14); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 306; goto __pyx_L1;}
|
|
|
+ Py_INCREF(__pyx_k23p);
|
|
|
+ PyList_SET_ITEM(__pyx_2, 0, __pyx_k23p);
|
|
|
+ Py_INCREF(__pyx_k24p);
|
|
|
+ PyList_SET_ITEM(__pyx_2, 1, __pyx_k24p);
|
|
|
+ Py_INCREF(__pyx_k25p);
|
|
|
+ PyList_SET_ITEM(__pyx_2, 2, __pyx_k25p);
|
|
|
+ Py_INCREF(__pyx_k26p);
|
|
|
+ PyList_SET_ITEM(__pyx_2, 3, __pyx_k26p);
|
|
|
+ Py_INCREF(__pyx_k27p);
|
|
|
+ PyList_SET_ITEM(__pyx_2, 4, __pyx_k27p);
|
|
|
+ Py_INCREF(__pyx_k28p);
|
|
|
+ PyList_SET_ITEM(__pyx_2, 5, __pyx_k28p);
|
|
|
+ Py_INCREF(__pyx_k29p);
|
|
|
+ PyList_SET_ITEM(__pyx_2, 6, __pyx_k29p);
|
|
|
+ Py_INCREF(__pyx_k30p);
|
|
|
+ PyList_SET_ITEM(__pyx_2, 7, __pyx_k30p);
|
|
|
+ Py_INCREF(__pyx_k31p);
|
|
|
+ PyList_SET_ITEM(__pyx_2, 8, __pyx_k31p);
|
|
|
+ Py_INCREF(__pyx_k32p);
|
|
|
+ PyList_SET_ITEM(__pyx_2, 9, __pyx_k32p);
|
|
|
+ PyList_SET_ITEM(__pyx_2, 10, __pyx_4);
|
|
|
+ Py_INCREF(__pyx_k34p);
|
|
|
+ PyList_SET_ITEM(__pyx_2, 11, __pyx_k34p);
|
|
|
+ Py_INCREF(__pyx_k35p);
|
|
|
+ PyList_SET_ITEM(__pyx_2, 12, __pyx_k35p);
|
|
|
+ Py_INCREF(__pyx_k36p);
|
|
|
+ PyList_SET_ITEM(__pyx_2, 13, __pyx_k36p);
|
|
|
+ __pyx_4 = 0;
|
|
|
+ __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 306; goto __pyx_L1;}
|
|
|
+ PyTuple_SET_ITEM(__pyx_1, 0, __pyx_2);
|
|
|
+ __pyx_2 = 0;
|
|
|
+ __pyx_4 = PyObject_CallObject(__pyx_3, __pyx_1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 306; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 306; goto __pyx_L1;}
|
|
|
+ PyTuple_SET_ITEM(__pyx_2, 0, __pyx_4);
|
|
|
+ __pyx_4 = 0;
|
|
|
+ __pyx_3 = PyObject_CallObject(__pyx_v_write, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 306; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":326 */
|
|
|
+ __pyx_1 = PyObject_GetAttr(__pyx_k38p, __pyx_n_join); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 326; goto __pyx_L1;}
|
|
|
+ __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 326; goto __pyx_L1;}
|
|
|
+ Py_INCREF(__pyx_v_gTokens);
|
|
|
+ PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_gTokens);
|
|
|
+ __pyx_2 = PyObject_CallObject(__pyx_1, __pyx_4); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 326; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ __pyx_3 = PyNumber_Remainder(__pyx_k37p, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 326; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 326; goto __pyx_L1;}
|
|
|
+ PyTuple_SET_ITEM(__pyx_1, 0, __pyx_3);
|
|
|
+ __pyx_3 = 0;
|
|
|
+ __pyx_4 = PyObject_CallObject(__pyx_v_write, __pyx_1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 326; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":327 */
|
|
|
+ __pyx_2 = PyNumber_Remainder(__pyx_k39p, __pyx_v_gStart); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 327; goto __pyx_L1;}
|
|
|
+ __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 327; goto __pyx_L1;}
|
|
|
+ PyTuple_SET_ITEM(__pyx_3, 0, __pyx_2);
|
|
|
+ __pyx_2 = 0;
|
|
|
+ __pyx_1 = PyObject_CallObject(__pyx_v_write, __pyx_3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 327; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":330 */
|
|
|
+ __pyx_4 = PyObject_GetIter(__pyx_v_gPrecedences); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 330; goto __pyx_L1;}
|
|
|
+ for (;;) {
|
|
|
+ __pyx_L7:;
|
|
|
+ __pyx_2 = PyIter_Next(__pyx_4);
|
|
|
+ if (!__pyx_2) {
|
|
|
+ if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 330; goto __pyx_L1;}
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ Py_DECREF(__pyx_v_p);
|
|
|
+ __pyx_v_p = __pyx_2;
|
|
|
+ __pyx_2 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":331 */
|
|
|
+ __pyx_3 = PyInt_FromLong(0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 331; goto __pyx_L1;}
|
|
|
+ __pyx_1 = PyObject_GetItem(__pyx_v_p, __pyx_3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 331; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ __pyx_2 = PyObject_GetAttr(__pyx_k41p, __pyx_n_join); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 331; goto __pyx_L1;}
|
|
|
+ __pyx_3 = PyInt_FromLong(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 331; goto __pyx_L1;}
|
|
|
+ __pyx_6 = PyObject_GetItem(__pyx_v_p, __pyx_3); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 331; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 331; goto __pyx_L1;}
|
|
|
+ PyTuple_SET_ITEM(__pyx_3, 0, __pyx_6);
|
|
|
+ __pyx_6 = 0;
|
|
|
+ __pyx_6 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 331; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ __pyx_2 = PyTuple_New(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 331; goto __pyx_L1;}
|
|
|
+ PyTuple_SET_ITEM(__pyx_2, 0, __pyx_1);
|
|
|
+ PyTuple_SET_ITEM(__pyx_2, 1, __pyx_6);
|
|
|
+ __pyx_1 = 0;
|
|
|
+ __pyx_6 = 0;
|
|
|
+ __pyx_3 = PyNumber_Remainder(__pyx_k40p, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 331; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 331; goto __pyx_L1;}
|
|
|
+ PyTuple_SET_ITEM(__pyx_1, 0, __pyx_3);
|
|
|
+ __pyx_3 = 0;
|
|
|
+ __pyx_6 = PyObject_CallObject(__pyx_v_write, __pyx_1); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 331; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_DECREF(__pyx_6); __pyx_6 = 0;
|
|
|
+ }
|
|
|
+ __pyx_L8:;
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":333 */
|
|
|
+ __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; goto __pyx_L1;}
|
|
|
+ Py_INCREF(__pyx_k42p);
|
|
|
+ PyTuple_SET_ITEM(__pyx_2, 0, __pyx_k42p);
|
|
|
+ __pyx_3 = PyObject_CallObject(__pyx_v_write, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":336 */
|
|
|
+ __pyx_1 = PyList_New(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 336; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_v_rules);
|
|
|
+ __pyx_v_rules = __pyx_1;
|
|
|
+ __pyx_1 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":337 */
|
|
|
+ __pyx_6 = PyObject_GetIter(__pyx_v_gHandlers); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 337; goto __pyx_L1;}
|
|
|
+ for (;;) {
|
|
|
+ __pyx_L9:;
|
|
|
+ __pyx_4 = PyIter_Next(__pyx_6);
|
|
|
+ if (!__pyx_4) {
|
|
|
+ if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 337; goto __pyx_L1;}
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ Py_DECREF(__pyx_v_h);
|
|
|
+ __pyx_v_h = __pyx_4;
|
|
|
+ __pyx_4 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":339 */
|
|
|
+ __pyx_2 = PyObject_GetAttr(__pyx_v_h, __pyx_n___doc__); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 339; goto __pyx_L1;}
|
|
|
+ __pyx_3 = PyObject_GetAttr(__pyx_2, __pyx_n_strip); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 339; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ __pyx_1 = PyTuple_New(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 339; goto __pyx_L1;}
|
|
|
+ __pyx_4 = PyObject_CallObject(__pyx_3, __pyx_1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 339; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_DECREF(__pyx_v_doc);
|
|
|
+ __pyx_v_doc = __pyx_4;
|
|
|
+ __pyx_4 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":343 */
|
|
|
+ __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_re); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; goto __pyx_L1;}
|
|
|
+ __pyx_3 = PyObject_GetAttr(__pyx_2, __pyx_n_sub); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_unquoted); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; goto __pyx_L1;}
|
|
|
+ __pyx_4 = PyNumber_Remainder(__pyx_1, __pyx_k43p); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ __pyx_2 = PyTuple_New(3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; goto __pyx_L1;}
|
|
|
+ PyTuple_SET_ITEM(__pyx_2, 0, __pyx_4);
|
|
|
+ Py_INCREF(__pyx_k44p);
|
|
|
+ PyTuple_SET_ITEM(__pyx_2, 1, __pyx_k44p);
|
|
|
+ Py_INCREF(__pyx_v_doc);
|
|
|
+ PyTuple_SET_ITEM(__pyx_2, 2, __pyx_v_doc);
|
|
|
+ __pyx_4 = 0;
|
|
|
+ __pyx_1 = PyObject_CallObject(__pyx_3, __pyx_2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_DECREF(__pyx_v_doc);
|
|
|
+ __pyx_v_doc = __pyx_1;
|
|
|
+ __pyx_1 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":347 */
|
|
|
+ __pyx_4 = __Pyx_GetName(__pyx_m, __pyx_n_re); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 347; goto __pyx_L1;}
|
|
|
+ __pyx_3 = PyObject_GetAttr(__pyx_4, __pyx_n_split); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 347; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_unquoted); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 347; goto __pyx_L1;}
|
|
|
+ __pyx_1 = PyNumber_Remainder(__pyx_2, __pyx_k45p); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 347; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ __pyx_4 = PyTuple_New(2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 347; goto __pyx_L1;}
|
|
|
+ PyTuple_SET_ITEM(__pyx_4, 0, __pyx_1);
|
|
|
+ Py_INCREF(__pyx_v_doc);
|
|
|
+ PyTuple_SET_ITEM(__pyx_4, 1, __pyx_v_doc);
|
|
|
+ __pyx_1 = 0;
|
|
|
+ __pyx_2 = PyObject_CallObject(__pyx_3, __pyx_4); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 347; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ Py_DECREF(__pyx_v_s);
|
|
|
+ __pyx_v_s = __pyx_2;
|
|
|
+ __pyx_2 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":350 */
|
|
|
+ __pyx_1 = __Pyx_UnpackItem(__pyx_v_s, 0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 350; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_v_target);
|
|
|
+ __pyx_v_target = __pyx_1;
|
|
|
+ __pyx_1 = 0;
|
|
|
+ __pyx_3 = __Pyx_UnpackItem(__pyx_v_s, 1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 350; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_v_options);
|
|
|
+ __pyx_v_options = __pyx_3;
|
|
|
+ __pyx_3 = 0;
|
|
|
+ if (__Pyx_EndUnpack(__pyx_v_s, 2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 350; goto __pyx_L1;}
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":351 */
|
|
|
+ __pyx_4 = PyObject_GetAttr(__pyx_v_target, __pyx_n_strip); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 351; goto __pyx_L1;}
|
|
|
+ __pyx_2 = PyTuple_New(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 351; goto __pyx_L1;}
|
|
|
+ __pyx_1 = PyObject_CallObject(__pyx_4, __pyx_2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 351; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_DECREF(__pyx_v_target);
|
|
|
+ __pyx_v_target = __pyx_1;
|
|
|
+ __pyx_1 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":353 */
|
|
|
+ __pyx_3 = PyObject_GetAttr(__pyx_v_options, __pyx_n_strip); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 353; goto __pyx_L1;}
|
|
|
+ __pyx_4 = PyTuple_New(0); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 353; goto __pyx_L1;}
|
|
|
+ __pyx_2 = PyObject_CallObject(__pyx_3, __pyx_4); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 353; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ Py_DECREF(__pyx_v_options);
|
|
|
+ __pyx_v_options = __pyx_2;
|
|
|
+ __pyx_2 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":354 */
|
|
|
+ __pyx_1 = PyList_New(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 354; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_v_tmp);
|
|
|
+ __pyx_v_tmp = __pyx_1;
|
|
|
+ __pyx_1 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":357 */
|
|
|
+ __pyx_3 = PyObject_GetAttr(__pyx_v_options, __pyx_n_split); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 357; goto __pyx_L1;}
|
|
|
+ __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 357; goto __pyx_L1;}
|
|
|
+ Py_INCREF(__pyx_k46p);
|
|
|
+ PyTuple_SET_ITEM(__pyx_4, 0, __pyx_k46p);
|
|
|
+ __pyx_2 = PyObject_CallObject(__pyx_3, __pyx_4); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 357; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ Py_DECREF(__pyx_v_opts);
|
|
|
+ __pyx_v_opts = __pyx_2;
|
|
|
+ __pyx_2 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":359 */
|
|
|
+ __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_unquoted); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 359; goto __pyx_L1;}
|
|
|
+ __pyx_3 = PyNumber_Remainder(__pyx_1, __pyx_k47p); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 359; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_DECREF(__pyx_v_r);
|
|
|
+ __pyx_v_r = __pyx_3;
|
|
|
+ __pyx_3 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":361 */
|
|
|
+ __pyx_4 = __Pyx_GetName(__pyx_m, __pyx_n_re); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 361; goto __pyx_L1;}
|
|
|
+ __pyx_2 = PyObject_GetAttr(__pyx_4, __pyx_n_split); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 361; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ __pyx_1 = PyNumber_Add(__pyx_k48p, __pyx_v_options); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 361; goto __pyx_L1;}
|
|
|
+ __pyx_3 = PyTuple_New(2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 361; goto __pyx_L1;}
|
|
|
+ Py_INCREF(__pyx_v_r);
|
|
|
+ PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_r);
|
|
|
+ PyTuple_SET_ITEM(__pyx_3, 1, __pyx_1);
|
|
|
+ __pyx_1 = 0;
|
|
|
+ __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 361; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ Py_DECREF(__pyx_v_opts1);
|
|
|
+ __pyx_v_opts1 = __pyx_4;
|
|
|
+ __pyx_4 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":364 */
|
|
|
+ __pyx_1 = PyObject_GetIter(__pyx_v_opts1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 364; goto __pyx_L1;}
|
|
|
+ for (;;) {
|
|
|
+ __pyx_L11:;
|
|
|
+ __pyx_2 = PyIter_Next(__pyx_1);
|
|
|
+ if (!__pyx_2) {
|
|
|
+ if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 364; goto __pyx_L1;}
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ Py_DECREF(__pyx_v_o);
|
|
|
+ __pyx_v_o = __pyx_2;
|
|
|
+ __pyx_2 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":365 */
|
|
|
+ __pyx_3 = PyObject_GetAttr(__pyx_v_o, __pyx_n_strip); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 365; goto __pyx_L1;}
|
|
|
+ __pyx_4 = PyTuple_New(0); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 365; goto __pyx_L1;}
|
|
|
+ __pyx_2 = PyObject_CallObject(__pyx_3, __pyx_4); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 365; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ Py_DECREF(__pyx_v_o);
|
|
|
+ __pyx_v_o = __pyx_2;
|
|
|
+ __pyx_2 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":367 */
|
|
|
+ __pyx_3 = PyObject_GetAttr(__pyx_v_tmp, __pyx_n_append); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 367; goto __pyx_L1;}
|
|
|
+ __pyx_4 = __Pyx_GetName(__pyx_m, __pyx_n_reSpaces); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 367; goto __pyx_L1;}
|
|
|
+ __pyx_2 = PyObject_GetAttr(__pyx_4, __pyx_n_split); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 367; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 367; goto __pyx_L1;}
|
|
|
+ Py_INCREF(__pyx_v_o);
|
|
|
+ PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_o);
|
|
|
+ __pyx_7 = PyObject_CallObject(__pyx_2, __pyx_4); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 367; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 367; goto __pyx_L1;}
|
|
|
+ PyTuple_SET_ITEM(__pyx_2, 0, __pyx_7);
|
|
|
+ __pyx_7 = 0;
|
|
|
+ __pyx_4 = PyObject_CallObject(__pyx_3, __pyx_2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 367; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ }
|
|
|
+ __pyx_L12:;
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":368 */
|
|
|
+ Py_INCREF(__pyx_v_tmp);
|
|
|
+ Py_DECREF(__pyx_v_options);
|
|
|
+ __pyx_v_options = __pyx_v_tmp;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":370 */
|
|
|
+ __pyx_7 = PyObject_GetAttr(__pyx_v_rules, __pyx_n_append); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 370; goto __pyx_L1;}
|
|
|
+ __pyx_3 = PyTuple_New(2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 370; goto __pyx_L1;}
|
|
|
+ Py_INCREF(__pyx_v_target);
|
|
|
+ PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_target);
|
|
|
+ Py_INCREF(__pyx_v_options);
|
|
|
+ PyTuple_SET_ITEM(__pyx_3, 1, __pyx_v_options);
|
|
|
+ __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 370; goto __pyx_L1;}
|
|
|
+ PyTuple_SET_ITEM(__pyx_2, 0, __pyx_3);
|
|
|
+ __pyx_3 = 0;
|
|
|
+ __pyx_4 = PyObject_CallObject(__pyx_7, __pyx_2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 370; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_7); __pyx_7 = 0;
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ }
|
|
|
+ __pyx_L10:;
|
|
|
+ Py_DECREF(__pyx_6); __pyx_6 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":373 */
|
|
|
+ __pyx_1 = PyObject_GetIter(__pyx_v_rules); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 373; goto __pyx_L1;}
|
|
|
+ for (;;) {
|
|
|
+ __pyx_L13:;
|
|
|
+ __pyx_3 = PyIter_Next(__pyx_1);
|
|
|
+ if (!__pyx_3) {
|
|
|
+ if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 373; goto __pyx_L1;}
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ Py_DECREF(__pyx_v_rule);
|
|
|
+ __pyx_v_rule = __pyx_3;
|
|
|
+ __pyx_3 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":374 */
|
|
|
+ /*try:*/ {
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":375 */
|
|
|
+ __pyx_7 = PyInt_FromLong(0); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 375; goto __pyx_L15;}
|
|
|
+ __pyx_2 = PyObject_GetItem(__pyx_v_rule, __pyx_7); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 375; goto __pyx_L15;}
|
|
|
+ Py_DECREF(__pyx_7); __pyx_7 = 0;
|
|
|
+ __pyx_4 = PyNumber_Remainder(__pyx_k49p, __pyx_2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 375; goto __pyx_L15;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ __pyx_6 = PyTuple_New(1); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 375; goto __pyx_L15;}
|
|
|
+ PyTuple_SET_ITEM(__pyx_6, 0, __pyx_4);
|
|
|
+ __pyx_4 = 0;
|
|
|
+ __pyx_3 = PyObject_CallObject(__pyx_v_write, __pyx_6); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 375; goto __pyx_L15;}
|
|
|
+ Py_DECREF(__pyx_6); __pyx_6 = 0;
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":376 */
|
|
|
+ __pyx_7 = PyList_New(0); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 376; goto __pyx_L15;}
|
|
|
+ Py_DECREF(__pyx_v_options);
|
|
|
+ __pyx_v_options = __pyx_7;
|
|
|
+ __pyx_7 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":377 */
|
|
|
+ __pyx_2 = PyInt_FromLong(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 377; goto __pyx_L15;}
|
|
|
+ Py_DECREF(__pyx_v_idx);
|
|
|
+ __pyx_v_idx = __pyx_2;
|
|
|
+ __pyx_2 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":378 */
|
|
|
+ __pyx_4 = PyInt_FromLong(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 378; goto __pyx_L15;}
|
|
|
+ __pyx_6 = PyObject_GetItem(__pyx_v_rule, __pyx_4); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 378; goto __pyx_L15;}
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ __pyx_3 = PyObject_GetIter(__pyx_6); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 378; goto __pyx_L15;}
|
|
|
+ Py_DECREF(__pyx_6); __pyx_6 = 0;
|
|
|
+ for (;;) {
|
|
|
+ __pyx_L17:;
|
|
|
+ __pyx_7 = PyIter_Next(__pyx_3);
|
|
|
+ if (!__pyx_7) {
|
|
|
+ if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 378; goto __pyx_L15;}
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ Py_DECREF(__pyx_v_option);
|
|
|
+ __pyx_v_option = __pyx_7;
|
|
|
+ __pyx_7 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":379 */
|
|
|
+ __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_len); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 379; goto __pyx_L15;}
|
|
|
+ __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 379; goto __pyx_L15;}
|
|
|
+ Py_INCREF(__pyx_v_option);
|
|
|
+ PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_option);
|
|
|
+ __pyx_6 = PyObject_CallObject(__pyx_2, __pyx_4); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 379; goto __pyx_L15;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ Py_DECREF(__pyx_v_nterms);
|
|
|
+ __pyx_v_nterms = __pyx_6;
|
|
|
+ __pyx_6 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":380 */
|
|
|
+ __pyx_7 = PyInt_FromLong(1); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 380; goto __pyx_L15;}
|
|
|
+ if (PyObject_Cmp(__pyx_v_nterms, __pyx_7, &__pyx_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 380; goto __pyx_L15;}
|
|
|
+ __pyx_5 = __pyx_5 == 0;
|
|
|
+ Py_DECREF(__pyx_7); __pyx_7 = 0;
|
|
|
+ if (__pyx_5) {
|
|
|
+ __pyx_2 = PyInt_FromLong(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 380; goto __pyx_L15;}
|
|
|
+ __pyx_4 = PyObject_GetItem(__pyx_v_option, __pyx_2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 380; goto __pyx_L15;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ if (PyObject_Cmp(__pyx_4, __pyx_k50p, &__pyx_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 380; goto __pyx_L15;}
|
|
|
+ __pyx_5 = __pyx_5 == 0;
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ }
|
|
|
+ if (__pyx_5) {
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":381 */
|
|
|
+ __pyx_6 = PyInt_FromLong(0); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 381; goto __pyx_L15;}
|
|
|
+ Py_DECREF(__pyx_v_nterms);
|
|
|
+ __pyx_v_nterms = __pyx_6;
|
|
|
+ __pyx_6 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":382 */
|
|
|
+ __pyx_7 = PyList_New(0); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 382; goto __pyx_L15;}
|
|
|
+ Py_DECREF(__pyx_v_option);
|
|
|
+ __pyx_v_option = __pyx_7;
|
|
|
+ __pyx_7 = 0;
|
|
|
+ goto __pyx_L19;
|
|
|
+ }
|
|
|
+ __pyx_L19:;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":383 */
|
|
|
+ Py_INCREF(__pyx_k51p);
|
|
|
+ Py_DECREF(__pyx_v_action);
|
|
|
+ __pyx_v_action = __pyx_k51p;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":384 */
|
|
|
+ __pyx_5 = PySequence_Contains(__pyx_v_option, __pyx_n_error); if (__pyx_5 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 384; goto __pyx_L15;}
|
|
|
+ if (__pyx_5) {
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":385 */
|
|
|
+ __pyx_2 = PyNumber_Add(__pyx_v_action, __pyx_k53p); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 385; goto __pyx_L15;}
|
|
|
+ Py_DECREF(__pyx_v_action);
|
|
|
+ __pyx_v_action = __pyx_2;
|
|
|
+ __pyx_2 = 0;
|
|
|
+ goto __pyx_L20;
|
|
|
+ }
|
|
|
+ __pyx_L20:;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":386 */
|
|
|
+ __pyx_4 = PyInt_FromLong(0); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 387; goto __pyx_L15;}
|
|
|
+ __pyx_6 = PyObject_GetItem(__pyx_v_rule, __pyx_4); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 387; goto __pyx_L15;}
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ __pyx_7 = PyTuple_New(2); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 387; goto __pyx_L15;}
|
|
|
+ PyTuple_SET_ITEM(__pyx_7, 0, __pyx_6);
|
|
|
+ Py_INCREF(__pyx_v_idx);
|
|
|
+ PyTuple_SET_ITEM(__pyx_7, 1, __pyx_v_idx);
|
|
|
+ __pyx_6 = 0;
|
|
|
+ __pyx_2 = PyNumber_Remainder(__pyx_k54p, __pyx_7); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 386; goto __pyx_L15;}
|
|
|
+ Py_DECREF(__pyx_7); __pyx_7 = 0;
|
|
|
+ __pyx_4 = PyNumber_Add(__pyx_v_action, __pyx_2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 386; goto __pyx_L15;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_DECREF(__pyx_v_action);
|
|
|
+ __pyx_v_action = __pyx_4;
|
|
|
+ __pyx_4 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":388 */
|
|
|
+ __pyx_6 = PyList_New(0); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 388; goto __pyx_L15;}
|
|
|
+ Py_DECREF(__pyx_v_args);
|
|
|
+ __pyx_v_args = __pyx_6;
|
|
|
+ __pyx_6 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":389 */
|
|
|
+ __pyx_7 = PyInt_FromLong(0); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 389; goto __pyx_L15;}
|
|
|
+ if (PyObject_Cmp(__pyx_v_nterms, __pyx_7, &__pyx_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 389; goto __pyx_L15;}
|
|
|
+ __pyx_5 = __pyx_5 == 0;
|
|
|
+ Py_DECREF(__pyx_7); __pyx_7 = 0;
|
|
|
+ if (__pyx_5) {
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":390 */
|
|
|
+ __pyx_2 = PyObject_GetAttr(__pyx_v_args, __pyx_n_append); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 390; goto __pyx_L15;}
|
|
|
+ __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 390; goto __pyx_L15;}
|
|
|
+ Py_INCREF(__pyx_n_NULL);
|
|
|
+ PyTuple_SET_ITEM(__pyx_4, 0, __pyx_n_NULL);
|
|
|
+ __pyx_6 = PyObject_CallObject(__pyx_2, __pyx_4); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 390; goto __pyx_L15;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ Py_DECREF(__pyx_6); __pyx_6 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":391 */
|
|
|
+ __pyx_7 = PyInt_FromLong((-1)); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 391; goto __pyx_L15;}
|
|
|
+ Py_DECREF(__pyx_v_i);
|
|
|
+ __pyx_v_i = __pyx_7;
|
|
|
+ __pyx_7 = 0;
|
|
|
+ goto __pyx_L21;
|
|
|
+ }
|
|
|
+ /*else*/ {
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":393 */
|
|
|
+ __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_range); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 393; goto __pyx_L15;}
|
|
|
+ __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 393; goto __pyx_L15;}
|
|
|
+ Py_INCREF(__pyx_v_nterms);
|
|
|
+ PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_nterms);
|
|
|
+ __pyx_6 = PyObject_CallObject(__pyx_2, __pyx_4); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 393; goto __pyx_L15;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ __pyx_7 = PyObject_GetIter(__pyx_6); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 393; goto __pyx_L15;}
|
|
|
+ Py_DECREF(__pyx_6); __pyx_6 = 0;
|
|
|
+ for (;;) {
|
|
|
+ __pyx_L22:;
|
|
|
+ __pyx_2 = PyIter_Next(__pyx_7);
|
|
|
+ if (!__pyx_2) {
|
|
|
+ if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 393; goto __pyx_L15;}
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ Py_DECREF(__pyx_v_i);
|
|
|
+ __pyx_v_i = __pyx_2;
|
|
|
+ __pyx_2 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":394 */
|
|
|
+ __pyx_4 = PyObject_GetItem(__pyx_v_option, __pyx_v_i); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 394; goto __pyx_L15;}
|
|
|
+ if (PyObject_Cmp(__pyx_4, __pyx_k56p, &__pyx_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 394; goto __pyx_L15;}
|
|
|
+ __pyx_5 = __pyx_5 == 0;
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ if (__pyx_5) {
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":395 */
|
|
|
+ __pyx_6 = PyInt_FromLong(1); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 395; goto __pyx_L15;}
|
|
|
+ __pyx_2 = PyNumber_Subtract(__pyx_v_i, __pyx_6); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 395; goto __pyx_L15;}
|
|
|
+ Py_DECREF(__pyx_6); __pyx_6 = 0;
|
|
|
+ Py_DECREF(__pyx_v_i);
|
|
|
+ __pyx_v_i = __pyx_2;
|
|
|
+ __pyx_2 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":396 */
|
|
|
+ goto __pyx_L23;
|
|
|
+ goto __pyx_L24;
|
|
|
+ }
|
|
|
+ __pyx_L24:;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":397 */
|
|
|
+ __pyx_4 = PyObject_GetAttr(__pyx_v_args, __pyx_n_append); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; goto __pyx_L15;}
|
|
|
+ __pyx_6 = PyObject_GetItem(__pyx_v_option, __pyx_v_i); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; goto __pyx_L15;}
|
|
|
+ __pyx_2 = PyInt_FromLong(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; goto __pyx_L15;}
|
|
|
+ __pyx_8 = PyNumber_Add(__pyx_v_i, __pyx_2); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; goto __pyx_L15;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ __pyx_2 = PyTuple_New(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; goto __pyx_L15;}
|
|
|
+ PyTuple_SET_ITEM(__pyx_2, 0, __pyx_6);
|
|
|
+ PyTuple_SET_ITEM(__pyx_2, 1, __pyx_8);
|
|
|
+ __pyx_6 = 0;
|
|
|
+ __pyx_8 = 0;
|
|
|
+ __pyx_6 = PyNumber_Remainder(__pyx_k57p, __pyx_2); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; goto __pyx_L15;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ __pyx_8 = PyTuple_New(1); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; goto __pyx_L15;}
|
|
|
+ PyTuple_SET_ITEM(__pyx_8, 0, __pyx_6);
|
|
|
+ __pyx_6 = 0;
|
|
|
+ __pyx_2 = PyObject_CallObject(__pyx_4, __pyx_8); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; goto __pyx_L15;}
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ Py_DECREF(__pyx_8); __pyx_8 = 0;
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ }
|
|
|
+ __pyx_L23:;
|
|
|
+ Py_DECREF(__pyx_7); __pyx_7 = 0;
|
|
|
+ }
|
|
|
+ __pyx_L21:;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":400 */
|
|
|
+ __pyx_6 = PyInt_FromLong(1); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 400; goto __pyx_L15;}
|
|
|
+ __pyx_4 = PyNumber_Add(__pyx_v_i, __pyx_6); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 400; goto __pyx_L15;}
|
|
|
+ Py_DECREF(__pyx_6); __pyx_6 = 0;
|
|
|
+ __pyx_8 = PyNumber_Remainder(__pyx_v_action, __pyx_4); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 400; goto __pyx_L15;}
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ Py_DECREF(__pyx_v_action);
|
|
|
+ __pyx_v_action = __pyx_8;
|
|
|
+ __pyx_8 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":403 */
|
|
|
+ __pyx_2 = PyNumber_Add(__pyx_v_action, __pyx_k58p); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 403; goto __pyx_L15;}
|
|
|
+ Py_DECREF(__pyx_v_action);
|
|
|
+ __pyx_v_action = __pyx_2;
|
|
|
+ __pyx_2 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":404 */
|
|
|
+ __pyx_7 = PyObject_GetAttr(__pyx_k59p, __pyx_n_join); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 404; goto __pyx_L15;}
|
|
|
+ __pyx_6 = PyTuple_New(1); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 404; goto __pyx_L15;}
|
|
|
+ Py_INCREF(__pyx_v_args);
|
|
|
+ PyTuple_SET_ITEM(__pyx_6, 0, __pyx_v_args);
|
|
|
+ __pyx_4 = PyObject_CallObject(__pyx_7, __pyx_6); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 404; goto __pyx_L15;}
|
|
|
+ Py_DECREF(__pyx_7); __pyx_7 = 0;
|
|
|
+ Py_DECREF(__pyx_6); __pyx_6 = 0;
|
|
|
+ __pyx_8 = PyNumber_Add(__pyx_v_action, __pyx_4); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 404; goto __pyx_L15;}
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ __pyx_2 = PyNumber_Add(__pyx_8, __pyx_k60p); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 404; goto __pyx_L15;}
|
|
|
+ Py_DECREF(__pyx_8); __pyx_8 = 0;
|
|
|
+ Py_DECREF(__pyx_v_action);
|
|
|
+ __pyx_v_action = __pyx_2;
|
|
|
+ __pyx_2 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":406 */
|
|
|
+ __pyx_5 = PySequence_Contains(__pyx_v_option, __pyx_n_error); if (__pyx_5 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 406; goto __pyx_L15;}
|
|
|
+ if (__pyx_5) {
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":407 */
|
|
|
+ __pyx_7 = PyNumber_Add(__pyx_v_action, __pyx_k62p); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 407; goto __pyx_L15;}
|
|
|
+ Py_DECREF(__pyx_v_action);
|
|
|
+ __pyx_v_action = __pyx_7;
|
|
|
+ __pyx_7 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":408 */
|
|
|
+ __pyx_6 = PyNumber_Add(__pyx_v_action, __pyx_k63p); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 408; goto __pyx_L15;}
|
|
|
+ Py_DECREF(__pyx_v_action);
|
|
|
+ __pyx_v_action = __pyx_6;
|
|
|
+ __pyx_6 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":409 */
|
|
|
+ __pyx_4 = PyNumber_Add(__pyx_v_action, __pyx_k64p); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 409; goto __pyx_L15;}
|
|
|
+ Py_DECREF(__pyx_v_action);
|
|
|
+ __pyx_v_action = __pyx_4;
|
|
|
+ __pyx_4 = 0;
|
|
|
+ goto __pyx_L25;
|
|
|
+ }
|
|
|
+ __pyx_L25:;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":411 */
|
|
|
+ __pyx_8 = PyNumber_Add(__pyx_v_action, __pyx_k65p); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 411; goto __pyx_L15;}
|
|
|
+ Py_DECREF(__pyx_v_action);
|
|
|
+ __pyx_v_action = __pyx_8;
|
|
|
+ __pyx_8 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":412 */
|
|
|
+ __pyx_2 = PyNumber_Add(__pyx_v_action, __pyx_k66p); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 412; goto __pyx_L15;}
|
|
|
+ Py_DECREF(__pyx_v_action);
|
|
|
+ __pyx_v_action = __pyx_2;
|
|
|
+ __pyx_2 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":413 */
|
|
|
+ __pyx_7 = PyNumber_Add(__pyx_v_action, __pyx_k67p); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 413; goto __pyx_L15;}
|
|
|
+ Py_DECREF(__pyx_v_action);
|
|
|
+ __pyx_v_action = __pyx_7;
|
|
|
+ __pyx_7 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":414 */
|
|
|
+ __pyx_6 = PyNumber_Add(__pyx_v_action, __pyx_k68p); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 414; goto __pyx_L15;}
|
|
|
+ Py_DECREF(__pyx_v_action);
|
|
|
+ __pyx_v_action = __pyx_6;
|
|
|
+ __pyx_6 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":415 */
|
|
|
+ __pyx_4 = PyNumber_Add(__pyx_v_action, __pyx_k69p); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 415; goto __pyx_L15;}
|
|
|
+ Py_DECREF(__pyx_v_action);
|
|
|
+ __pyx_v_action = __pyx_4;
|
|
|
+ __pyx_4 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":416 */
|
|
|
+ __pyx_8 = PyNumber_Add(__pyx_v_action, __pyx_k70p); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 416; goto __pyx_L15;}
|
|
|
+ Py_DECREF(__pyx_v_action);
|
|
|
+ __pyx_v_action = __pyx_8;
|
|
|
+ __pyx_8 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":417 */
|
|
|
+ __pyx_2 = PyNumber_Add(__pyx_v_action, __pyx_k71p); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 417; goto __pyx_L15;}
|
|
|
+ Py_DECREF(__pyx_v_action);
|
|
|
+ __pyx_v_action = __pyx_2;
|
|
|
+ __pyx_2 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":418 */
|
|
|
+ __pyx_7 = PyObject_GetAttr(__pyx_v_options, __pyx_n_append); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 418; goto __pyx_L15;}
|
|
|
+ __pyx_6 = PyObject_GetAttr(__pyx_k72p, __pyx_n_join); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 418; goto __pyx_L15;}
|
|
|
+ __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 418; goto __pyx_L15;}
|
|
|
+ Py_INCREF(__pyx_v_option);
|
|
|
+ PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_option);
|
|
|
+ __pyx_8 = PyObject_CallObject(__pyx_6, __pyx_4); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 418; goto __pyx_L15;}
|
|
|
+ Py_DECREF(__pyx_6); __pyx_6 = 0;
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ __pyx_2 = PyNumber_Add(__pyx_8, __pyx_v_action); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 418; goto __pyx_L15;}
|
|
|
+ Py_DECREF(__pyx_8); __pyx_8 = 0;
|
|
|
+ __pyx_6 = PyTuple_New(1); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 418; goto __pyx_L15;}
|
|
|
+ PyTuple_SET_ITEM(__pyx_6, 0, __pyx_2);
|
|
|
+ __pyx_2 = 0;
|
|
|
+ __pyx_4 = PyObject_CallObject(__pyx_7, __pyx_6); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 418; goto __pyx_L15;}
|
|
|
+ Py_DECREF(__pyx_7); __pyx_7 = 0;
|
|
|
+ Py_DECREF(__pyx_6); __pyx_6 = 0;
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":419 */
|
|
|
+ __pyx_8 = PyInt_FromLong(1); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 419; goto __pyx_L15;}
|
|
|
+ __pyx_2 = PyNumber_Add(__pyx_v_idx, __pyx_8); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 419; goto __pyx_L15;}
|
|
|
+ Py_DECREF(__pyx_8); __pyx_8 = 0;
|
|
|
+ Py_DECREF(__pyx_v_idx);
|
|
|
+ __pyx_v_idx = __pyx_2;
|
|
|
+ __pyx_2 = 0;
|
|
|
+ }
|
|
|
+ __pyx_L18:;
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":420 */
|
|
|
+ __pyx_7 = PyObject_GetAttr(__pyx_k73p, __pyx_n_join); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 420; goto __pyx_L15;}
|
|
|
+ __pyx_6 = PyTuple_New(1); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 420; goto __pyx_L15;}
|
|
|
+ Py_INCREF(__pyx_v_options);
|
|
|
+ PyTuple_SET_ITEM(__pyx_6, 0, __pyx_v_options);
|
|
|
+ __pyx_4 = PyObject_CallObject(__pyx_7, __pyx_6); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 420; goto __pyx_L15;}
|
|
|
+ Py_DECREF(__pyx_7); __pyx_7 = 0;
|
|
|
+ Py_DECREF(__pyx_6); __pyx_6 = 0;
|
|
|
+ __pyx_8 = PyNumber_Add(__pyx_4, __pyx_k74p); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 420; goto __pyx_L15;}
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 420; goto __pyx_L15;}
|
|
|
+ PyTuple_SET_ITEM(__pyx_2, 0, __pyx_8);
|
|
|
+ __pyx_8 = 0;
|
|
|
+ __pyx_3 = PyObject_CallObject(__pyx_v_write, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 420; goto __pyx_L15;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ }
|
|
|
+ goto __pyx_L16;
|
|
|
+ __pyx_L15:;
|
|
|
+ Py_XDECREF(__pyx_7); __pyx_7 = 0;
|
|
|
+ Py_XDECREF(__pyx_6); __pyx_6 = 0;
|
|
|
+ Py_XDECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ Py_XDECREF(__pyx_8); __pyx_8 = 0;
|
|
|
+ Py_XDECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_XDECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":421 */
|
|
|
+ /*except:*/ {
|
|
|
+ __Pyx_AddTraceback("bison_.buildLib");
|
|
|
+ __pyx_7 = __Pyx_GetExcValue(); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 421; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_7); __pyx_7 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":422 */
|
|
|
+ __pyx_6 = __Pyx_GetName(__pyx_m, __pyx_n_traceback); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 422; goto __pyx_L1;}
|
|
|
+ __pyx_4 = PyObject_GetAttr(__pyx_6, __pyx_n_print_exc); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 422; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_6); __pyx_6 = 0;
|
|
|
+ __pyx_8 = PyTuple_New(0); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 422; goto __pyx_L1;}
|
|
|
+ __pyx_2 = PyObject_CallObject(__pyx_4, __pyx_8); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 422; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ Py_DECREF(__pyx_8); __pyx_8 = 0;
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ goto __pyx_L16;
|
|
|
+ }
|
|
|
+ __pyx_L16:;
|
|
|
+ }
|
|
|
+ __pyx_L14:;
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":424 */
|
|
|
+ __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 424; goto __pyx_L1;}
|
|
|
+ Py_INCREF(__pyx_k75p);
|
|
|
+ PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k75p);
|
|
|
+ __pyx_7 = PyObject_CallObject(__pyx_v_write, __pyx_3); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 424; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ Py_DECREF(__pyx_7); __pyx_7 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":461 */
|
|
|
+ __pyx_6 = PyObject_GetAttr(__pyx_k76p, __pyx_n_join); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 427; goto __pyx_L1;}
|
|
|
+ __pyx_4 = PyList_New(33); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 427; goto __pyx_L1;}
|
|
|
+ Py_INCREF(__pyx_k77p);
|
|
|
+ PyList_SET_ITEM(__pyx_4, 0, __pyx_k77p);
|
|
|
+ Py_INCREF(__pyx_k78p);
|
|
|
+ PyList_SET_ITEM(__pyx_4, 1, __pyx_k78p);
|
|
|
+ Py_INCREF(__pyx_k79p);
|
|
|
+ PyList_SET_ITEM(__pyx_4, 2, __pyx_k79p);
|
|
|
+ Py_INCREF(__pyx_k80p);
|
|
|
+ PyList_SET_ITEM(__pyx_4, 3, __pyx_k80p);
|
|
|
+ Py_INCREF(__pyx_k81p);
|
|
|
+ PyList_SET_ITEM(__pyx_4, 4, __pyx_k81p);
|
|
|
+ Py_INCREF(__pyx_k82p);
|
|
|
+ PyList_SET_ITEM(__pyx_4, 5, __pyx_k82p);
|
|
|
+ Py_INCREF(__pyx_k83p);
|
|
|
+ PyList_SET_ITEM(__pyx_4, 6, __pyx_k83p);
|
|
|
+ Py_INCREF(__pyx_k84p);
|
|
|
+ PyList_SET_ITEM(__pyx_4, 7, __pyx_k84p);
|
|
|
+ Py_INCREF(__pyx_k85p);
|
|
|
+ PyList_SET_ITEM(__pyx_4, 8, __pyx_k85p);
|
|
|
+ Py_INCREF(__pyx_k86p);
|
|
|
+ PyList_SET_ITEM(__pyx_4, 9, __pyx_k86p);
|
|
|
+ Py_INCREF(__pyx_k87p);
|
|
|
+ PyList_SET_ITEM(__pyx_4, 10, __pyx_k87p);
|
|
|
+ Py_INCREF(__pyx_k88p);
|
|
|
+ PyList_SET_ITEM(__pyx_4, 11, __pyx_k88p);
|
|
|
+ Py_INCREF(__pyx_k89p);
|
|
|
+ PyList_SET_ITEM(__pyx_4, 12, __pyx_k89p);
|
|
|
+ Py_INCREF(__pyx_k90p);
|
|
|
+ PyList_SET_ITEM(__pyx_4, 13, __pyx_k90p);
|
|
|
+ Py_INCREF(__pyx_k91p);
|
|
|
+ PyList_SET_ITEM(__pyx_4, 14, __pyx_k91p);
|
|
|
+ Py_INCREF(__pyx_k92p);
|
|
|
+ PyList_SET_ITEM(__pyx_4, 15, __pyx_k92p);
|
|
|
+ Py_INCREF(__pyx_k93p);
|
|
|
+ PyList_SET_ITEM(__pyx_4, 16, __pyx_k93p);
|
|
|
+ Py_INCREF(__pyx_k94p);
|
|
|
+ PyList_SET_ITEM(__pyx_4, 17, __pyx_k94p);
|
|
|
+ Py_INCREF(__pyx_k95p);
|
|
|
+ PyList_SET_ITEM(__pyx_4, 18, __pyx_k95p);
|
|
|
+ Py_INCREF(__pyx_k96p);
|
|
|
+ PyList_SET_ITEM(__pyx_4, 19, __pyx_k96p);
|
|
|
+ Py_INCREF(__pyx_k97p);
|
|
|
+ PyList_SET_ITEM(__pyx_4, 20, __pyx_k97p);
|
|
|
+ Py_INCREF(__pyx_k98p);
|
|
|
+ PyList_SET_ITEM(__pyx_4, 21, __pyx_k98p);
|
|
|
+ Py_INCREF(__pyx_k99p);
|
|
|
+ PyList_SET_ITEM(__pyx_4, 22, __pyx_k99p);
|
|
|
+ Py_INCREF(__pyx_k100p);
|
|
|
+ PyList_SET_ITEM(__pyx_4, 23, __pyx_k100p);
|
|
|
+ Py_INCREF(__pyx_k101p);
|
|
|
+ PyList_SET_ITEM(__pyx_4, 24, __pyx_k101p);
|
|
|
+ Py_INCREF(__pyx_k102p);
|
|
|
+ PyList_SET_ITEM(__pyx_4, 25, __pyx_k102p);
|
|
|
+ Py_INCREF(__pyx_k103p);
|
|
|
+ PyList_SET_ITEM(__pyx_4, 26, __pyx_k103p);
|
|
|
+ Py_INCREF(__pyx_k104p);
|
|
|
+ PyList_SET_ITEM(__pyx_4, 27, __pyx_k104p);
|
|
|
+ Py_INCREF(__pyx_k105p);
|
|
|
+ PyList_SET_ITEM(__pyx_4, 28, __pyx_k105p);
|
|
|
+ Py_INCREF(__pyx_k106p);
|
|
|
+ PyList_SET_ITEM(__pyx_4, 29, __pyx_k106p);
|
|
|
+ Py_INCREF(__pyx_k107p);
|
|
|
+ PyList_SET_ITEM(__pyx_4, 30, __pyx_k107p);
|
|
|
+ Py_INCREF(__pyx_k108p);
|
|
|
+ PyList_SET_ITEM(__pyx_4, 31, __pyx_k108p);
|
|
|
+ Py_INCREF(__pyx_k109p);
|
|
|
+ PyList_SET_ITEM(__pyx_4, 32, __pyx_k109p);
|
|
|
+ __pyx_8 = PyTuple_New(1); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 427; goto __pyx_L1;}
|
|
|
+ PyTuple_SET_ITEM(__pyx_8, 0, __pyx_4);
|
|
|
+ __pyx_4 = 0;
|
|
|
+ __pyx_2 = PyObject_CallObject(__pyx_6, __pyx_8); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 427; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_6); __pyx_6 = 0;
|
|
|
+ Py_DECREF(__pyx_8); __pyx_8 = 0;
|
|
|
+ __pyx_1 = PyNumber_Add(__pyx_2, __pyx_k110p); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 461; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_DECREF(__pyx_v_epilogue);
|
|
|
+ __pyx_v_epilogue = __pyx_1;
|
|
|
+ __pyx_1 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":462 */
|
|
|
+ __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 462; goto __pyx_L1;}
|
|
|
+ Py_INCREF(__pyx_v_epilogue);
|
|
|
+ PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_epilogue);
|
|
|
+ __pyx_7 = PyObject_CallObject(__pyx_v_write, __pyx_3); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 462; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ Py_DECREF(__pyx_7); __pyx_7 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":465 */
|
|
|
+ __pyx_4 = PyObject_GetAttr(__pyx_v_f, __pyx_n_close); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 465; goto __pyx_L1;}
|
|
|
+ __pyx_6 = PyTuple_New(0); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 465; goto __pyx_L1;}
|
|
|
+ __pyx_8 = PyObject_CallObject(__pyx_4, __pyx_6); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 465; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ Py_DECREF(__pyx_6); __pyx_6 = 0;
|
|
|
+ Py_DECREF(__pyx_8); __pyx_8 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":469 */
|
|
|
+ /*try:*/ {
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":470 */
|
|
|
+ __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_os); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 470; goto __pyx_L26;}
|
|
|
+ __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_unlink); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 470; goto __pyx_L26;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ __pyx_3 = PyObject_GetAttr(__pyx_v_parser, __pyx_n_flexFile); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 470; goto __pyx_L26;}
|
|
|
+ __pyx_7 = PyTuple_New(1); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 470; goto __pyx_L26;}
|
|
|
+ PyTuple_SET_ITEM(__pyx_7, 0, __pyx_3);
|
|
|
+ __pyx_3 = 0;
|
|
|
+ __pyx_4 = PyObject_CallObject(__pyx_1, __pyx_7); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 470; goto __pyx_L26;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_DECREF(__pyx_7); __pyx_7 = 0;
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ }
|
|
|
+ goto __pyx_L27;
|
|
|
+ __pyx_L26:;
|
|
|
+ Py_XDECREF(__pyx_6); __pyx_6 = 0;
|
|
|
+ Py_XDECREF(__pyx_8); __pyx_8 = 0;
|
|
|
+ Py_XDECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_XDECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ Py_XDECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_XDECREF(__pyx_7); __pyx_7 = 0;
|
|
|
+ Py_XDECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":471 */
|
|
|
+ /*except:*/ {
|
|
|
+ __Pyx_AddTraceback("bison_.buildLib");
|
|
|
+ __pyx_6 = __Pyx_GetExcValue(); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 471; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_6); __pyx_6 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":472 */
|
|
|
+ goto __pyx_L27;
|
|
|
+ }
|
|
|
+ __pyx_L27:;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":473 */
|
|
|
+ __pyx_8 = PyObject_GetAttr(__pyx_v_gLex, __pyx_n_split); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 473; goto __pyx_L1;}
|
|
|
+ __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 473; goto __pyx_L1;}
|
|
|
+ Py_INCREF(__pyx_k111p);
|
|
|
+ PyTuple_SET_ITEM(__pyx_2, 0, __pyx_k111p);
|
|
|
+ __pyx_3 = PyObject_CallObject(__pyx_8, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 473; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_8); __pyx_8 = 0;
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_DECREF(__pyx_v_lexLines);
|
|
|
+ __pyx_v_lexLines = __pyx_3;
|
|
|
+ __pyx_3 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":474 */
|
|
|
+ __pyx_1 = PyList_New(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 474; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_v_tmp);
|
|
|
+ __pyx_v_tmp = __pyx_1;
|
|
|
+ __pyx_1 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":475 */
|
|
|
+ __pyx_7 = PyObject_GetIter(__pyx_v_lexLines); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 475; goto __pyx_L1;}
|
|
|
+ for (;;) {
|
|
|
+ __pyx_L28:;
|
|
|
+ __pyx_4 = PyIter_Next(__pyx_7);
|
|
|
+ if (!__pyx_4) {
|
|
|
+ if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 475; goto __pyx_L1;}
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ Py_DECREF(__pyx_v_line);
|
|
|
+ __pyx_v_line = __pyx_4;
|
|
|
+ __pyx_4 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":476 */
|
|
|
+ __pyx_6 = PyObject_GetAttr(__pyx_v_tmp, __pyx_n_append); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 476; goto __pyx_L1;}
|
|
|
+ __pyx_8 = PyObject_GetAttr(__pyx_v_line, __pyx_n_strip); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 476; goto __pyx_L1;}
|
|
|
+ __pyx_2 = PyTuple_New(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 476; goto __pyx_L1;}
|
|
|
+ __pyx_3 = PyObject_CallObject(__pyx_8, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 476; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_8); __pyx_8 = 0;
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 476; goto __pyx_L1;}
|
|
|
+ PyTuple_SET_ITEM(__pyx_1, 0, __pyx_3);
|
|
|
+ __pyx_3 = 0;
|
|
|
+ __pyx_4 = PyObject_CallObject(__pyx_6, __pyx_1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 476; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_6); __pyx_6 = 0;
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ }
|
|
|
+ __pyx_L29:;
|
|
|
+ Py_DECREF(__pyx_7); __pyx_7 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":477 */
|
|
|
+ __pyx_8 = __Pyx_GetName(__pyx_b, __pyx_n_open); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 477; goto __pyx_L1;}
|
|
|
+ __pyx_2 = PyObject_GetAttr(__pyx_v_parser, __pyx_n_flexFile); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 477; goto __pyx_L1;}
|
|
|
+ __pyx_3 = PyTuple_New(2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 477; goto __pyx_L1;}
|
|
|
+ PyTuple_SET_ITEM(__pyx_3, 0, __pyx_2);
|
|
|
+ Py_INCREF(__pyx_n_w);
|
|
|
+ PyTuple_SET_ITEM(__pyx_3, 1, __pyx_n_w);
|
|
|
+ __pyx_2 = 0;
|
|
|
+ __pyx_6 = PyObject_CallObject(__pyx_8, __pyx_3); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 477; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_8); __pyx_8 = 0;
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ Py_DECREF(__pyx_v_f);
|
|
|
+ __pyx_v_f = __pyx_6;
|
|
|
+ __pyx_6 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":478 */
|
|
|
+ __pyx_1 = PyObject_GetAttr(__pyx_v_f, __pyx_n_write); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 478; goto __pyx_L1;}
|
|
|
+ __pyx_4 = PyObject_GetAttr(__pyx_k113p, __pyx_n_join); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 478; goto __pyx_L1;}
|
|
|
+ __pyx_7 = PyTuple_New(1); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 478; goto __pyx_L1;}
|
|
|
+ Py_INCREF(__pyx_v_tmp);
|
|
|
+ PyTuple_SET_ITEM(__pyx_7, 0, __pyx_v_tmp);
|
|
|
+ __pyx_2 = PyObject_CallObject(__pyx_4, __pyx_7); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 478; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ Py_DECREF(__pyx_7); __pyx_7 = 0;
|
|
|
+ __pyx_8 = PyNumber_Add(__pyx_2, __pyx_k114p); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 478; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 478; goto __pyx_L1;}
|
|
|
+ PyTuple_SET_ITEM(__pyx_3, 0, __pyx_8);
|
|
|
+ __pyx_8 = 0;
|
|
|
+ __pyx_6 = PyObject_CallObject(__pyx_1, __pyx_3); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 478; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ Py_DECREF(__pyx_6); __pyx_6 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":479 */
|
|
|
+ __pyx_4 = PyObject_GetAttr(__pyx_v_f, __pyx_n_close); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 479; goto __pyx_L1;}
|
|
|
+ __pyx_7 = PyTuple_New(0); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 479; goto __pyx_L1;}
|
|
|
+ __pyx_2 = PyObject_CallObject(__pyx_4, __pyx_7); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 479; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ Py_DECREF(__pyx_7); __pyx_7 = 0;
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":482 */
|
|
|
+ __pyx_8 = __Pyx_GetName(__pyx_m, __pyx_n_distutils); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 482; goto __pyx_L1;}
|
|
|
+ __pyx_1 = PyObject_GetAttr(__pyx_8, __pyx_n_ccompiler); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 482; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_8); __pyx_8 = 0;
|
|
|
+ __pyx_3 = PyObject_GetAttr(__pyx_1, __pyx_n_new_compiler); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 482; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ __pyx_6 = PyTuple_New(0); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 482; goto __pyx_L1;}
|
|
|
+ __pyx_4 = PyDict_New(); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 482; goto __pyx_L1;}
|
|
|
+ __pyx_7 = PyObject_GetAttr(__pyx_v_parser, __pyx_n_verbose); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 482; goto __pyx_L1;}
|
|
|
+ if (PyDict_SetItem(__pyx_4, __pyx_n_verbose, __pyx_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 482; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_7); __pyx_7 = 0;
|
|
|
+ __pyx_2 = PyEval_CallObjectWithKeywords(__pyx_3, __pyx_6, __pyx_4); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 482; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ Py_DECREF(__pyx_6); __pyx_6 = 0;
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ Py_DECREF(__pyx_v_ccompiler);
|
|
|
+ __pyx_v_ccompiler = __pyx_2;
|
|
|
+ __pyx_2 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":483 */
|
|
|
+ __pyx_8 = PyObject_GetAttr(__pyx_v_ccompiler, __pyx_n_set_include_dirs); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 483; goto __pyx_L1;}
|
|
|
+ __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_distutils); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 483; goto __pyx_L1;}
|
|
|
+ __pyx_7 = PyObject_GetAttr(__pyx_1, __pyx_n_sysconfig); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 483; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ __pyx_3 = PyObject_GetAttr(__pyx_7, __pyx_n_get_python_inc); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 483; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_7); __pyx_7 = 0;
|
|
|
+ __pyx_6 = PyTuple_New(0); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 483; goto __pyx_L1;}
|
|
|
+ __pyx_4 = PyObject_CallObject(__pyx_3, __pyx_6); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 483; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ Py_DECREF(__pyx_6); __pyx_6 = 0;
|
|
|
+ __pyx_2 = PyList_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 483; goto __pyx_L1;}
|
|
|
+ PyList_SET_ITEM(__pyx_2, 0, __pyx_4);
|
|
|
+ __pyx_4 = 0;
|
|
|
+ __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 483; goto __pyx_L1;}
|
|
|
+ PyTuple_SET_ITEM(__pyx_1, 0, __pyx_2);
|
|
|
+ __pyx_2 = 0;
|
|
|
+ __pyx_7 = PyObject_CallObject(__pyx_8, __pyx_1); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 483; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_8); __pyx_8 = 0;
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_DECREF(__pyx_7); __pyx_7 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":488 */
|
|
|
+ __pyx_3 = PyObject_GetAttr(__pyx_v_parser, __pyx_n_bisonCmd); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 488; goto __pyx_L1;}
|
|
|
+ __pyx_6 = PyObject_GetAttr(__pyx_v_parser, __pyx_n_bisonFile); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 488; goto __pyx_L1;}
|
|
|
+ __pyx_4 = PyList_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 488; goto __pyx_L1;}
|
|
|
+ PyList_SET_ITEM(__pyx_4, 0, __pyx_6);
|
|
|
+ __pyx_6 = 0;
|
|
|
+ __pyx_2 = PyNumber_Add(__pyx_3, __pyx_4); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 488; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ Py_DECREF(__pyx_v_bisonCmd);
|
|
|
+ __pyx_v_bisonCmd = __pyx_2;
|
|
|
+ __pyx_2 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":489 */
|
|
|
+ __pyx_8 = PyObject_GetAttr(__pyx_v_parser, __pyx_n_verbose); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 489; goto __pyx_L1;}
|
|
|
+ __pyx_5 = PyObject_IsTrue(__pyx_8); if (__pyx_5 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 489; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_8); __pyx_8 = 0;
|
|
|
+ if (__pyx_5) {
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":490 */
|
|
|
+ __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_repr); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 490; goto __pyx_L1;}
|
|
|
+ __pyx_7 = PyTuple_New(1); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 490; goto __pyx_L1;}
|
|
|
+ Py_INCREF(__pyx_v_bisonCmd);
|
|
|
+ PyTuple_SET_ITEM(__pyx_7, 0, __pyx_v_bisonCmd);
|
|
|
+ __pyx_6 = PyObject_CallObject(__pyx_1, __pyx_7); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 490; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_DECREF(__pyx_7); __pyx_7 = 0;
|
|
|
+ __pyx_3 = PyNumber_Remainder(__pyx_k116p, __pyx_6); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 490; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_6); __pyx_6 = 0;
|
|
|
+ if (__Pyx_PrintItem(__pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 490; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ if (__Pyx_PrintNewline() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 490; goto __pyx_L1;}
|
|
|
+ goto __pyx_L30;
|
|
|
+ }
|
|
|
+ __pyx_L30:;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":491 */
|
|
|
+ __pyx_4 = PyObject_GetAttr(__pyx_v_ccompiler, __pyx_n_spawn); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 491; goto __pyx_L1;}
|
|
|
+ __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 491; goto __pyx_L1;}
|
|
|
+ Py_INCREF(__pyx_v_bisonCmd);
|
|
|
+ PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_bisonCmd);
|
|
|
+ __pyx_8 = PyObject_CallObject(__pyx_4, __pyx_2); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 491; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_DECREF(__pyx_8); __pyx_8 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":493 */
|
|
|
+ __pyx_1 = PyObject_GetAttr(__pyx_v_parser, __pyx_n_verbose); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 493; goto __pyx_L1;}
|
|
|
+ __pyx_5 = PyObject_IsTrue(__pyx_1); if (__pyx_5 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 493; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ if (__pyx_5) {
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":494 */
|
|
|
+ if (__Pyx_PrintItem(__pyx_k117p) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 494; goto __pyx_L1;}
|
|
|
+ if (__Pyx_PrintNewline() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 494; goto __pyx_L1;}
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":495 */
|
|
|
+ __pyx_7 = PyObject_GetAttr(__pyx_v_parser, __pyx_n_bisonCFile); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 495; goto __pyx_L1;}
|
|
|
+ if (__Pyx_PrintItem(__pyx_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 495; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_7); __pyx_7 = 0;
|
|
|
+ if (__Pyx_PrintItem(__pyx_k118p) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 495; goto __pyx_L1;}
|
|
|
+ __pyx_6 = PyObject_GetAttr(__pyx_v_parser, __pyx_n_bisonCFile1); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 495; goto __pyx_L1;}
|
|
|
+ if (__Pyx_PrintItem(__pyx_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 495; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_6); __pyx_6 = 0;
|
|
|
+ if (__Pyx_PrintNewline() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 495; goto __pyx_L1;}
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":496 */
|
|
|
+ __pyx_3 = PyObject_GetAttr(__pyx_v_parser, __pyx_n_bisonHFile); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 496; goto __pyx_L1;}
|
|
|
+ if (__Pyx_PrintItem(__pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 496; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ if (__Pyx_PrintItem(__pyx_k119p) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 496; goto __pyx_L1;}
|
|
|
+ __pyx_4 = PyObject_GetAttr(__pyx_v_parser, __pyx_n_bisonHFile1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 496; goto __pyx_L1;}
|
|
|
+ if (__Pyx_PrintItem(__pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 496; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ if (__Pyx_PrintNewline() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 496; goto __pyx_L1;}
|
|
|
+ goto __pyx_L31;
|
|
|
+ }
|
|
|
+ __pyx_L31:;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":498 */
|
|
|
+ /*try:*/ {
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":499 */
|
|
|
+ __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_os); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 499; goto __pyx_L32;}
|
|
|
+ __pyx_8 = PyObject_GetAttr(__pyx_2, __pyx_n_unlink); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 499; goto __pyx_L32;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ __pyx_1 = PyObject_GetAttr(__pyx_v_parser, __pyx_n_bisonCFile1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 499; goto __pyx_L32;}
|
|
|
+ __pyx_7 = PyTuple_New(1); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 499; goto __pyx_L32;}
|
|
|
+ PyTuple_SET_ITEM(__pyx_7, 0, __pyx_1);
|
|
|
+ __pyx_1 = 0;
|
|
|
+ __pyx_6 = PyObject_CallObject(__pyx_8, __pyx_7); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 499; goto __pyx_L32;}
|
|
|
+ Py_DECREF(__pyx_8); __pyx_8 = 0;
|
|
|
+ Py_DECREF(__pyx_7); __pyx_7 = 0;
|
|
|
+ Py_DECREF(__pyx_6); __pyx_6 = 0;
|
|
|
+ }
|
|
|
+ goto __pyx_L33;
|
|
|
+ __pyx_L32:;
|
|
|
+ Py_XDECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ Py_XDECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ Py_XDECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_XDECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_XDECREF(__pyx_8); __pyx_8 = 0;
|
|
|
+ Py_XDECREF(__pyx_7); __pyx_7 = 0;
|
|
|
+ Py_XDECREF(__pyx_6); __pyx_6 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":500 */
|
|
|
+ /*except:*/ {
|
|
|
+ __Pyx_AddTraceback("bison_.buildLib");
|
|
|
+ __pyx_3 = __Pyx_GetExcValue(); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 500; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":501 */
|
|
|
+ goto __pyx_L33;
|
|
|
+ }
|
|
|
+ __pyx_L33:;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":502 */
|
|
|
+ __pyx_4 = __Pyx_GetName(__pyx_m, __pyx_n_os); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 502; goto __pyx_L1;}
|
|
|
+ __pyx_2 = PyObject_GetAttr(__pyx_4, __pyx_n_rename); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 502; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ __pyx_1 = PyObject_GetAttr(__pyx_v_parser, __pyx_n_bisonCFile); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 502; goto __pyx_L1;}
|
|
|
+ __pyx_8 = PyObject_GetAttr(__pyx_v_parser, __pyx_n_bisonCFile1); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 502; goto __pyx_L1;}
|
|
|
+ __pyx_7 = PyTuple_New(2); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 502; goto __pyx_L1;}
|
|
|
+ PyTuple_SET_ITEM(__pyx_7, 0, __pyx_1);
|
|
|
+ PyTuple_SET_ITEM(__pyx_7, 1, __pyx_8);
|
|
|
+ __pyx_1 = 0;
|
|
|
+ __pyx_8 = 0;
|
|
|
+ __pyx_6 = PyObject_CallObject(__pyx_2, __pyx_7); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 502; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_DECREF(__pyx_7); __pyx_7 = 0;
|
|
|
+ Py_DECREF(__pyx_6); __pyx_6 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":503 */
|
|
|
+ /*try:*/ {
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":504 */
|
|
|
+ __pyx_3 = __Pyx_GetName(__pyx_m, __pyx_n_os); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 504; goto __pyx_L34;}
|
|
|
+ __pyx_4 = PyObject_GetAttr(__pyx_3, __pyx_n_unlink); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 504; goto __pyx_L34;}
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ __pyx_1 = PyObject_GetAttr(__pyx_v_parser, __pyx_n_bisonHFile1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 504; goto __pyx_L34;}
|
|
|
+ __pyx_8 = PyTuple_New(1); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 504; goto __pyx_L34;}
|
|
|
+ PyTuple_SET_ITEM(__pyx_8, 0, __pyx_1);
|
|
|
+ __pyx_1 = 0;
|
|
|
+ __pyx_2 = PyObject_CallObject(__pyx_4, __pyx_8); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 504; goto __pyx_L34;}
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ Py_DECREF(__pyx_8); __pyx_8 = 0;
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ }
|
|
|
+ goto __pyx_L35;
|
|
|
+ __pyx_L34:;
|
|
|
+ Py_XDECREF(__pyx_7); __pyx_7 = 0;
|
|
|
+ Py_XDECREF(__pyx_6); __pyx_6 = 0;
|
|
|
+ Py_XDECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ Py_XDECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_XDECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ Py_XDECREF(__pyx_8); __pyx_8 = 0;
|
|
|
+ Py_XDECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":505 */
|
|
|
+ /*except:*/ {
|
|
|
+ __Pyx_AddTraceback("bison_.buildLib");
|
|
|
+ __pyx_7 = __Pyx_GetExcValue(); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 505; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_7); __pyx_7 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":506 */
|
|
|
+ goto __pyx_L35;
|
|
|
+ }
|
|
|
+ __pyx_L35:;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":507 */
|
|
|
+ __pyx_6 = __Pyx_GetName(__pyx_m, __pyx_n_os); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 507; goto __pyx_L1;}
|
|
|
+ __pyx_3 = PyObject_GetAttr(__pyx_6, __pyx_n_rename); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 507; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_6); __pyx_6 = 0;
|
|
|
+ __pyx_1 = PyObject_GetAttr(__pyx_v_parser, __pyx_n_bisonHFile); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 507; goto __pyx_L1;}
|
|
|
+ __pyx_4 = PyObject_GetAttr(__pyx_v_parser, __pyx_n_bisonHFile1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 507; goto __pyx_L1;}
|
|
|
+ __pyx_8 = PyTuple_New(2); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 507; goto __pyx_L1;}
|
|
|
+ PyTuple_SET_ITEM(__pyx_8, 0, __pyx_1);
|
|
|
+ PyTuple_SET_ITEM(__pyx_8, 1, __pyx_4);
|
|
|
+ __pyx_1 = 0;
|
|
|
+ __pyx_4 = 0;
|
|
|
+ __pyx_2 = PyObject_CallObject(__pyx_3, __pyx_8); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 507; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ Py_DECREF(__pyx_8); __pyx_8 = 0;
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":512 */
|
|
|
+ __pyx_7 = PyObject_GetAttr(__pyx_v_ccompiler, __pyx_n_spawn); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 512; goto __pyx_L1;}
|
|
|
+ __pyx_6 = PyObject_GetAttr(__pyx_v_parser, __pyx_n_flexCmd); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 512; goto __pyx_L1;}
|
|
|
+ __pyx_1 = PyObject_GetAttr(__pyx_v_parser, __pyx_n_flexFile); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 512; goto __pyx_L1;}
|
|
|
+ __pyx_4 = PyList_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 512; goto __pyx_L1;}
|
|
|
+ PyList_SET_ITEM(__pyx_4, 0, __pyx_1);
|
|
|
+ __pyx_1 = 0;
|
|
|
+ __pyx_3 = PyNumber_Add(__pyx_6, __pyx_4); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 512; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_6); __pyx_6 = 0;
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ __pyx_8 = PyTuple_New(1); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 512; goto __pyx_L1;}
|
|
|
+ PyTuple_SET_ITEM(__pyx_8, 0, __pyx_3);
|
|
|
+ __pyx_3 = 0;
|
|
|
+ __pyx_2 = PyObject_CallObject(__pyx_7, __pyx_8); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 512; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_7); __pyx_7 = 0;
|
|
|
+ Py_DECREF(__pyx_8); __pyx_8 = 0;
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":513 */
|
|
|
+ /*try:*/ {
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":514 */
|
|
|
+ __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_os); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 514; goto __pyx_L36;}
|
|
|
+ __pyx_6 = PyObject_GetAttr(__pyx_1, __pyx_n_unlink); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 514; goto __pyx_L36;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ __pyx_4 = PyObject_GetAttr(__pyx_v_parser, __pyx_n_flexCFile1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 514; goto __pyx_L36;}
|
|
|
+ __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 514; goto __pyx_L36;}
|
|
|
+ PyTuple_SET_ITEM(__pyx_3, 0, __pyx_4);
|
|
|
+ __pyx_4 = 0;
|
|
|
+ __pyx_7 = PyObject_CallObject(__pyx_6, __pyx_3); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 514; goto __pyx_L36;}
|
|
|
+ Py_DECREF(__pyx_6); __pyx_6 = 0;
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ Py_DECREF(__pyx_7); __pyx_7 = 0;
|
|
|
+ }
|
|
|
+ goto __pyx_L37;
|
|
|
+ __pyx_L36:;
|
|
|
+ Py_XDECREF(__pyx_8); __pyx_8 = 0;
|
|
|
+ Py_XDECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_XDECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_XDECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ Py_XDECREF(__pyx_6); __pyx_6 = 0;
|
|
|
+ Py_XDECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ Py_XDECREF(__pyx_7); __pyx_7 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":515 */
|
|
|
+ /*except:*/ {
|
|
|
+ __Pyx_AddTraceback("bison_.buildLib");
|
|
|
+ __pyx_8 = __Pyx_GetExcValue(); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 515; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_8); __pyx_8 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":516 */
|
|
|
+ goto __pyx_L37;
|
|
|
+ }
|
|
|
+ __pyx_L37:;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":517 */
|
|
|
+ __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_os); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 517; goto __pyx_L1;}
|
|
|
+ __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_rename); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 517; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ __pyx_4 = PyObject_GetAttr(__pyx_v_parser, __pyx_n_flexCFile); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 517; goto __pyx_L1;}
|
|
|
+ __pyx_6 = PyObject_GetAttr(__pyx_v_parser, __pyx_n_flexCFile1); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 517; goto __pyx_L1;}
|
|
|
+ __pyx_3 = PyTuple_New(2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 517; goto __pyx_L1;}
|
|
|
+ PyTuple_SET_ITEM(__pyx_3, 0, __pyx_4);
|
|
|
+ PyTuple_SET_ITEM(__pyx_3, 1, __pyx_6);
|
|
|
+ __pyx_4 = 0;
|
|
|
+ __pyx_6 = 0;
|
|
|
+ __pyx_7 = PyObject_CallObject(__pyx_1, __pyx_3); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 517; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ Py_DECREF(__pyx_7); __pyx_7 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":531 */
|
|
|
+ __pyx_8 = PyObject_GetAttr(__pyx_v_ccompiler, __pyx_n_compile); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 531; goto __pyx_L1;}
|
|
|
+ __pyx_2 = PyObject_GetAttr(__pyx_v_parser, __pyx_n_bisonCFile1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 531; goto __pyx_L1;}
|
|
|
+ __pyx_4 = PyObject_GetAttr(__pyx_v_parser, __pyx_n_flexCFile1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 531; goto __pyx_L1;}
|
|
|
+ __pyx_6 = PyList_New(2); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 531; goto __pyx_L1;}
|
|
|
+ PyList_SET_ITEM(__pyx_6, 0, __pyx_2);
|
|
|
+ PyList_SET_ITEM(__pyx_6, 1, __pyx_4);
|
|
|
+ __pyx_2 = 0;
|
|
|
+ __pyx_4 = 0;
|
|
|
+ __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 531; goto __pyx_L1;}
|
|
|
+ PyTuple_SET_ITEM(__pyx_1, 0, __pyx_6);
|
|
|
+ __pyx_6 = 0;
|
|
|
+ __pyx_3 = PyObject_CallObject(__pyx_8, __pyx_1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 531; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_8); __pyx_8 = 0;
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_DECREF(__pyx_v_objs);
|
|
|
+ __pyx_v_objs = __pyx_3;
|
|
|
+ __pyx_3 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":532 */
|
|
|
+ __pyx_7 = PyObject_GetAttr(__pyx_v_parser, __pyx_n_bisonEngineLibName); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 532; goto __pyx_L1;}
|
|
|
+ __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_imp); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 532; goto __pyx_L1;}
|
|
|
+ __pyx_4 = PyObject_GetAttr(__pyx_2, __pyx_n_get_suffixes); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 532; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ __pyx_6 = PyTuple_New(0); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 532; goto __pyx_L1;}
|
|
|
+ __pyx_8 = PyObject_CallObject(__pyx_4, __pyx_6); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 532; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ Py_DECREF(__pyx_6); __pyx_6 = 0;
|
|
|
+ __pyx_1 = PyInt_FromLong(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 532; goto __pyx_L1;}
|
|
|
+ __pyx_3 = PyObject_GetItem(__pyx_8, __pyx_1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 532; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_8); __pyx_8 = 0;
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ __pyx_2 = PyInt_FromLong(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 532; goto __pyx_L1;}
|
|
|
+ __pyx_4 = PyObject_GetItem(__pyx_3, __pyx_2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 532; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ __pyx_6 = PyNumber_Add(__pyx_7, __pyx_4); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 532; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_7); __pyx_7 = 0;
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ Py_DECREF(__pyx_v_libFileName);
|
|
|
+ __pyx_v_libFileName = __pyx_6;
|
|
|
+ __pyx_6 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":533 */
|
|
|
+ __pyx_8 = __Pyx_GetName(__pyx_m, __pyx_n_os); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 533; goto __pyx_L1;}
|
|
|
+ __pyx_1 = PyObject_GetAttr(__pyx_8, __pyx_n_path); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 533; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_8); __pyx_8 = 0;
|
|
|
+ __pyx_3 = PyObject_GetAttr(__pyx_1, __pyx_n_isfile); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 533; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ __pyx_2 = PyNumber_Add(__pyx_v_libFileName, __pyx_k120p); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 533; goto __pyx_L1;}
|
|
|
+ __pyx_7 = PyTuple_New(1); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 533; goto __pyx_L1;}
|
|
|
+ PyTuple_SET_ITEM(__pyx_7, 0, __pyx_2);
|
|
|
+ __pyx_2 = 0;
|
|
|
+ __pyx_4 = PyObject_CallObject(__pyx_3, __pyx_7); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 533; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ Py_DECREF(__pyx_7); __pyx_7 = 0;
|
|
|
+ __pyx_5 = PyObject_IsTrue(__pyx_4); if (__pyx_5 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 533; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ if (__pyx_5) {
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":534 */
|
|
|
+ /*try:*/ {
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":535 */
|
|
|
+ __pyx_6 = __Pyx_GetName(__pyx_m, __pyx_n_os); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 535; goto __pyx_L39;}
|
|
|
+ __pyx_8 = PyObject_GetAttr(__pyx_6, __pyx_n_unlink); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 535; goto __pyx_L39;}
|
|
|
+ Py_DECREF(__pyx_6); __pyx_6 = 0;
|
|
|
+ __pyx_1 = PyNumber_Add(__pyx_v_libFileName, __pyx_k121p); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 535; goto __pyx_L39;}
|
|
|
+ __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 535; goto __pyx_L39;}
|
|
|
+ PyTuple_SET_ITEM(__pyx_2, 0, __pyx_1);
|
|
|
+ __pyx_1 = 0;
|
|
|
+ __pyx_3 = PyObject_CallObject(__pyx_8, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 535; goto __pyx_L39;}
|
|
|
+ Py_DECREF(__pyx_8); __pyx_8 = 0;
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ }
|
|
|
+ goto __pyx_L40;
|
|
|
+ __pyx_L39:;
|
|
|
+ Py_XDECREF(__pyx_7); __pyx_7 = 0;
|
|
|
+ Py_XDECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ Py_XDECREF(__pyx_6); __pyx_6 = 0;
|
|
|
+ Py_XDECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_XDECREF(__pyx_8); __pyx_8 = 0;
|
|
|
+ Py_XDECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_XDECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":536 */
|
|
|
+ /*except:*/ {
|
|
|
+ __Pyx_AddTraceback("bison_.buildLib");
|
|
|
+ __pyx_7 = __Pyx_GetExcValue(); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 536; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_7); __pyx_7 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":537 */
|
|
|
+ goto __pyx_L40;
|
|
|
+ }
|
|
|
+ __pyx_L40:;
|
|
|
+ goto __pyx_L38;
|
|
|
+ }
|
|
|
+ __pyx_L38:;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":538 */
|
|
|
+ __pyx_4 = __Pyx_GetName(__pyx_m, __pyx_n_os); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 538; goto __pyx_L1;}
|
|
|
+ __pyx_6 = PyObject_GetAttr(__pyx_4, __pyx_n_path); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 538; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ __pyx_1 = PyObject_GetAttr(__pyx_6, __pyx_n_isfile); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 538; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_6); __pyx_6 = 0;
|
|
|
+ __pyx_8 = PyTuple_New(1); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 538; goto __pyx_L1;}
|
|
|
+ Py_INCREF(__pyx_v_libFileName);
|
|
|
+ PyTuple_SET_ITEM(__pyx_8, 0, __pyx_v_libFileName);
|
|
|
+ __pyx_2 = PyObject_CallObject(__pyx_1, __pyx_8); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 538; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_DECREF(__pyx_8); __pyx_8 = 0;
|
|
|
+ __pyx_5 = PyObject_IsTrue(__pyx_2); if (__pyx_5 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 538; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ if (__pyx_5) {
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":539 */
|
|
|
+ __pyx_3 = __Pyx_GetName(__pyx_m, __pyx_n_os); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 539; goto __pyx_L1;}
|
|
|
+ __pyx_7 = PyObject_GetAttr(__pyx_3, __pyx_n_rename); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 539; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ __pyx_4 = PyNumber_Add(__pyx_v_libFileName, __pyx_k122p); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 539; goto __pyx_L1;}
|
|
|
+ __pyx_6 = PyTuple_New(2); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 539; goto __pyx_L1;}
|
|
|
+ Py_INCREF(__pyx_v_libFileName);
|
|
|
+ PyTuple_SET_ITEM(__pyx_6, 0, __pyx_v_libFileName);
|
|
|
+ PyTuple_SET_ITEM(__pyx_6, 1, __pyx_4);
|
|
|
+ __pyx_4 = 0;
|
|
|
+ __pyx_1 = PyObject_CallObject(__pyx_7, __pyx_6); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 539; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_7); __pyx_7 = 0;
|
|
|
+ Py_DECREF(__pyx_6); __pyx_6 = 0;
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ goto __pyx_L41;
|
|
|
+ }
|
|
|
+ __pyx_L41:;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":540 */
|
|
|
+ __pyx_8 = PyObject_GetAttr(__pyx_v_ccompiler, __pyx_n_link_shared_object); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 540; goto __pyx_L1;}
|
|
|
+ __pyx_2 = PyTuple_New(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 540; goto __pyx_L1;}
|
|
|
+ Py_INCREF(__pyx_v_objs);
|
|
|
+ PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_objs);
|
|
|
+ Py_INCREF(__pyx_v_libFileName);
|
|
|
+ PyTuple_SET_ITEM(__pyx_2, 1, __pyx_v_libFileName);
|
|
|
+ __pyx_3 = PyObject_CallObject(__pyx_8, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 540; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_8); __pyx_8 = 0;
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":547 */
|
|
|
+ __pyx_4 = PySequence_GetSlice(__pyx_v_objs, 0, 0x7fffffff); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 547; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_v_hitlist);
|
|
|
+ __pyx_v_hitlist = __pyx_4;
|
|
|
+ __pyx_4 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":548 */
|
|
|
+ __pyx_7 = PyObject_GetAttr(__pyx_v_hitlist, __pyx_n_append); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 548; goto __pyx_L1;}
|
|
|
+ __pyx_6 = PyTuple_New(1); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 548; goto __pyx_L1;}
|
|
|
+ Py_INCREF(__pyx_k123p);
|
|
|
+ PyTuple_SET_ITEM(__pyx_6, 0, __pyx_k123p);
|
|
|
+ __pyx_1 = PyObject_CallObject(__pyx_7, __pyx_6); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 548; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_7); __pyx_7 = 0;
|
|
|
+ Py_DECREF(__pyx_6); __pyx_6 = 0;
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":549 */
|
|
|
+ __pyx_8 = __Pyx_GetName(__pyx_m, __pyx_n_os); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 549; goto __pyx_L1;}
|
|
|
+ __pyx_2 = PyObject_GetAttr(__pyx_8, __pyx_n_path); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 549; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_8); __pyx_8 = 0;
|
|
|
+ __pyx_3 = PyObject_GetAttr(__pyx_2, __pyx_n_isfile); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 549; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 549; goto __pyx_L1;}
|
|
|
+ Py_INCREF(__pyx_v_libFileName);
|
|
|
+ PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_libFileName);
|
|
|
+ __pyx_7 = PyObject_CallObject(__pyx_3, __pyx_4); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 549; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ __pyx_5 = PyObject_IsTrue(__pyx_7); if (__pyx_5 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 549; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_7); __pyx_7 = 0;
|
|
|
+ if (__pyx_5) {
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":550 */
|
|
|
+ __pyx_6 = PyList_New(8); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 550; goto __pyx_L1;}
|
|
|
+ Py_INCREF(__pyx_n_bisonFile);
|
|
|
+ PyList_SET_ITEM(__pyx_6, 0, __pyx_n_bisonFile);
|
|
|
+ Py_INCREF(__pyx_n_bisonCFile);
|
|
|
+ PyList_SET_ITEM(__pyx_6, 1, __pyx_n_bisonCFile);
|
|
|
+ Py_INCREF(__pyx_n_bisonHFile);
|
|
|
+ PyList_SET_ITEM(__pyx_6, 2, __pyx_n_bisonHFile);
|
|
|
+ Py_INCREF(__pyx_n_bisonCFile1);
|
|
|
+ PyList_SET_ITEM(__pyx_6, 3, __pyx_n_bisonCFile1);
|
|
|
+ Py_INCREF(__pyx_n_bisonHFile1);
|
|
|
+ PyList_SET_ITEM(__pyx_6, 4, __pyx_n_bisonHFile1);
|
|
|
+ Py_INCREF(__pyx_n_flexFile);
|
|
|
+ PyList_SET_ITEM(__pyx_6, 5, __pyx_n_flexFile);
|
|
|
+ Py_INCREF(__pyx_n_flexCFile);
|
|
|
+ PyList_SET_ITEM(__pyx_6, 6, __pyx_n_flexCFile);
|
|
|
+ Py_INCREF(__pyx_n_flexCFile1);
|
|
|
+ PyList_SET_ITEM(__pyx_6, 7, __pyx_n_flexCFile1);
|
|
|
+ __pyx_1 = PyNumber_Add(__pyx_6, __pyx_v_objs); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 553; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_6); __pyx_6 = 0;
|
|
|
+ __pyx_8 = PyObject_GetIter(__pyx_1); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 550; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ for (;;) {
|
|
|
+ __pyx_L43:;
|
|
|
+ __pyx_2 = PyIter_Next(__pyx_8);
|
|
|
+ if (!__pyx_2) {
|
|
|
+ if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 550; goto __pyx_L1;}
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ Py_DECREF(__pyx_v_name);
|
|
|
+ __pyx_v_name = __pyx_2;
|
|
|
+ __pyx_2 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":554 */
|
|
|
+ __pyx_3 = __Pyx_GetName(__pyx_b, __pyx_n_getattr); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 554; goto __pyx_L1;}
|
|
|
+ __pyx_4 = PyTuple_New(3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 554; goto __pyx_L1;}
|
|
|
+ Py_INCREF(__pyx_v_parser);
|
|
|
+ PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_parser);
|
|
|
+ Py_INCREF(__pyx_v_name);
|
|
|
+ PyTuple_SET_ITEM(__pyx_4, 1, __pyx_v_name);
|
|
|
+ Py_INCREF(Py_None);
|
|
|
+ PyTuple_SET_ITEM(__pyx_4, 2, Py_None);
|
|
|
+ __pyx_7 = PyObject_CallObject(__pyx_3, __pyx_4); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 554; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ Py_DECREF(__pyx_v_fname);
|
|
|
+ __pyx_v_fname = __pyx_7;
|
|
|
+ __pyx_7 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":556 */
|
|
|
+ __pyx_6 = __pyx_v_fname;
|
|
|
+ Py_INCREF(__pyx_6);
|
|
|
+ __pyx_5 = PyObject_IsTrue(__pyx_6); if (__pyx_5 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 556; goto __pyx_L1;}
|
|
|
+ if (__pyx_5) {
|
|
|
+ Py_DECREF(__pyx_6); __pyx_6 = 0;
|
|
|
+ __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_os); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 556; goto __pyx_L1;}
|
|
|
+ __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_path); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 556; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ __pyx_3 = PyObject_GetAttr(__pyx_2, __pyx_n_isfile); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 556; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 556; goto __pyx_L1;}
|
|
|
+ Py_INCREF(__pyx_v_fname);
|
|
|
+ PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_fname);
|
|
|
+ __pyx_6 = PyObject_CallObject(__pyx_3, __pyx_4); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 556; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ }
|
|
|
+ __pyx_5 = PyObject_IsTrue(__pyx_6); if (__pyx_5 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 556; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_6); __pyx_6 = 0;
|
|
|
+ if (__pyx_5) {
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":557 */
|
|
|
+ __pyx_7 = PyObject_GetAttr(__pyx_v_hitlist, __pyx_n_append); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 557; goto __pyx_L1;}
|
|
|
+ __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 557; goto __pyx_L1;}
|
|
|
+ Py_INCREF(__pyx_v_fname);
|
|
|
+ PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_fname);
|
|
|
+ __pyx_2 = PyObject_CallObject(__pyx_7, __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 557; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_7); __pyx_7 = 0;
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ goto __pyx_L45;
|
|
|
+ }
|
|
|
+ __pyx_L45:;
|
|
|
+ }
|
|
|
+ __pyx_L44:;
|
|
|
+ Py_DECREF(__pyx_8); __pyx_8 = 0;
|
|
|
+ goto __pyx_L42;
|
|
|
+ }
|
|
|
+ __pyx_L42:;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":558 */
|
|
|
+ __pyx_3 = PyObject_GetAttr(__pyx_v_parser, __pyx_n_keepfiles); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 558; goto __pyx_L1;}
|
|
|
+ __pyx_5 = PyObject_IsTrue(__pyx_3); if (__pyx_5 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 558; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ __pyx_9 = (!__pyx_5);
|
|
|
+ if (__pyx_9) {
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":559 */
|
|
|
+ __pyx_4 = PyObject_GetIter(__pyx_v_hitlist); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 559; goto __pyx_L1;}
|
|
|
+ for (;;) {
|
|
|
+ __pyx_L47:;
|
|
|
+ __pyx_6 = PyIter_Next(__pyx_4);
|
|
|
+ if (!__pyx_6) {
|
|
|
+ if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 559; goto __pyx_L1;}
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ Py_DECREF(__pyx_v_f);
|
|
|
+ __pyx_v_f = __pyx_6;
|
|
|
+ __pyx_6 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":560 */
|
|
|
+ /*try:*/ {
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":561 */
|
|
|
+ __pyx_7 = __Pyx_GetName(__pyx_m, __pyx_n_os); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 561; goto __pyx_L49;}
|
|
|
+ __pyx_1 = PyObject_GetAttr(__pyx_7, __pyx_n_unlink); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 561; goto __pyx_L49;}
|
|
|
+ Py_DECREF(__pyx_7); __pyx_7 = 0;
|
|
|
+ __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 561; goto __pyx_L49;}
|
|
|
+ Py_INCREF(__pyx_v_f);
|
|
|
+ PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_f);
|
|
|
+ __pyx_8 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 561; goto __pyx_L49;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_DECREF(__pyx_8); __pyx_8 = 0;
|
|
|
+ }
|
|
|
+ goto __pyx_L50;
|
|
|
+ __pyx_L49:;
|
|
|
+ Py_XDECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ Py_XDECREF(__pyx_6); __pyx_6 = 0;
|
|
|
+ Py_XDECREF(__pyx_7); __pyx_7 = 0;
|
|
|
+ Py_XDECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_XDECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_XDECREF(__pyx_8); __pyx_8 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":562 */
|
|
|
+ /*except:*/ {
|
|
|
+ __Pyx_AddTraceback("bison_.buildLib");
|
|
|
+ __pyx_3 = __Pyx_GetExcValue(); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 562; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":563 */
|
|
|
+ __pyx_6 = PyNumber_Remainder(__pyx_k132p, __pyx_v_f); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 563; goto __pyx_L1;}
|
|
|
+ if (__Pyx_PrintItem(__pyx_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 563; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_6); __pyx_6 = 0;
|
|
|
+ if (__Pyx_PrintNewline() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 563; goto __pyx_L1;}
|
|
|
+ goto __pyx_L50;
|
|
|
+ }
|
|
|
+ __pyx_L50:;
|
|
|
+ }
|
|
|
+ __pyx_L48:;
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ goto __pyx_L46;
|
|
|
+ }
|
|
|
+ __pyx_L46:;
|
|
|
+
|
|
|
+ __pyx_r = Py_None; Py_INCREF(__pyx_r);
|
|
|
+ goto __pyx_L0;
|
|
|
+ __pyx_L1:;
|
|
|
+ Py_XDECREF(__pyx_1);
|
|
|
+ Py_XDECREF(__pyx_2);
|
|
|
+ Py_XDECREF(__pyx_3);
|
|
|
+ Py_XDECREF(__pyx_4);
|
|
|
+ Py_XDECREF(__pyx_6);
|
|
|
+ Py_XDECREF(__pyx_7);
|
|
|
+ Py_XDECREF(__pyx_8);
|
|
|
+ __Pyx_AddTraceback("bison_.ParserEngine.buildLib");
|
|
|
+ __pyx_r = 0;
|
|
|
+ __pyx_L0:;
|
|
|
+ Py_DECREF(__pyx_v_parser);
|
|
|
+ Py_DECREF(__pyx_v_attribs);
|
|
|
+ Py_DECREF(__pyx_v_gHandlers);
|
|
|
+ Py_DECREF(__pyx_v_a);
|
|
|
+ Py_DECREF(__pyx_v_method);
|
|
|
+ Py_DECREF(__pyx_v_gStart);
|
|
|
+ Py_DECREF(__pyx_v_gTokens);
|
|
|
+ Py_DECREF(__pyx_v_gPrecedences);
|
|
|
+ Py_DECREF(__pyx_v_gLex);
|
|
|
+ Py_DECREF(__pyx_v_f);
|
|
|
+ Py_DECREF(__pyx_v_write);
|
|
|
+ Py_DECREF(__pyx_v_writelines);
|
|
|
+ Py_DECREF(__pyx_v_p);
|
|
|
+ Py_DECREF(__pyx_v_rules);
|
|
|
+ Py_DECREF(__pyx_v_h);
|
|
|
+ Py_DECREF(__pyx_v_doc);
|
|
|
+ Py_DECREF(__pyx_v_s);
|
|
|
+ Py_DECREF(__pyx_v_target);
|
|
|
+ Py_DECREF(__pyx_v_options);
|
|
|
+ Py_DECREF(__pyx_v_tmp);
|
|
|
+ Py_DECREF(__pyx_v_opts);
|
|
|
+ Py_DECREF(__pyx_v_r);
|
|
|
+ Py_DECREF(__pyx_v_opts1);
|
|
|
+ Py_DECREF(__pyx_v_o);
|
|
|
+ Py_DECREF(__pyx_v_rule);
|
|
|
+ Py_DECREF(__pyx_v_idx);
|
|
|
+ Py_DECREF(__pyx_v_option);
|
|
|
+ Py_DECREF(__pyx_v_nterms);
|
|
|
+ Py_DECREF(__pyx_v_action);
|
|
|
+ Py_DECREF(__pyx_v_args);
|
|
|
+ Py_DECREF(__pyx_v_i);
|
|
|
+ Py_DECREF(__pyx_v_epilogue);
|
|
|
+ Py_DECREF(__pyx_v_lexLines);
|
|
|
+ Py_DECREF(__pyx_v_line);
|
|
|
+ Py_DECREF(__pyx_v_ccompiler);
|
|
|
+ Py_DECREF(__pyx_v_bisonCmd);
|
|
|
+ Py_DECREF(__pyx_v_objs);
|
|
|
+ Py_DECREF(__pyx_v_libFileName);
|
|
|
+ Py_DECREF(__pyx_v_hitlist);
|
|
|
+ Py_DECREF(__pyx_v_name);
|
|
|
+ Py_DECREF(__pyx_v_fname);
|
|
|
+ Py_DECREF(__pyx_v_self);
|
|
|
+ return __pyx_r;
|
|
|
+}
|
|
|
+
|
|
|
+static PyObject *__pyx_f_6bison__12ParserEngine_closeLib(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
|
|
|
+static char __pyx_doc_6bison__12ParserEngine_closeLib[] = "\n Does the necessary cleanups and closes the parser library\n ";
|
|
|
+static PyObject *__pyx_f_6bison__12ParserEngine_closeLib(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
|
|
|
+ PyObject *__pyx_r;
|
|
|
+ static char *__pyx_argnames[] = {0};
|
|
|
+ if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) return 0;
|
|
|
+ Py_INCREF(__pyx_v_self);
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":572 */
|
|
|
+ bisondynlib_close(((struct __pyx_obj_6bison__ParserEngine *)__pyx_v_self)->libHandle);
|
|
|
+
|
|
|
+ __pyx_r = Py_None; Py_INCREF(__pyx_r);
|
|
|
+ goto __pyx_L0;
|
|
|
+ __pyx_L1:;
|
|
|
+ __Pyx_AddTraceback("bison_.ParserEngine.closeLib");
|
|
|
+ __pyx_r = 0;
|
|
|
+ __pyx_L0:;
|
|
|
+ Py_DECREF(__pyx_v_self);
|
|
|
+ return __pyx_r;
|
|
|
+}
|
|
|
+
|
|
|
+static PyObject *__pyx_k133p;
|
|
|
+static PyObject *__pyx_k134p;
|
|
|
+
|
|
|
+char (__pyx_k133[]) = "runEngine: about to call, py_input=0x%lx...";
|
|
|
+char (__pyx_k134[]) = "runEngine: back from parser";
|
|
|
+
|
|
|
+static PyObject *__pyx_f_6bison__12ParserEngine_runEngine(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
|
|
|
+static char __pyx_doc_6bison__12ParserEngine_runEngine[] = "\n Runs the binary parser engine, as loaded from the lib\n ";
|
|
|
+static PyObject *__pyx_f_6bison__12ParserEngine_runEngine(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
|
|
|
+ PyObject *__pyx_v_debug = 0;
|
|
|
+ void (*__pyx_v_handle);
|
|
|
+ void (*__pyx_v_cbvoid);
|
|
|
+ void (*__pyx_v_invoid);
|
|
|
+ PyObject *__pyx_v_parser;
|
|
|
+ PyObject *__pyx_r;
|
|
|
+ PyObject *__pyx_1 = 0;
|
|
|
+ int __pyx_2;
|
|
|
+ PyObject *__pyx_3 = 0;
|
|
|
+ static char *__pyx_argnames[] = {"debug",0};
|
|
|
+ __pyx_v_debug = __pyx_k11;
|
|
|
+ if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "|O", __pyx_argnames, &__pyx_v_debug)) return 0;
|
|
|
+ Py_INCREF(__pyx_v_self);
|
|
|
+ Py_INCREF(__pyx_v_debug);
|
|
|
+ __pyx_v_parser = Py_None; Py_INCREF(__pyx_v_parser);
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":584 */
|
|
|
+ __pyx_v_handle = ((struct __pyx_obj_6bison__ParserEngine *)__pyx_v_self)->libHandle;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":585 */
|
|
|
+ Py_INCREF(((struct __pyx_obj_6bison__ParserEngine *)__pyx_v_self)->parser);
|
|
|
+ Py_DECREF(__pyx_v_parser);
|
|
|
+ __pyx_v_parser = ((struct __pyx_obj_6bison__ParserEngine *)__pyx_v_self)->parser;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":587 */
|
|
|
+ __pyx_v_cbvoid = ((void (*))py_callback);
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":588 */
|
|
|
+ __pyx_v_invoid = ((void (*))py_input);
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":590 */
|
|
|
+ __pyx_1 = PyObject_GetAttr(__pyx_v_parser, __pyx_n_verbose); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 590; goto __pyx_L1;}
|
|
|
+ __pyx_2 = PyObject_IsTrue(__pyx_1); if (__pyx_2 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 590; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ if (__pyx_2) {
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":591 */
|
|
|
+ __pyx_1 = PyInt_FromLong(((int )__pyx_v_invoid)); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 591; goto __pyx_L1;}
|
|
|
+ __pyx_3 = PyNumber_Remainder(__pyx_k133p, __pyx_1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 591; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ if (__Pyx_PrintItem(__pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 591; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ if (__Pyx_PrintNewline() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 591; goto __pyx_L1;}
|
|
|
+ goto __pyx_L2;
|
|
|
+ }
|
|
|
+ __pyx_L2:;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":592 */
|
|
|
+ __pyx_2 = PyInt_AsLong(__pyx_v_debug); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 592; goto __pyx_L1;}
|
|
|
+ __pyx_1 = bisondynlib_run(__pyx_v_handle,__pyx_v_parser,__pyx_v_cbvoid,__pyx_v_invoid,__pyx_2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 592; goto __pyx_L1;}
|
|
|
+ __pyx_r = __pyx_1;
|
|
|
+ __pyx_1 = 0;
|
|
|
+ goto __pyx_L0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":593 */
|
|
|
+ __pyx_3 = PyObject_GetAttr(__pyx_v_parser, __pyx_n_verbose); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 593; goto __pyx_L1;}
|
|
|
+ __pyx_2 = PyObject_IsTrue(__pyx_3); if (__pyx_2 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 593; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ if (__pyx_2) {
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":594 */
|
|
|
+ if (__Pyx_PrintItem(__pyx_k134p) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 594; goto __pyx_L1;}
|
|
|
+ if (__Pyx_PrintNewline() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 594; goto __pyx_L1;}
|
|
|
+ goto __pyx_L3;
|
|
|
+ }
|
|
|
+ __pyx_L3:;
|
|
|
+
|
|
|
+ __pyx_r = Py_None; Py_INCREF(__pyx_r);
|
|
|
+ goto __pyx_L0;
|
|
|
+ __pyx_L1:;
|
|
|
+ Py_XDECREF(__pyx_1);
|
|
|
+ Py_XDECREF(__pyx_3);
|
|
|
+ __Pyx_AddTraceback("bison_.ParserEngine.runEngine");
|
|
|
+ __pyx_r = 0;
|
|
|
+ __pyx_L0:;
|
|
|
+ Py_DECREF(__pyx_v_parser);
|
|
|
+ Py_DECREF(__pyx_v_self);
|
|
|
+ Py_DECREF(__pyx_v_debug);
|
|
|
+ return __pyx_r;
|
|
|
+}
|
|
|
+
|
|
|
+static PyObject *__pyx_f_6bison__12ParserEngine___del__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
|
|
|
+static char __pyx_doc_6bison__12ParserEngine___del__[] = "\n Clean up and bail\n ";
|
|
|
+static PyObject *__pyx_f_6bison__12ParserEngine___del__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
|
|
|
+ PyObject *__pyx_r;
|
|
|
+ PyObject *__pyx_1 = 0;
|
|
|
+ PyObject *__pyx_2 = 0;
|
|
|
+ PyObject *__pyx_3 = 0;
|
|
|
+ static char *__pyx_argnames[] = {0};
|
|
|
+ if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) return 0;
|
|
|
+ Py_INCREF(__pyx_v_self);
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":602 */
|
|
|
+ __pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_closeLib); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 602; goto __pyx_L1;}
|
|
|
+ __pyx_2 = PyTuple_New(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 602; goto __pyx_L1;}
|
|
|
+ __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 602; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+
|
|
|
+ __pyx_r = Py_None; Py_INCREF(__pyx_r);
|
|
|
+ goto __pyx_L0;
|
|
|
+ __pyx_L1:;
|
|
|
+ Py_XDECREF(__pyx_1);
|
|
|
+ Py_XDECREF(__pyx_2);
|
|
|
+ Py_XDECREF(__pyx_3);
|
|
|
+ __Pyx_AddTraceback("bison_.ParserEngine.__del__");
|
|
|
+ __pyx_r = 0;
|
|
|
+ __pyx_L0:;
|
|
|
+ Py_DECREF(__pyx_v_self);
|
|
|
+ return __pyx_r;
|
|
|
+}
|
|
|
+
|
|
|
+static PyObject *__pyx_n_func_code;
|
|
|
+static PyObject *__pyx_n_co_firstlineno;
|
|
|
+static PyObject *__pyx_n___init__;
|
|
|
+static PyObject *__pyx_n_cmp;
|
|
|
+
|
|
|
+static PyObject *__pyx_f_6bison__cmpLines(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
|
|
|
+static char __pyx_doc_6bison__cmpLines[] = "\n Used as a sort() argument for sorting parse target handler methods by\n the order of their declaration in their source file.\n ";
|
|
|
+static PyObject *__pyx_f_6bison__cmpLines(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
|
|
|
+ PyObject *__pyx_v_meth1 = 0;
|
|
|
+ PyObject *__pyx_v_meth2 = 0;
|
|
|
+ PyObject *__pyx_v_line1;
|
|
|
+ PyObject *__pyx_v_line2;
|
|
|
+ PyObject *__pyx_r;
|
|
|
+ PyObject *__pyx_1 = 0;
|
|
|
+ PyObject *__pyx_2 = 0;
|
|
|
+ PyObject *__pyx_3 = 0;
|
|
|
+ static char *__pyx_argnames[] = {"meth1","meth2",0};
|
|
|
+ if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "OO", __pyx_argnames, &__pyx_v_meth1, &__pyx_v_meth2)) return 0;
|
|
|
+ Py_INCREF(__pyx_v_meth1);
|
|
|
+ Py_INCREF(__pyx_v_meth2);
|
|
|
+ __pyx_v_line1 = Py_None; Py_INCREF(__pyx_v_line1);
|
|
|
+ __pyx_v_line2 = Py_None; Py_INCREF(__pyx_v_line2);
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":612 */
|
|
|
+ /*try:*/ {
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":613 */
|
|
|
+ __pyx_1 = PyObject_GetAttr(__pyx_v_meth1, __pyx_n_func_code); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 613; goto __pyx_L2;}
|
|
|
+ __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_co_firstlineno); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 613; goto __pyx_L2;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_DECREF(__pyx_v_line1);
|
|
|
+ __pyx_v_line1 = __pyx_2;
|
|
|
+ __pyx_2 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":614 */
|
|
|
+ __pyx_1 = PyObject_GetAttr(__pyx_v_meth2, __pyx_n_func_code); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 614; goto __pyx_L2;}
|
|
|
+ __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_co_firstlineno); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 614; goto __pyx_L2;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_DECREF(__pyx_v_line2);
|
|
|
+ __pyx_v_line2 = __pyx_2;
|
|
|
+ __pyx_2 = 0;
|
|
|
+ }
|
|
|
+ goto __pyx_L3;
|
|
|
+ __pyx_L2:;
|
|
|
+ Py_XDECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_XDECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":615 */
|
|
|
+ /*except:*/ {
|
|
|
+ __Pyx_AddTraceback("bison_.cmpLines");
|
|
|
+ __pyx_1 = __Pyx_GetExcValue(); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 615; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":616 */
|
|
|
+ __pyx_2 = PyObject_GetAttr(__pyx_v_meth1, __pyx_n___init__); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 616; goto __pyx_L1;}
|
|
|
+ __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_func_code); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 616; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_co_firstlineno); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 616; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_DECREF(__pyx_v_line1);
|
|
|
+ __pyx_v_line1 = __pyx_2;
|
|
|
+ __pyx_2 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":617 */
|
|
|
+ __pyx_1 = PyObject_GetAttr(__pyx_v_meth2, __pyx_n___init__); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 617; goto __pyx_L1;}
|
|
|
+ __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_func_code); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 617; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_co_firstlineno); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 617; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_DECREF(__pyx_v_line2);
|
|
|
+ __pyx_v_line2 = __pyx_1;
|
|
|
+ __pyx_1 = 0;
|
|
|
+ goto __pyx_L3;
|
|
|
+ }
|
|
|
+ __pyx_L3:;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":619 */
|
|
|
+ __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_cmp); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 619; goto __pyx_L1;}
|
|
|
+ __pyx_1 = PyTuple_New(2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 619; goto __pyx_L1;}
|
|
|
+ Py_INCREF(__pyx_v_line1);
|
|
|
+ PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_line1);
|
|
|
+ Py_INCREF(__pyx_v_line2);
|
|
|
+ PyTuple_SET_ITEM(__pyx_1, 1, __pyx_v_line2);
|
|
|
+ __pyx_3 = PyObject_CallObject(__pyx_2, __pyx_1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 619; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ __pyx_r = __pyx_3;
|
|
|
+ __pyx_3 = 0;
|
|
|
+ goto __pyx_L0;
|
|
|
+
|
|
|
+ __pyx_r = Py_None; Py_INCREF(__pyx_r);
|
|
|
+ goto __pyx_L0;
|
|
|
+ __pyx_L1:;
|
|
|
+ Py_XDECREF(__pyx_1);
|
|
|
+ Py_XDECREF(__pyx_2);
|
|
|
+ Py_XDECREF(__pyx_3);
|
|
|
+ __Pyx_AddTraceback("bison_.cmpLines");
|
|
|
+ __pyx_r = 0;
|
|
|
+ __pyx_L0:;
|
|
|
+ Py_DECREF(__pyx_v_line1);
|
|
|
+ Py_DECREF(__pyx_v_line2);
|
|
|
+ Py_DECREF(__pyx_v_meth1);
|
|
|
+ Py_DECREF(__pyx_v_meth2);
|
|
|
+ return __pyx_r;
|
|
|
+}
|
|
|
+
|
|
|
+static PyObject *__pyx_n_new;
|
|
|
+static PyObject *__pyx_n_update;
|
|
|
+static PyObject *__pyx_n_list;
|
|
|
+static PyObject *__pyx_n_callable;
|
|
|
+static PyObject *__pyx_n_hexdigest;
|
|
|
+
|
|
|
+static PyObject *__pyx_k135p;
|
|
|
+static PyObject *__pyx_k136p;
|
|
|
+
|
|
|
+char (__pyx_k135[]) = ",";
|
|
|
+char (__pyx_k136[]) = "";
|
|
|
+
|
|
|
+static PyObject *__pyx_f_6bison__hashParserObject(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
|
|
|
+static char __pyx_doc_6bison__hashParserObject[] = "\n Calculates an sha1 hex \'hash\' of the lex script\n and grammar rules in a parser class instance.\n \n This is based on the raw text of the lex script attribute,\n and the grammar rule docstrings within the handler methods.\n \n Used to detect if someone has changed any grammar rules or\n lex script, and therefore, whether a shared parser lib rebuild\n is required.\n ";
|
|
|
+static PyObject *__pyx_f_6bison__hashParserObject(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
|
|
|
+ PyObject *__pyx_v_parser = 0;
|
|
|
+ PyObject *__pyx_v_hasher;
|
|
|
+ PyObject *__pyx_v_tokens;
|
|
|
+ PyObject *__pyx_v_direction;
|
|
|
+ PyObject *__pyx_v_handlerNames;
|
|
|
+ PyObject *__pyx_v_tmp;
|
|
|
+ PyObject *__pyx_v_name;
|
|
|
+ PyObject *__pyx_v_m;
|
|
|
+ PyObject *__pyx_v_attr;
|
|
|
+ PyObject *__pyx_v_handlers;
|
|
|
+ PyObject *__pyx_v_h;
|
|
|
+ PyObject *__pyx_v_docString;
|
|
|
+ PyObject *__pyx_r;
|
|
|
+ PyObject *__pyx_1 = 0;
|
|
|
+ PyObject *__pyx_2 = 0;
|
|
|
+ PyObject *__pyx_3 = 0;
|
|
|
+ PyObject *__pyx_4 = 0;
|
|
|
+ PyObject *__pyx_5 = 0;
|
|
|
+ int __pyx_6;
|
|
|
+ static char *__pyx_argnames[] = {"parser",0};
|
|
|
+ if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_parser)) return 0;
|
|
|
+ Py_INCREF(__pyx_v_parser);
|
|
|
+ __pyx_v_hasher = Py_None; Py_INCREF(__pyx_v_hasher);
|
|
|
+ __pyx_v_tokens = Py_None; Py_INCREF(__pyx_v_tokens);
|
|
|
+ __pyx_v_direction = Py_None; Py_INCREF(__pyx_v_direction);
|
|
|
+ __pyx_v_handlerNames = Py_None; Py_INCREF(__pyx_v_handlerNames);
|
|
|
+ __pyx_v_tmp = Py_None; Py_INCREF(__pyx_v_tmp);
|
|
|
+ __pyx_v_name = Py_None; Py_INCREF(__pyx_v_name);
|
|
|
+ __pyx_v_m = Py_None; Py_INCREF(__pyx_v_m);
|
|
|
+ __pyx_v_attr = Py_None; Py_INCREF(__pyx_v_attr);
|
|
|
+ __pyx_v_handlers = Py_None; Py_INCREF(__pyx_v_handlers);
|
|
|
+ __pyx_v_h = Py_None; Py_INCREF(__pyx_v_h);
|
|
|
+ __pyx_v_docString = Py_None; Py_INCREF(__pyx_v_docString);
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":635 */
|
|
|
+ __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_sha); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 635; goto __pyx_L1;}
|
|
|
+ __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_new); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 635; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ __pyx_1 = PyTuple_New(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 635; goto __pyx_L1;}
|
|
|
+ __pyx_3 = PyObject_CallObject(__pyx_2, __pyx_1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 635; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_DECREF(__pyx_v_hasher);
|
|
|
+ __pyx_v_hasher = __pyx_3;
|
|
|
+ __pyx_3 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":638 */
|
|
|
+ __pyx_2 = PyObject_GetAttr(__pyx_v_hasher, __pyx_n_update); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 638; goto __pyx_L1;}
|
|
|
+ __pyx_1 = PyObject_GetAttr(__pyx_v_parser, __pyx_n_lexscript); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 638; goto __pyx_L1;}
|
|
|
+ __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 638; goto __pyx_L1;}
|
|
|
+ PyTuple_SET_ITEM(__pyx_3, 0, __pyx_1);
|
|
|
+ __pyx_1 = 0;
|
|
|
+ __pyx_1 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 638; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":643 */
|
|
|
+ __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_list); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 643; goto __pyx_L1;}
|
|
|
+ __pyx_3 = PyObject_GetAttr(__pyx_v_parser, __pyx_n_tokens); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 643; goto __pyx_L1;}
|
|
|
+ __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 643; goto __pyx_L1;}
|
|
|
+ PyTuple_SET_ITEM(__pyx_1, 0, __pyx_3);
|
|
|
+ __pyx_3 = 0;
|
|
|
+ __pyx_3 = PyObject_CallObject(__pyx_2, __pyx_1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 643; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_DECREF(__pyx_v_tokens);
|
|
|
+ __pyx_v_tokens = __pyx_3;
|
|
|
+ __pyx_3 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":644 */
|
|
|
+ __pyx_2 = PyObject_GetAttr(__pyx_v_hasher, __pyx_n_update); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 644; goto __pyx_L1;}
|
|
|
+ __pyx_1 = PyObject_GetAttr(__pyx_k135p, __pyx_n_join); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 644; goto __pyx_L1;}
|
|
|
+ __pyx_3 = __Pyx_GetName(__pyx_b, __pyx_n_list); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 644; goto __pyx_L1;}
|
|
|
+ __pyx_4 = PyObject_GetAttr(__pyx_v_parser, __pyx_n_tokens); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 644; goto __pyx_L1;}
|
|
|
+ __pyx_5 = PyTuple_New(1); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 644; goto __pyx_L1;}
|
|
|
+ PyTuple_SET_ITEM(__pyx_5, 0, __pyx_4);
|
|
|
+ __pyx_4 = 0;
|
|
|
+ __pyx_4 = PyObject_CallObject(__pyx_3, __pyx_5); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 644; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ Py_DECREF(__pyx_5); __pyx_5 = 0;
|
|
|
+ __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 644; goto __pyx_L1;}
|
|
|
+ PyTuple_SET_ITEM(__pyx_3, 0, __pyx_4);
|
|
|
+ __pyx_4 = 0;
|
|
|
+ __pyx_5 = PyObject_CallObject(__pyx_1, __pyx_3); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 644; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 644; goto __pyx_L1;}
|
|
|
+ PyTuple_SET_ITEM(__pyx_4, 0, __pyx_5);
|
|
|
+ __pyx_5 = 0;
|
|
|
+ __pyx_1 = PyObject_CallObject(__pyx_2, __pyx_4); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 644; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":647 */
|
|
|
+ __pyx_3 = PyObject_GetAttr(__pyx_v_parser, __pyx_n_precedences); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 647; goto __pyx_L1;}
|
|
|
+ __pyx_5 = PyObject_GetIter(__pyx_3); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 647; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ for (;;) {
|
|
|
+ __pyx_L2:;
|
|
|
+ __pyx_2 = PyIter_Next(__pyx_5);
|
|
|
+ if (!__pyx_2) {
|
|
|
+ if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 647; goto __pyx_L1;}
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ __pyx_4 = __Pyx_UnpackItem(__pyx_2, 0); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 647; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_v_direction);
|
|
|
+ __pyx_v_direction = __pyx_4;
|
|
|
+ __pyx_4 = 0;
|
|
|
+ __pyx_1 = __Pyx_UnpackItem(__pyx_2, 1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 647; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_v_tokens);
|
|
|
+ __pyx_v_tokens = __pyx_1;
|
|
|
+ __pyx_1 = 0;
|
|
|
+ if (__Pyx_EndUnpack(__pyx_2, 2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 647; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":648 */
|
|
|
+ __pyx_3 = PyObject_GetAttr(__pyx_v_hasher, __pyx_n_update); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 648; goto __pyx_L1;}
|
|
|
+ __pyx_2 = PyObject_GetAttr(__pyx_k136p, __pyx_n_join); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 648; goto __pyx_L1;}
|
|
|
+ __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 648; goto __pyx_L1;}
|
|
|
+ Py_INCREF(__pyx_v_tokens);
|
|
|
+ PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_tokens);
|
|
|
+ __pyx_1 = PyObject_CallObject(__pyx_2, __pyx_4); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 648; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ __pyx_2 = PyNumber_Add(__pyx_v_direction, __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 648; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 648; goto __pyx_L1;}
|
|
|
+ PyTuple_SET_ITEM(__pyx_4, 0, __pyx_2);
|
|
|
+ __pyx_2 = 0;
|
|
|
+ __pyx_1 = PyObject_CallObject(__pyx_3, __pyx_4); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 648; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ }
|
|
|
+ __pyx_L3:;
|
|
|
+ Py_DECREF(__pyx_5); __pyx_5 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":651 */
|
|
|
+ __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_dir); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 651; goto __pyx_L1;}
|
|
|
+ __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 651; goto __pyx_L1;}
|
|
|
+ Py_INCREF(__pyx_v_parser);
|
|
|
+ PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_parser);
|
|
|
+ __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 651; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ Py_DECREF(__pyx_v_handlerNames);
|
|
|
+ __pyx_v_handlerNames = __pyx_4;
|
|
|
+ __pyx_4 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":654 */
|
|
|
+ __pyx_1 = PyList_New(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 654; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_v_tmp);
|
|
|
+ __pyx_v_tmp = __pyx_1;
|
|
|
+ __pyx_1 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":655 */
|
|
|
+ __pyx_5 = PyObject_GetIter(__pyx_v_handlerNames); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 655; goto __pyx_L1;}
|
|
|
+ for (;;) {
|
|
|
+ __pyx_L4:;
|
|
|
+ __pyx_2 = PyIter_Next(__pyx_5);
|
|
|
+ if (!__pyx_2) {
|
|
|
+ if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 655; goto __pyx_L1;}
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ Py_DECREF(__pyx_v_name);
|
|
|
+ __pyx_v_name = __pyx_2;
|
|
|
+ __pyx_2 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":656 */
|
|
|
+ __pyx_3 = PyObject_GetAttr(__pyx_v_name, __pyx_n_startswith); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 656; goto __pyx_L1;}
|
|
|
+ __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 656; goto __pyx_L1;}
|
|
|
+ Py_INCREF(__pyx_n_on_);
|
|
|
+ PyTuple_SET_ITEM(__pyx_4, 0, __pyx_n_on_);
|
|
|
+ __pyx_1 = PyObject_CallObject(__pyx_3, __pyx_4); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 656; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ __pyx_6 = PyObject_IsTrue(__pyx_1); if (__pyx_6 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 656; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ if (__pyx_6) {
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":657 */
|
|
|
+ __pyx_2 = PyObject_GetAttr(__pyx_v_tmp, __pyx_n_append); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 657; goto __pyx_L1;}
|
|
|
+ __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 657; goto __pyx_L1;}
|
|
|
+ Py_INCREF(__pyx_v_name);
|
|
|
+ PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_name);
|
|
|
+ __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 657; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ goto __pyx_L6;
|
|
|
+ }
|
|
|
+ __pyx_L6:;
|
|
|
+ }
|
|
|
+ __pyx_L5:;
|
|
|
+ Py_DECREF(__pyx_5); __pyx_5 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":658 */
|
|
|
+ Py_INCREF(__pyx_v_tmp);
|
|
|
+ Py_DECREF(__pyx_v_handlerNames);
|
|
|
+ __pyx_v_handlerNames = __pyx_v_tmp;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":659 */
|
|
|
+ __pyx_1 = PyObject_GetAttr(__pyx_v_handlerNames, __pyx_n_sort); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 659; goto __pyx_L1;}
|
|
|
+ __pyx_2 = PyTuple_New(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 659; goto __pyx_L1;}
|
|
|
+ __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 659; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":664 */
|
|
|
+ __pyx_4 = PyList_New(0); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 664; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_v_tmp);
|
|
|
+ __pyx_v_tmp = __pyx_4;
|
|
|
+ __pyx_4 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":665 */
|
|
|
+ __pyx_5 = PyObject_GetIter(__pyx_v_handlerNames); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 665; goto __pyx_L1;}
|
|
|
+ for (;;) {
|
|
|
+ __pyx_L7:;
|
|
|
+ __pyx_1 = PyIter_Next(__pyx_5);
|
|
|
+ if (!__pyx_1) {
|
|
|
+ if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 665; goto __pyx_L1;}
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ Py_DECREF(__pyx_v_m);
|
|
|
+ __pyx_v_m = __pyx_1;
|
|
|
+ __pyx_1 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":666 */
|
|
|
+ __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_getattr); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 666; goto __pyx_L1;}
|
|
|
+ __pyx_3 = PyTuple_New(2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 666; goto __pyx_L1;}
|
|
|
+ Py_INCREF(__pyx_v_parser);
|
|
|
+ PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_parser);
|
|
|
+ Py_INCREF(__pyx_v_m);
|
|
|
+ PyTuple_SET_ITEM(__pyx_3, 1, __pyx_v_m);
|
|
|
+ __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 666; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ Py_DECREF(__pyx_v_attr);
|
|
|
+ __pyx_v_attr = __pyx_4;
|
|
|
+ __pyx_4 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":667 */
|
|
|
+ __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_callable); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 667; goto __pyx_L1;}
|
|
|
+ __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 667; goto __pyx_L1;}
|
|
|
+ Py_INCREF(__pyx_v_attr);
|
|
|
+ PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_attr);
|
|
|
+ __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 667; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ __pyx_6 = PyObject_IsTrue(__pyx_3); if (__pyx_6 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 667; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+ if (__pyx_6) {
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":668 */
|
|
|
+ __pyx_4 = PyObject_GetAttr(__pyx_v_tmp, __pyx_n_append); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 668; goto __pyx_L1;}
|
|
|
+ __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 668; goto __pyx_L1;}
|
|
|
+ Py_INCREF(__pyx_v_attr);
|
|
|
+ PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_attr);
|
|
|
+ __pyx_2 = PyObject_CallObject(__pyx_4, __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 668; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ goto __pyx_L9;
|
|
|
+ }
|
|
|
+ __pyx_L9:;
|
|
|
+ }
|
|
|
+ __pyx_L8:;
|
|
|
+ Py_DECREF(__pyx_5); __pyx_5 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":669 */
|
|
|
+ Py_INCREF(__pyx_v_tmp);
|
|
|
+ Py_DECREF(__pyx_v_handlers);
|
|
|
+ __pyx_v_handlers = __pyx_v_tmp;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":672 */
|
|
|
+ __pyx_3 = PyObject_GetIter(__pyx_v_handlers); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 672; goto __pyx_L1;}
|
|
|
+ for (;;) {
|
|
|
+ __pyx_L10:;
|
|
|
+ __pyx_4 = PyIter_Next(__pyx_3);
|
|
|
+ if (!__pyx_4) {
|
|
|
+ if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 672; goto __pyx_L1;}
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ Py_DECREF(__pyx_v_h);
|
|
|
+ __pyx_v_h = __pyx_4;
|
|
|
+ __pyx_4 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":673 */
|
|
|
+ __pyx_1 = PyObject_GetAttr(__pyx_v_h, __pyx_n___doc__); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 673; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_v_docString);
|
|
|
+ __pyx_v_docString = __pyx_1;
|
|
|
+ __pyx_1 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":674 */
|
|
|
+ __pyx_2 = PyObject_GetAttr(__pyx_v_hasher, __pyx_n_update); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 674; goto __pyx_L1;}
|
|
|
+ __pyx_5 = PyTuple_New(1); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 674; goto __pyx_L1;}
|
|
|
+ Py_INCREF(__pyx_v_docString);
|
|
|
+ PyTuple_SET_ITEM(__pyx_5, 0, __pyx_v_docString);
|
|
|
+ __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_5); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 674; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_DECREF(__pyx_5); __pyx_5 = 0;
|
|
|
+ Py_DECREF(__pyx_4); __pyx_4 = 0;
|
|
|
+ }
|
|
|
+ __pyx_L11:;
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":677 */
|
|
|
+ __pyx_1 = PyObject_GetAttr(__pyx_v_hasher, __pyx_n_hexdigest); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 677; goto __pyx_L1;}
|
|
|
+ __pyx_2 = PyTuple_New(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 677; goto __pyx_L1;}
|
|
|
+ __pyx_5 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 677; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ __pyx_r = __pyx_5;
|
|
|
+ __pyx_5 = 0;
|
|
|
+ goto __pyx_L0;
|
|
|
+
|
|
|
+ __pyx_r = Py_None; Py_INCREF(__pyx_r);
|
|
|
+ goto __pyx_L0;
|
|
|
+ __pyx_L1:;
|
|
|
+ Py_XDECREF(__pyx_1);
|
|
|
+ Py_XDECREF(__pyx_2);
|
|
|
+ Py_XDECREF(__pyx_3);
|
|
|
+ Py_XDECREF(__pyx_4);
|
|
|
+ Py_XDECREF(__pyx_5);
|
|
|
+ __Pyx_AddTraceback("bison_.hashParserObject");
|
|
|
+ __pyx_r = 0;
|
|
|
+ __pyx_L0:;
|
|
|
+ Py_DECREF(__pyx_v_hasher);
|
|
|
+ Py_DECREF(__pyx_v_tokens);
|
|
|
+ Py_DECREF(__pyx_v_direction);
|
|
|
+ Py_DECREF(__pyx_v_handlerNames);
|
|
|
+ Py_DECREF(__pyx_v_tmp);
|
|
|
+ Py_DECREF(__pyx_v_name);
|
|
|
+ Py_DECREF(__pyx_v_m);
|
|
|
+ Py_DECREF(__pyx_v_attr);
|
|
|
+ Py_DECREF(__pyx_v_handlers);
|
|
|
+ Py_DECREF(__pyx_v_h);
|
|
|
+ Py_DECREF(__pyx_v_docString);
|
|
|
+ Py_DECREF(__pyx_v_parser);
|
|
|
+ return __pyx_r;
|
|
|
+}
|
|
|
+
|
|
|
+static __Pyx_InternTabEntry __pyx_intern_tab[] = {
|
|
|
+ {&__pyx_n_NULL, "NULL"},
|
|
|
+ {&__pyx_n___doc__, "__doc__"},
|
|
|
+ {&__pyx_n___init__, "__init__"},
|
|
|
+ {&__pyx_n__handle, "_handle"},
|
|
|
+ {&__pyx_n_append, "append"},
|
|
|
+ {&__pyx_n_bisonCFile, "bisonCFile"},
|
|
|
+ {&__pyx_n_bisonCFile1, "bisonCFile1"},
|
|
|
+ {&__pyx_n_bisonCmd, "bisonCmd"},
|
|
|
+ {&__pyx_n_bisonEngineLibName, "bisonEngineLibName"},
|
|
|
+ {&__pyx_n_bisonFile, "bisonFile"},
|
|
|
+ {&__pyx_n_bisonHFile, "bisonHFile"},
|
|
|
+ {&__pyx_n_bisonHFile1, "bisonHFile1"},
|
|
|
+ {&__pyx_n_buildLib, "buildLib"},
|
|
|
+ {&__pyx_n_callable, "callable"},
|
|
|
+ {&__pyx_n_ccompiler, "ccompiler"},
|
|
|
+ {&__pyx_n_close, "close"},
|
|
|
+ {&__pyx_n_closeLib, "closeLib"},
|
|
|
+ {&__pyx_n_cmp, "cmp"},
|
|
|
+ {&__pyx_n_cmpLines, "cmpLines"},
|
|
|
+ {&__pyx_n_co_firstlineno, "co_firstlineno"},
|
|
|
+ {&__pyx_n_compile, "compile"},
|
|
|
+ {&__pyx_n_dir, "dir"},
|
|
|
+ {&__pyx_n_distutils, "distutils"},
|
|
|
+ {&__pyx_n_error, "error"},
|
|
|
+ {&__pyx_n_flexCFile, "flexCFile"},
|
|
|
+ {&__pyx_n_flexCFile1, "flexCFile1"},
|
|
|
+ {&__pyx_n_flexCmd, "flexCmd"},
|
|
|
+ {&__pyx_n_flexFile, "flexFile"},
|
|
|
+ {&__pyx_n_func_code, "func_code"},
|
|
|
+ {&__pyx_n_get_python_inc, "get_python_inc"},
|
|
|
+ {&__pyx_n_get_suffixes, "get_suffixes"},
|
|
|
+ {&__pyx_n_getattr, "getattr"},
|
|
|
+ {&__pyx_n_hashParserObject, "hashParserObject"},
|
|
|
+ {&__pyx_n_hexdigest, "hexdigest"},
|
|
|
+ {&__pyx_n_imp, "imp"},
|
|
|
+ {&__pyx_n_isfile, "isfile"},
|
|
|
+ {&__pyx_n_join, "join"},
|
|
|
+ {&__pyx_n_keepfiles, "keepfiles"},
|
|
|
+ {&__pyx_n_len, "len"},
|
|
|
+ {&__pyx_n_lexscript, "lexscript"},
|
|
|
+ {&__pyx_n_link_shared_object, "link_shared_object"},
|
|
|
+ {&__pyx_n_list, "list"},
|
|
|
+ {&__pyx_n_new, "new"},
|
|
|
+ {&__pyx_n_new_compiler, "new_compiler"},
|
|
|
+ {&__pyx_n_on_, "on_"},
|
|
|
+ {&__pyx_n_open, "open"},
|
|
|
+ {&__pyx_n_openCurrentLib, "openCurrentLib"},
|
|
|
+ {&__pyx_n_openLib, "openLib"},
|
|
|
+ {&__pyx_n_os, "os"},
|
|
|
+ {&__pyx_n_path, "path"},
|
|
|
+ {&__pyx_n_precedences, "precedences"},
|
|
|
+ {&__pyx_n_print_exc, "print_exc"},
|
|
|
+ {&__pyx_n_range, "range"},
|
|
|
+ {&__pyx_n_re, "re"},
|
|
|
+ {&__pyx_n_reSpaces, "reSpaces"},
|
|
|
+ {&__pyx_n_read, "read"},
|
|
|
+ {&__pyx_n_rename, "rename"},
|
|
|
+ {&__pyx_n_repr, "repr"},
|
|
|
+ {&__pyx_n_set_include_dirs, "set_include_dirs"},
|
|
|
+ {&__pyx_n_sha, "sha"},
|
|
|
+ {&__pyx_n_sort, "sort"},
|
|
|
+ {&__pyx_n_spawn, "spawn"},
|
|
|
+ {&__pyx_n_split, "split"},
|
|
|
+ {&__pyx_n_start, "start"},
|
|
|
+ {&__pyx_n_startswith, "startswith"},
|
|
|
+ {&__pyx_n_strip, "strip"},
|
|
|
+ {&__pyx_n_sub, "sub"},
|
|
|
+ {&__pyx_n_sys, "sys"},
|
|
|
+ {&__pyx_n_sysconfig, "sysconfig"},
|
|
|
+ {&__pyx_n_tokens, "tokens"},
|
|
|
+ {&__pyx_n_traceback, "traceback"},
|
|
|
+ {&__pyx_n_unlink, "unlink"},
|
|
|
+ {&__pyx_n_unquoted, "unquoted"},
|
|
|
+ {&__pyx_n_update, "update"},
|
|
|
+ {&__pyx_n_verbose, "verbose"},
|
|
|
+ {&__pyx_n_w, "w"},
|
|
|
+ {&__pyx_n_write, "write"},
|
|
|
+ {&__pyx_n_writelines, "writelines"},
|
|
|
+ {0, 0}
|
|
|
+};
|
|
|
+
|
|
|
+static __Pyx_StringTabEntry __pyx_string_tab[] = {
|
|
|
+ {&__pyx_k7p, __pyx_k7, sizeof(__pyx_k7)},
|
|
|
+ {&__pyx_k8p, __pyx_k8, sizeof(__pyx_k8)},
|
|
|
+ {&__pyx_k9p, __pyx_k9, sizeof(__pyx_k9)},
|
|
|
+ {&__pyx_k10p, __pyx_k10, sizeof(__pyx_k10)},
|
|
|
+ {&__pyx_k12p, __pyx_k12, sizeof(__pyx_k12)},
|
|
|
+ {&__pyx_k13p, __pyx_k13, sizeof(__pyx_k13)},
|
|
|
+ {&__pyx_k14p, __pyx_k14, sizeof(__pyx_k14)},
|
|
|
+ {&__pyx_k15p, __pyx_k15, sizeof(__pyx_k15)},
|
|
|
+ {&__pyx_k16p, __pyx_k16, sizeof(__pyx_k16)},
|
|
|
+ {&__pyx_k17p, __pyx_k17, sizeof(__pyx_k17)},
|
|
|
+ {&__pyx_k19p, __pyx_k19, sizeof(__pyx_k19)},
|
|
|
+ {&__pyx_k22p, __pyx_k22, sizeof(__pyx_k22)},
|
|
|
+ {&__pyx_k23p, __pyx_k23, sizeof(__pyx_k23)},
|
|
|
+ {&__pyx_k24p, __pyx_k24, sizeof(__pyx_k24)},
|
|
|
+ {&__pyx_k25p, __pyx_k25, sizeof(__pyx_k25)},
|
|
|
+ {&__pyx_k26p, __pyx_k26, sizeof(__pyx_k26)},
|
|
|
+ {&__pyx_k27p, __pyx_k27, sizeof(__pyx_k27)},
|
|
|
+ {&__pyx_k28p, __pyx_k28, sizeof(__pyx_k28)},
|
|
|
+ {&__pyx_k29p, __pyx_k29, sizeof(__pyx_k29)},
|
|
|
+ {&__pyx_k30p, __pyx_k30, sizeof(__pyx_k30)},
|
|
|
+ {&__pyx_k31p, __pyx_k31, sizeof(__pyx_k31)},
|
|
|
+ {&__pyx_k32p, __pyx_k32, sizeof(__pyx_k32)},
|
|
|
+ {&__pyx_k33p, __pyx_k33, sizeof(__pyx_k33)},
|
|
|
+ {&__pyx_k34p, __pyx_k34, sizeof(__pyx_k34)},
|
|
|
+ {&__pyx_k35p, __pyx_k35, sizeof(__pyx_k35)},
|
|
|
+ {&__pyx_k36p, __pyx_k36, sizeof(__pyx_k36)},
|
|
|
+ {&__pyx_k38p, __pyx_k38, sizeof(__pyx_k38)},
|
|
|
+ {&__pyx_k37p, __pyx_k37, sizeof(__pyx_k37)},
|
|
|
+ {&__pyx_k39p, __pyx_k39, sizeof(__pyx_k39)},
|
|
|
+ {&__pyx_k41p, __pyx_k41, sizeof(__pyx_k41)},
|
|
|
+ {&__pyx_k40p, __pyx_k40, sizeof(__pyx_k40)},
|
|
|
+ {&__pyx_k42p, __pyx_k42, sizeof(__pyx_k42)},
|
|
|
+ {&__pyx_k43p, __pyx_k43, sizeof(__pyx_k43)},
|
|
|
+ {&__pyx_k44p, __pyx_k44, sizeof(__pyx_k44)},
|
|
|
+ {&__pyx_k45p, __pyx_k45, sizeof(__pyx_k45)},
|
|
|
+ {&__pyx_k46p, __pyx_k46, sizeof(__pyx_k46)},
|
|
|
+ {&__pyx_k47p, __pyx_k47, sizeof(__pyx_k47)},
|
|
|
+ {&__pyx_k48p, __pyx_k48, sizeof(__pyx_k48)},
|
|
|
+ {&__pyx_k49p, __pyx_k49, sizeof(__pyx_k49)},
|
|
|
+ {&__pyx_k50p, __pyx_k50, sizeof(__pyx_k50)},
|
|
|
+ {&__pyx_k51p, __pyx_k51, sizeof(__pyx_k51)},
|
|
|
+ {&__pyx_k53p, __pyx_k53, sizeof(__pyx_k53)},
|
|
|
+ {&__pyx_k54p, __pyx_k54, sizeof(__pyx_k54)},
|
|
|
+ {&__pyx_k56p, __pyx_k56, sizeof(__pyx_k56)},
|
|
|
+ {&__pyx_k57p, __pyx_k57, sizeof(__pyx_k57)},
|
|
|
+ {&__pyx_k58p, __pyx_k58, sizeof(__pyx_k58)},
|
|
|
+ {&__pyx_k59p, __pyx_k59, sizeof(__pyx_k59)},
|
|
|
+ {&__pyx_k60p, __pyx_k60, sizeof(__pyx_k60)},
|
|
|
+ {&__pyx_k62p, __pyx_k62, sizeof(__pyx_k62)},
|
|
|
+ {&__pyx_k63p, __pyx_k63, sizeof(__pyx_k63)},
|
|
|
+ {&__pyx_k64p, __pyx_k64, sizeof(__pyx_k64)},
|
|
|
+ {&__pyx_k65p, __pyx_k65, sizeof(__pyx_k65)},
|
|
|
+ {&__pyx_k66p, __pyx_k66, sizeof(__pyx_k66)},
|
|
|
+ {&__pyx_k67p, __pyx_k67, sizeof(__pyx_k67)},
|
|
|
+ {&__pyx_k68p, __pyx_k68, sizeof(__pyx_k68)},
|
|
|
+ {&__pyx_k69p, __pyx_k69, sizeof(__pyx_k69)},
|
|
|
+ {&__pyx_k70p, __pyx_k70, sizeof(__pyx_k70)},
|
|
|
+ {&__pyx_k71p, __pyx_k71, sizeof(__pyx_k71)},
|
|
|
+ {&__pyx_k72p, __pyx_k72, sizeof(__pyx_k72)},
|
|
|
+ {&__pyx_k73p, __pyx_k73, sizeof(__pyx_k73)},
|
|
|
+ {&__pyx_k74p, __pyx_k74, sizeof(__pyx_k74)},
|
|
|
+ {&__pyx_k75p, __pyx_k75, sizeof(__pyx_k75)},
|
|
|
+ {&__pyx_k76p, __pyx_k76, sizeof(__pyx_k76)},
|
|
|
+ {&__pyx_k77p, __pyx_k77, sizeof(__pyx_k77)},
|
|
|
+ {&__pyx_k78p, __pyx_k78, sizeof(__pyx_k78)},
|
|
|
+ {&__pyx_k79p, __pyx_k79, sizeof(__pyx_k79)},
|
|
|
+ {&__pyx_k80p, __pyx_k80, sizeof(__pyx_k80)},
|
|
|
+ {&__pyx_k81p, __pyx_k81, sizeof(__pyx_k81)},
|
|
|
+ {&__pyx_k82p, __pyx_k82, sizeof(__pyx_k82)},
|
|
|
+ {&__pyx_k83p, __pyx_k83, sizeof(__pyx_k83)},
|
|
|
+ {&__pyx_k84p, __pyx_k84, sizeof(__pyx_k84)},
|
|
|
+ {&__pyx_k85p, __pyx_k85, sizeof(__pyx_k85)},
|
|
|
+ {&__pyx_k86p, __pyx_k86, sizeof(__pyx_k86)},
|
|
|
+ {&__pyx_k87p, __pyx_k87, sizeof(__pyx_k87)},
|
|
|
+ {&__pyx_k88p, __pyx_k88, sizeof(__pyx_k88)},
|
|
|
+ {&__pyx_k89p, __pyx_k89, sizeof(__pyx_k89)},
|
|
|
+ {&__pyx_k90p, __pyx_k90, sizeof(__pyx_k90)},
|
|
|
+ {&__pyx_k91p, __pyx_k91, sizeof(__pyx_k91)},
|
|
|
+ {&__pyx_k92p, __pyx_k92, sizeof(__pyx_k92)},
|
|
|
+ {&__pyx_k93p, __pyx_k93, sizeof(__pyx_k93)},
|
|
|
+ {&__pyx_k94p, __pyx_k94, sizeof(__pyx_k94)},
|
|
|
+ {&__pyx_k95p, __pyx_k95, sizeof(__pyx_k95)},
|
|
|
+ {&__pyx_k96p, __pyx_k96, sizeof(__pyx_k96)},
|
|
|
+ {&__pyx_k97p, __pyx_k97, sizeof(__pyx_k97)},
|
|
|
+ {&__pyx_k98p, __pyx_k98, sizeof(__pyx_k98)},
|
|
|
+ {&__pyx_k99p, __pyx_k99, sizeof(__pyx_k99)},
|
|
|
+ {&__pyx_k100p, __pyx_k100, sizeof(__pyx_k100)},
|
|
|
+ {&__pyx_k101p, __pyx_k101, sizeof(__pyx_k101)},
|
|
|
+ {&__pyx_k102p, __pyx_k102, sizeof(__pyx_k102)},
|
|
|
+ {&__pyx_k103p, __pyx_k103, sizeof(__pyx_k103)},
|
|
|
+ {&__pyx_k104p, __pyx_k104, sizeof(__pyx_k104)},
|
|
|
+ {&__pyx_k105p, __pyx_k105, sizeof(__pyx_k105)},
|
|
|
+ {&__pyx_k106p, __pyx_k106, sizeof(__pyx_k106)},
|
|
|
+ {&__pyx_k107p, __pyx_k107, sizeof(__pyx_k107)},
|
|
|
+ {&__pyx_k108p, __pyx_k108, sizeof(__pyx_k108)},
|
|
|
+ {&__pyx_k109p, __pyx_k109, sizeof(__pyx_k109)},
|
|
|
+ {&__pyx_k110p, __pyx_k110, sizeof(__pyx_k110)},
|
|
|
+ {&__pyx_k111p, __pyx_k111, sizeof(__pyx_k111)},
|
|
|
+ {&__pyx_k113p, __pyx_k113, sizeof(__pyx_k113)},
|
|
|
+ {&__pyx_k114p, __pyx_k114, sizeof(__pyx_k114)},
|
|
|
+ {&__pyx_k116p, __pyx_k116, sizeof(__pyx_k116)},
|
|
|
+ {&__pyx_k117p, __pyx_k117, sizeof(__pyx_k117)},
|
|
|
+ {&__pyx_k118p, __pyx_k118, sizeof(__pyx_k118)},
|
|
|
+ {&__pyx_k119p, __pyx_k119, sizeof(__pyx_k119)},
|
|
|
+ {&__pyx_k120p, __pyx_k120, sizeof(__pyx_k120)},
|
|
|
+ {&__pyx_k121p, __pyx_k121, sizeof(__pyx_k121)},
|
|
|
+ {&__pyx_k122p, __pyx_k122, sizeof(__pyx_k122)},
|
|
|
+ {&__pyx_k123p, __pyx_k123, sizeof(__pyx_k123)},
|
|
|
+ {&__pyx_k132p, __pyx_k132, sizeof(__pyx_k132)},
|
|
|
+ {&__pyx_k133p, __pyx_k133, sizeof(__pyx_k133)},
|
|
|
+ {&__pyx_k134p, __pyx_k134, sizeof(__pyx_k134)},
|
|
|
+ {&__pyx_k135p, __pyx_k135, sizeof(__pyx_k135)},
|
|
|
+ {&__pyx_k136p, __pyx_k136, sizeof(__pyx_k136)},
|
|
|
+ {0, 0, 0}
|
|
|
+};
|
|
|
+
|
|
|
+static PyObject *__pyx_tp_new_6bison__ParserEngine(PyTypeObject *t, PyObject *a, PyObject *k) {
|
|
|
+ PyObject *o = (*t->tp_alloc)(t, 0);
|
|
|
+ struct __pyx_obj_6bison__ParserEngine *p = (struct __pyx_obj_6bison__ParserEngine *)o;
|
|
|
+ p->parser = Py_None; Py_INCREF(p->parser);
|
|
|
+ p->parserHash = Py_None; Py_INCREF(p->parserHash);
|
|
|
+ p->libFilename_py = Py_None; Py_INCREF(p->libFilename_py);
|
|
|
+ return o;
|
|
|
+}
|
|
|
+
|
|
|
+static void __pyx_tp_dealloc_6bison__ParserEngine(PyObject *o) {
|
|
|
+ struct __pyx_obj_6bison__ParserEngine *p = (struct __pyx_obj_6bison__ParserEngine *)o;
|
|
|
+ Py_XDECREF(p->parser);
|
|
|
+ Py_XDECREF(p->parserHash);
|
|
|
+ Py_XDECREF(p->libFilename_py);
|
|
|
+ (*o->ob_type->tp_free)(o);
|
|
|
+}
|
|
|
+
|
|
|
+static int __pyx_tp_traverse_6bison__ParserEngine(PyObject *o, visitproc v, void *a) {
|
|
|
+ int e;
|
|
|
+ struct __pyx_obj_6bison__ParserEngine *p = (struct __pyx_obj_6bison__ParserEngine *)o;
|
|
|
+ if (p->parser) {
|
|
|
+ e = (*v)(p->parser, a); if (e) return e;
|
|
|
+ }
|
|
|
+ if (p->parserHash) {
|
|
|
+ e = (*v)(p->parserHash, a); if (e) return e;
|
|
|
+ }
|
|
|
+ if (p->libFilename_py) {
|
|
|
+ e = (*v)(p->libFilename_py, a); if (e) return e;
|
|
|
+ }
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+
|
|
|
+static int __pyx_tp_clear_6bison__ParserEngine(PyObject *o) {
|
|
|
+ struct __pyx_obj_6bison__ParserEngine *p = (struct __pyx_obj_6bison__ParserEngine *)o;
|
|
|
+ Py_XDECREF(p->parser);
|
|
|
+ p->parser = Py_None; Py_INCREF(p->parser);
|
|
|
+ Py_XDECREF(p->parserHash);
|
|
|
+ p->parserHash = Py_None; Py_INCREF(p->parserHash);
|
|
|
+ Py_XDECREF(p->libFilename_py);
|
|
|
+ p->libFilename_py = Py_None; Py_INCREF(p->libFilename_py);
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+
|
|
|
+static struct PyMethodDef __pyx_methods_6bison__ParserEngine[] = {
|
|
|
+ {"openCurrentLib", (PyCFunction)__pyx_f_6bison__12ParserEngine_openCurrentLib, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6bison__12ParserEngine_openCurrentLib},
|
|
|
+ {"openLib", (PyCFunction)__pyx_f_6bison__12ParserEngine_openLib, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6bison__12ParserEngine_openLib},
|
|
|
+ {"buildLib", (PyCFunction)__pyx_f_6bison__12ParserEngine_buildLib, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6bison__12ParserEngine_buildLib},
|
|
|
+ {"closeLib", (PyCFunction)__pyx_f_6bison__12ParserEngine_closeLib, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6bison__12ParserEngine_closeLib},
|
|
|
+ {"runEngine", (PyCFunction)__pyx_f_6bison__12ParserEngine_runEngine, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6bison__12ParserEngine_runEngine},
|
|
|
+ {"__del__", (PyCFunction)__pyx_f_6bison__12ParserEngine___del__, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6bison__12ParserEngine___del__},
|
|
|
+ {0, 0, 0, 0}
|
|
|
+};
|
|
|
+
|
|
|
+static PyNumberMethods __pyx_tp_as_number_ParserEngine = {
|
|
|
+ 0, /*nb_add*/
|
|
|
+ 0, /*nb_subtract*/
|
|
|
+ 0, /*nb_multiply*/
|
|
|
+ 0, /*nb_divide*/
|
|
|
+ 0, /*nb_remainder*/
|
|
|
+ 0, /*nb_divmod*/
|
|
|
+ 0, /*nb_power*/
|
|
|
+ 0, /*nb_negative*/
|
|
|
+ 0, /*nb_positive*/
|
|
|
+ 0, /*nb_absolute*/
|
|
|
+ 0, /*nb_nonzero*/
|
|
|
+ 0, /*nb_invert*/
|
|
|
+ 0, /*nb_lshift*/
|
|
|
+ 0, /*nb_rshift*/
|
|
|
+ 0, /*nb_and*/
|
|
|
+ 0, /*nb_xor*/
|
|
|
+ 0, /*nb_or*/
|
|
|
+ 0, /*nb_coerce*/
|
|
|
+ 0, /*nb_int*/
|
|
|
+ 0, /*nb_long*/
|
|
|
+ 0, /*nb_float*/
|
|
|
+ 0, /*nb_oct*/
|
|
|
+ 0, /*nb_hex*/
|
|
|
+ 0, /*nb_inplace_add*/
|
|
|
+ 0, /*nb_inplace_subtract*/
|
|
|
+ 0, /*nb_inplace_multiply*/
|
|
|
+ 0, /*nb_inplace_divide*/
|
|
|
+ 0, /*nb_inplace_remainder*/
|
|
|
+ 0, /*nb_inplace_power*/
|
|
|
+ 0, /*nb_inplace_lshift*/
|
|
|
+ 0, /*nb_inplace_rshift*/
|
|
|
+ 0, /*nb_inplace_and*/
|
|
|
+ 0, /*nb_inplace_xor*/
|
|
|
+ 0, /*nb_inplace_or*/
|
|
|
+ 0, /*nb_floor_divide*/
|
|
|
+ 0, /*nb_true_divide*/
|
|
|
+ 0, /*nb_inplace_floor_divide*/
|
|
|
+ 0, /*nb_inplace_true_divide*/
|
|
|
+};
|
|
|
+
|
|
|
+static PySequenceMethods __pyx_tp_as_sequence_ParserEngine = {
|
|
|
+ 0, /*sq_length*/
|
|
|
+ 0, /*sq_concat*/
|
|
|
+ 0, /*sq_repeat*/
|
|
|
+ 0, /*sq_item*/
|
|
|
+ 0, /*sq_slice*/
|
|
|
+ 0, /*sq_ass_item*/
|
|
|
+ 0, /*sq_ass_slice*/
|
|
|
+ 0, /*sq_contains*/
|
|
|
+ 0, /*sq_inplace_concat*/
|
|
|
+ 0, /*sq_inplace_repeat*/
|
|
|
+};
|
|
|
+
|
|
|
+static PyMappingMethods __pyx_tp_as_mapping_ParserEngine = {
|
|
|
+ 0, /*mp_length*/
|
|
|
+ 0, /*mp_subscript*/
|
|
|
+ 0, /*mp_ass_subscript*/
|
|
|
+};
|
|
|
+
|
|
|
+static PyBufferProcs __pyx_tp_as_buffer_ParserEngine = {
|
|
|
+ 0, /*bf_getreadbuffer*/
|
|
|
+ 0, /*bf_getwritebuffer*/
|
|
|
+ 0, /*bf_getsegcount*/
|
|
|
+ 0, /*bf_getcharbuffer*/
|
|
|
+};
|
|
|
+
|
|
|
+statichere PyTypeObject __pyx_type_6bison__ParserEngine = {
|
|
|
+ PyObject_HEAD_INIT(0)
|
|
|
+ 0, /*ob_size*/
|
|
|
+ "bison_.ParserEngine", /*tp_name*/
|
|
|
+ sizeof(struct __pyx_obj_6bison__ParserEngine), /*tp_basicsize*/
|
|
|
+ 0, /*tp_itemsize*/
|
|
|
+ __pyx_tp_dealloc_6bison__ParserEngine, /*tp_dealloc*/
|
|
|
+ 0, /*tp_print*/
|
|
|
+ 0, /*tp_getattr*/
|
|
|
+ 0, /*tp_setattr*/
|
|
|
+ 0, /*tp_compare*/
|
|
|
+ 0, /*tp_repr*/
|
|
|
+ &__pyx_tp_as_number_ParserEngine, /*tp_as_number*/
|
|
|
+ &__pyx_tp_as_sequence_ParserEngine, /*tp_as_sequence*/
|
|
|
+ &__pyx_tp_as_mapping_ParserEngine, /*tp_as_mapping*/
|
|
|
+ 0, /*tp_hash*/
|
|
|
+ 0, /*tp_call*/
|
|
|
+ 0, /*tp_str*/
|
|
|
+ 0, /*tp_getattro*/
|
|
|
+ 0, /*tp_setattro*/
|
|
|
+ &__pyx_tp_as_buffer_ParserEngine, /*tp_as_buffer*/
|
|
|
+ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
|
|
|
+ "\n Wraps the interface to the binary bison/lex-generated\n parser engine dynamic library.\n \n You shouldn\'t need to deal with this at all.\n\n Takes care of:\n - building the library (if the parser rules have changed)\n - loading the library and extracting the parser entry point\n - calling the entry point\n - closing the library\n\n Makes direct calls to the platform-dependent routines in \n bisondynlib-[linux|windows].c\n ", /*tp_doc*/
|
|
|
+ __pyx_tp_traverse_6bison__ParserEngine, /*tp_traverse*/
|
|
|
+ __pyx_tp_clear_6bison__ParserEngine, /*tp_clear*/
|
|
|
+ 0, /*tp_richcompare*/
|
|
|
+ 0, /*tp_weaklistoffset*/
|
|
|
+ 0, /*tp_iter*/
|
|
|
+ 0, /*tp_iternext*/
|
|
|
+ __pyx_methods_6bison__ParserEngine, /*tp_methods*/
|
|
|
+ 0, /*tp_members*/
|
|
|
+ 0, /*tp_getset*/
|
|
|
+ 0, /*tp_base*/
|
|
|
+ 0, /*tp_dict*/
|
|
|
+ 0, /*tp_descr_get*/
|
|
|
+ 0, /*tp_descr_set*/
|
|
|
+ 0, /*tp_dictoffset*/
|
|
|
+ __pyx_f_6bison__12ParserEngine___init__, /*tp_init*/
|
|
|
+ 0, /*tp_alloc*/
|
|
|
+ __pyx_tp_new_6bison__ParserEngine, /*tp_new*/
|
|
|
+ 0, /*tp_free*/
|
|
|
+ 0, /*tp_is_gc*/
|
|
|
+ 0, /*tp_bases*/
|
|
|
+ 0, /*tp_mro*/
|
|
|
+ 0, /*tp_cache*/
|
|
|
+ 0, /*tp_subclasses*/
|
|
|
+ 0, /*tp_weaklist*/
|
|
|
+};
|
|
|
+
|
|
|
+static struct PyMethodDef __pyx_methods[] = {
|
|
|
+ {"cmpLines", (PyCFunction)__pyx_f_6bison__cmpLines, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6bison__cmpLines},
|
|
|
+ {"hashParserObject", (PyCFunction)__pyx_f_6bison__hashParserObject, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6bison__hashParserObject},
|
|
|
+ {0, 0, 0, 0}
|
|
|
+};
|
|
|
+
|
|
|
+DL_EXPORT(void) initbison_(void); /*proto*/
|
|
|
+DL_EXPORT(void) initbison_(void) {
|
|
|
+ PyObject *__pyx_1 = 0;
|
|
|
+ PyObject *__pyx_2 = 0;
|
|
|
+ PyObject *__pyx_3 = 0;
|
|
|
+ __pyx_m = Py_InitModule4("bison_", __pyx_methods, __pyx_mdoc, 0, PYTHON_API_VERSION);
|
|
|
+ if (!__pyx_m) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3; goto __pyx_L1;};
|
|
|
+ __pyx_b = PyImport_AddModule("__builtin__");
|
|
|
+ if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3; goto __pyx_L1;};
|
|
|
+ if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3; goto __pyx_L1;};
|
|
|
+ if (__Pyx_InternStrings(__pyx_intern_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3; goto __pyx_L1;};
|
|
|
+ if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3; goto __pyx_L1;};
|
|
|
+ __pyx_type_6bison__ParserEngine.tp_free = _PyObject_GC_Del;
|
|
|
+ if (PyType_Ready(&__pyx_type_6bison__ParserEngine) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 137; goto __pyx_L1;}
|
|
|
+ if (PyObject_SetAttrString(__pyx_m, "ParserEngine", (PyObject *)&__pyx_type_6bison__ParserEngine) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 137; goto __pyx_L1;}
|
|
|
+ __pyx_ptype_6bison__ParserEngine = &__pyx_type_6bison__ParserEngine;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":123 */
|
|
|
+ __pyx_1 = __Pyx_Import(__pyx_n_sys, 0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 123; goto __pyx_L1;}
|
|
|
+ if (PyObject_SetAttr(__pyx_m, __pyx_n_sys, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 123; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":123 */
|
|
|
+ __pyx_1 = __Pyx_Import(__pyx_n_os, 0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 123; goto __pyx_L1;}
|
|
|
+ if (PyObject_SetAttr(__pyx_m, __pyx_n_os, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 123; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":123 */
|
|
|
+ __pyx_1 = __Pyx_Import(__pyx_n_sha, 0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 123; goto __pyx_L1;}
|
|
|
+ if (PyObject_SetAttr(__pyx_m, __pyx_n_sha, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 123; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":123 */
|
|
|
+ __pyx_1 = __Pyx_Import(__pyx_n_re, 0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 123; goto __pyx_L1;}
|
|
|
+ if (PyObject_SetAttr(__pyx_m, __pyx_n_re, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 123; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":123 */
|
|
|
+ __pyx_1 = __Pyx_Import(__pyx_n_imp, 0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 123; goto __pyx_L1;}
|
|
|
+ if (PyObject_SetAttr(__pyx_m, __pyx_n_imp, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 123; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":123 */
|
|
|
+ __pyx_1 = __Pyx_Import(__pyx_n_traceback, 0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 123; goto __pyx_L1;}
|
|
|
+ if (PyObject_SetAttr(__pyx_m, __pyx_n_traceback, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 123; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":124 */
|
|
|
+ __pyx_1 = __Pyx_Import(__pyx_k7p, 0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 124; goto __pyx_L1;}
|
|
|
+ if (PyObject_SetAttr(__pyx_m, __pyx_n_distutils, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 124; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":125 */
|
|
|
+ __pyx_1 = __Pyx_Import(__pyx_k8p, 0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 125; goto __pyx_L1;}
|
|
|
+ if (PyObject_SetAttr(__pyx_m, __pyx_n_distutils, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 125; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":130 */
|
|
|
+ __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_re); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 130; goto __pyx_L1;}
|
|
|
+ __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_compile); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 130; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 130; goto __pyx_L1;}
|
|
|
+ Py_INCREF(__pyx_k9p);
|
|
|
+ PyTuple_SET_ITEM(__pyx_1, 0, __pyx_k9p);
|
|
|
+ __pyx_3 = PyObject_CallObject(__pyx_2, __pyx_1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 130; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_2); __pyx_2 = 0;
|
|
|
+ Py_DECREF(__pyx_1); __pyx_1 = 0;
|
|
|
+ if (PyObject_SetAttr(__pyx_m, __pyx_n_reSpaces, __pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 130; goto __pyx_L1;}
|
|
|
+ Py_DECREF(__pyx_3); __pyx_3 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":133 */
|
|
|
+ if (PyObject_SetAttr(__pyx_m, __pyx_n_unquoted, __pyx_k10p) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 133; goto __pyx_L1;}
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":575 */
|
|
|
+ __pyx_2 = PyInt_FromLong(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 575; goto __pyx_L1;}
|
|
|
+ __pyx_k11 = __pyx_2;
|
|
|
+ __pyx_2 = 0;
|
|
|
+
|
|
|
+ /* "/main/pywindows/myprogs/pybison/src/pyrex/bison_.pyx":623 */
|
|
|
+ return;
|
|
|
+ __pyx_L1:;
|
|
|
+ Py_XDECREF(__pyx_1);
|
|
|
+ Py_XDECREF(__pyx_2);
|
|
|
+ Py_XDECREF(__pyx_3);
|
|
|
+ __Pyx_AddTraceback("bison_");
|
|
|
+}
|
|
|
+
|
|
|
+static char *__pyx_filenames[] = {
|
|
|
+ "bison_.pyx",
|
|
|
+};
|
|
|
+statichere char **__pyx_f = __pyx_filenames;
|
|
|
+
|
|
|
+/* Runtime support code */
|
|
|
+
|
|
|
+static int __Pyx_GetStarArgs(
|
|
|
+ PyObject **args,
|
|
|
+ PyObject **kwds,
|
|
|
+ char *kwd_list[],
|
|
|
+ int nargs,
|
|
|
+ PyObject **args2,
|
|
|
+ PyObject **kwds2)
|
|
|
+{
|
|
|
+ PyObject *x = 0, *args1 = 0, *kwds1 = 0;
|
|
|
+
|
|
|
+ if (args2)
|
|
|
+ *args2 = 0;
|
|
|
+ if (kwds2)
|
|
|
+ *kwds2 = 0;
|
|
|
+
|
|
|
+ if (args2) {
|
|
|
+ args1 = PyTuple_GetSlice(*args, 0, nargs);
|
|
|
+ if (!args1)
|
|
|
+ goto bad;
|
|
|
+ *args2 = PyTuple_GetSlice(*args, nargs, PyTuple_Size(*args));
|
|
|
+ if (!*args2)
|
|
|
+ goto bad;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ args1 = *args;
|
|
|
+ Py_INCREF(args1);
|
|
|
+ }
|
|
|
+
|
|
|
+ if (kwds2) {
|
|
|
+ if (*kwds) {
|
|
|
+ char **p;
|
|
|
+ kwds1 = PyDict_New();
|
|
|
+ if (!kwds)
|
|
|
+ goto bad;
|
|
|
+ *kwds2 = PyDict_Copy(*kwds);
|
|
|
+ if (!*kwds2)
|
|
|
+ goto bad;
|
|
|
+ for (p = kwd_list; *p; p++) {
|
|
|
+ x = PyDict_GetItemString(*kwds, *p);
|
|
|
+ if (x) {
|
|
|
+ if (PyDict_SetItemString(kwds1, *p, x) < 0)
|
|
|
+ goto bad;
|
|
|
+ if (PyDict_DelItemString(*kwds2, *p) < 0)
|
|
|
+ goto bad;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ *kwds2 = PyDict_New();
|
|
|
+ if (!*kwds2)
|
|
|
+ goto bad;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ kwds1 = *kwds;
|
|
|
+ Py_XINCREF(kwds1);
|
|
|
+ }
|
|
|
+
|
|
|
+ *args = args1;
|
|
|
+ *kwds = kwds1;
|
|
|
+ return 0;
|
|
|
+bad:
|
|
|
+ Py_XDECREF(args1);
|
|
|
+ Py_XDECREF(kwds1);
|
|
|
+ if (*args2)
|
|
|
+ Py_XDECREF(*args2);
|
|
|
+ if (*kwds2)
|
|
|
+ Py_XDECREF(*kwds2);
|
|
|
+ return -1;
|
|
|
+}
|
|
|
+
|
|
|
+static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list) {
|
|
|
+ PyObject *__import__ = 0;
|
|
|
+ PyObject *empty_list = 0;
|
|
|
+ PyObject *module = 0;
|
|
|
+ PyObject *global_dict = 0;
|
|
|
+ PyObject *empty_dict = 0;
|
|
|
+ PyObject *list;
|
|
|
+ __import__ = PyObject_GetAttrString(__pyx_b, "__import__");
|
|
|
+ if (!__import__)
|
|
|
+ goto bad;
|
|
|
+ if (from_list)
|
|
|
+ list = from_list;
|
|
|
+ else {
|
|
|
+ empty_list = PyList_New(0);
|
|
|
+ if (!empty_list)
|
|
|
+ goto bad;
|
|
|
+ list = empty_list;
|
|
|
+ }
|
|
|
+ global_dict = PyModule_GetDict(__pyx_m);
|
|
|
+ if (!global_dict)
|
|
|
+ goto bad;
|
|
|
+ empty_dict = PyDict_New();
|
|
|
+ if (!empty_dict)
|
|
|
+ goto bad;
|
|
|
+ module = PyObject_CallFunction(__import__, "OOOO",
|
|
|
+ name, global_dict, empty_dict, list);
|
|
|
+bad:
|
|
|
+ Py_XDECREF(empty_list);
|
|
|
+ Py_XDECREF(__import__);
|
|
|
+ Py_XDECREF(empty_dict);
|
|
|
+ return module;
|
|
|
+}
|
|
|
+
|
|
|
+static PyObject *__Pyx_GetName(PyObject *dict, PyObject *name) {
|
|
|
+ PyObject *result;
|
|
|
+ result = PyObject_GetAttr(dict, name);
|
|
|
+ if (!result)
|
|
|
+ PyErr_SetObject(PyExc_NameError, name);
|
|
|
+ return result;
|
|
|
+}
|
|
|
+
|
|
|
+static PyObject *__Pyx_GetStdout(void) {
|
|
|
+ PyObject *f = PySys_GetObject("stdout");
|
|
|
+ if (!f) {
|
|
|
+ PyErr_SetString(PyExc_RuntimeError, "lost sys.stdout");
|
|
|
+ }
|
|
|
+ return f;
|
|
|
+}
|
|
|
+
|
|
|
+static int __Pyx_PrintItem(PyObject *v) {
|
|
|
+ PyObject *f;
|
|
|
+
|
|
|
+ if (!(f = __Pyx_GetStdout()))
|
|
|
+ return -1;
|
|
|
+ if (PyFile_SoftSpace(f, 1)) {
|
|
|
+ if (PyFile_WriteString(" ", f) < 0)
|
|
|
+ return -1;
|
|
|
+ }
|
|
|
+ if (PyFile_WriteObject(v, f, Py_PRINT_RAW) < 0)
|
|
|
+ return -1;
|
|
|
+ if (PyString_Check(v)) {
|
|
|
+ char *s = PyString_AsString(v);
|
|
|
+ int len = PyString_Size(v);
|
|
|
+ if (len > 0 &&
|
|
|
+ isspace(Py_CHARMASK(s[len-1])) &&
|
|
|
+ s[len-1] != ' ')
|
|
|
+ PyFile_SoftSpace(f, 0);
|
|
|
+ }
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+
|
|
|
+static int __Pyx_PrintNewline(void) {
|
|
|
+ PyObject *f;
|
|
|
+
|
|
|
+ if (!(f = __Pyx_GetStdout()))
|
|
|
+ return -1;
|
|
|
+ if (PyFile_WriteString("\n", f) < 0)
|
|
|
+ return -1;
|
|
|
+ PyFile_SoftSpace(f, 0);
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+
|
|
|
+static PyObject *__Pyx_GetExcValue(void) {
|
|
|
+ PyObject *type = 0, *value = 0, *tb = 0;
|
|
|
+ PyObject *result = 0;
|
|
|
+ PyThreadState *tstate = PyThreadState_Get();
|
|
|
+ PyErr_Fetch(&type, &value, &tb);
|
|
|
+ PyErr_NormalizeException(&type, &value, &tb);
|
|
|
+ if (PyErr_Occurred())
|
|
|
+ goto bad;
|
|
|
+ if (!value) {
|
|
|
+ value = Py_None;
|
|
|
+ Py_INCREF(value);
|
|
|
+ }
|
|
|
+ Py_XDECREF(tstate->exc_type);
|
|
|
+ Py_XDECREF(tstate->exc_value);
|
|
|
+ Py_XDECREF(tstate->exc_traceback);
|
|
|
+ tstate->exc_type = type;
|
|
|
+ tstate->exc_value = value;
|
|
|
+ tstate->exc_traceback = tb;
|
|
|
+ result = value;
|
|
|
+ Py_XINCREF(result);
|
|
|
+ type = 0;
|
|
|
+ value = 0;
|
|
|
+ tb = 0;
|
|
|
+bad:
|
|
|
+ Py_XDECREF(type);
|
|
|
+ Py_XDECREF(value);
|
|
|
+ Py_XDECREF(tb);
|
|
|
+ return result;
|
|
|
+}
|
|
|
+
|
|
|
+static void __Pyx_WriteUnraisable(char *name) {
|
|
|
+ PyObject *old_exc, *old_val, *old_tb;
|
|
|
+ PyObject *ctx;
|
|
|
+ PyErr_Fetch(&old_exc, &old_val, &old_tb);
|
|
|
+ ctx = PyString_FromString(name);
|
|
|
+ PyErr_Restore(old_exc, old_val, old_tb);
|
|
|
+ if (!ctx)
|
|
|
+ ctx = Py_None;
|
|
|
+ PyErr_WriteUnraisable(ctx);
|
|
|
+}
|
|
|
+
|
|
|
+static void __Pyx_UnpackError(void) {
|
|
|
+ PyErr_SetString(PyExc_ValueError, "unpack sequence of wrong size");
|
|
|
+}
|
|
|
+
|
|
|
+static PyObject *__Pyx_UnpackItem(PyObject *seq, int i) {
|
|
|
+ PyObject *item;
|
|
|
+ if (!(item = PySequence_GetItem(seq, i))) {
|
|
|
+ if (PyErr_ExceptionMatches(PyExc_IndexError))
|
|
|
+ __Pyx_UnpackError();
|
|
|
+ }
|
|
|
+ return item;
|
|
|
+}
|
|
|
+
|
|
|
+static int __Pyx_EndUnpack(PyObject *seq, int i) {
|
|
|
+ PyObject *item;
|
|
|
+ if (item = PySequence_GetItem(seq, i)) {
|
|
|
+ Py_DECREF(item);
|
|
|
+ __Pyx_UnpackError();
|
|
|
+ return -1;
|
|
|
+ }
|
|
|
+ PyErr_Clear();
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+
|
|
|
+static int __Pyx_InternStrings(__Pyx_InternTabEntry *t) {
|
|
|
+ while (t->p) {
|
|
|
+ *t->p = PyString_InternFromString(t->s);
|
|
|
+ if (!*t->p)
|
|
|
+ return -1;
|
|
|
+ ++t;
|
|
|
+ }
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+
|
|
|
+static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) {
|
|
|
+ while (t->p) {
|
|
|
+ *t->p = PyString_FromStringAndSize(t->s, t->n - 1);
|
|
|
+ if (!*t->p)
|
|
|
+ return -1;
|
|
|
+ ++t;
|
|
|
+ }
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+
|
|
|
+#include "compile.h"
|
|
|
+#include "frameobject.h"
|
|
|
+#include "traceback.h"
|
|
|
+
|
|
|
+static void __Pyx_AddTraceback(char *funcname) {
|
|
|
+ PyObject *py_srcfile = 0;
|
|
|
+ PyObject *py_funcname = 0;
|
|
|
+ PyObject *py_globals = 0;
|
|
|
+ PyObject *empty_tuple = 0;
|
|
|
+ PyObject *empty_string = 0;
|
|
|
+ PyCodeObject *py_code = 0;
|
|
|
+ PyFrameObject *py_frame = 0;
|
|
|
+
|
|
|
+ py_srcfile = PyString_FromString(__pyx_filename);
|
|
|
+ if (!py_srcfile) goto bad;
|
|
|
+ py_funcname = PyString_FromString(funcname);
|
|
|
+ if (!py_funcname) goto bad;
|
|
|
+ py_globals = PyModule_GetDict(__pyx_m);
|
|
|
+ if (!py_globals) goto bad;
|
|
|
+ empty_tuple = PyTuple_New(0);
|
|
|
+ if (!empty_tuple) goto bad;
|
|
|
+ empty_string = PyString_FromString("");
|
|
|
+ if (!empty_string) goto bad;
|
|
|
+ py_code = PyCode_New(
|
|
|
+ 0, /*int argcount,*/
|
|
|
+ 0, /*int nlocals,*/
|
|
|
+ 0, /*int stacksize,*/
|
|
|
+ 0, /*int flags,*/
|
|
|
+ empty_string, /*PyObject *code,*/
|
|
|
+ empty_tuple, /*PyObject *consts,*/
|
|
|
+ empty_tuple, /*PyObject *names,*/
|
|
|
+ empty_tuple, /*PyObject *varnames,*/
|
|
|
+ empty_tuple, /*PyObject *freevars,*/
|
|
|
+ empty_tuple, /*PyObject *cellvars,*/
|
|
|
+ py_srcfile, /*PyObject *filename,*/
|
|
|
+ py_funcname, /*PyObject *name,*/
|
|
|
+ __pyx_lineno, /*int firstlineno,*/
|
|
|
+ empty_string /*PyObject *lnotab*/
|
|
|
+ );
|
|
|
+ if (!py_code) goto bad;
|
|
|
+ py_frame = PyFrame_New(
|
|
|
+ PyThreadState_Get(), /*PyThreadState *tstate,*/
|
|
|
+ py_code, /*PyCodeObject *code,*/
|
|
|
+ py_globals, /*PyObject *globals,*/
|
|
|
+ 0 /*PyObject *locals*/
|
|
|
+ );
|
|
|
+ if (!py_frame) goto bad;
|
|
|
+ py_frame->f_lineno = __pyx_lineno;
|
|
|
+ PyTraceBack_Here(py_frame);
|
|
|
+bad:
|
|
|
+ Py_XDECREF(py_srcfile);
|
|
|
+ Py_XDECREF(py_funcname);
|
|
|
+ Py_XDECREF(empty_tuple);
|
|
|
+ Py_XDECREF(empty_string);
|
|
|
+ Py_XDECREF(py_code);
|
|
|
+ Py_XDECREF(py_frame);
|
|
|
+}
|