mirror of
https://gitlab.com/scemama/irpf90.git
synced 2024-06-02 11:25:19 +02:00
20890 lines
998 KiB
C
20890 lines
998 KiB
C
/* Generated by Cython 0.15.1 on Mon Jul 1 13:12:15 2013 */
|
|
|
|
#define PY_SSIZE_T_CLEAN
|
|
#include "Python.h"
|
|
#ifndef Py_PYTHON_H
|
|
#error Python headers needed to compile C extensions, please install development version of Python.
|
|
#else
|
|
|
|
#include <stddef.h> /* For offsetof */
|
|
#ifndef offsetof
|
|
#define offsetof(type, member) ( (size_t) & ((type*)0) -> member )
|
|
#endif
|
|
|
|
#if !defined(WIN32) && !defined(MS_WINDOWS)
|
|
#ifndef __stdcall
|
|
#define __stdcall
|
|
#endif
|
|
#ifndef __cdecl
|
|
#define __cdecl
|
|
#endif
|
|
#ifndef __fastcall
|
|
#define __fastcall
|
|
#endif
|
|
#endif
|
|
|
|
#ifndef DL_IMPORT
|
|
#define DL_IMPORT(t) t
|
|
#endif
|
|
#ifndef DL_EXPORT
|
|
#define DL_EXPORT(t) t
|
|
#endif
|
|
|
|
#ifndef PY_LONG_LONG
|
|
#define PY_LONG_LONG LONG_LONG
|
|
#endif
|
|
|
|
#if PY_VERSION_HEX < 0x02040000
|
|
#define METH_COEXIST 0
|
|
#define PyDict_CheckExact(op) (Py_TYPE(op) == &PyDict_Type)
|
|
#define PyDict_Contains(d,o) PySequence_Contains(d,o)
|
|
#endif
|
|
|
|
#if PY_VERSION_HEX < 0x02050000
|
|
typedef int Py_ssize_t;
|
|
#define PY_SSIZE_T_MAX INT_MAX
|
|
#define PY_SSIZE_T_MIN INT_MIN
|
|
#define PY_FORMAT_SIZE_T ""
|
|
#define PyInt_FromSsize_t(z) PyInt_FromLong(z)
|
|
#define PyInt_AsSsize_t(o) __Pyx_PyInt_AsInt(o)
|
|
#define PyNumber_Index(o) PyNumber_Int(o)
|
|
#define PyIndex_Check(o) PyNumber_Check(o)
|
|
#define PyErr_WarnEx(category, message, stacklevel) PyErr_Warn(category, message)
|
|
#endif
|
|
|
|
#if PY_VERSION_HEX < 0x02060000
|
|
#define Py_REFCNT(ob) (((PyObject*)(ob))->ob_refcnt)
|
|
#define Py_TYPE(ob) (((PyObject*)(ob))->ob_type)
|
|
#define Py_SIZE(ob) (((PyVarObject*)(ob))->ob_size)
|
|
#define PyVarObject_HEAD_INIT(type, size) \
|
|
PyObject_HEAD_INIT(type) size,
|
|
#define PyType_Modified(t)
|
|
|
|
typedef struct {
|
|
void *buf;
|
|
PyObject *obj;
|
|
Py_ssize_t len;
|
|
Py_ssize_t itemsize;
|
|
int readonly;
|
|
int ndim;
|
|
char *format;
|
|
Py_ssize_t *shape;
|
|
Py_ssize_t *strides;
|
|
Py_ssize_t *suboffsets;
|
|
void *internal;
|
|
} Py_buffer;
|
|
|
|
#define PyBUF_SIMPLE 0
|
|
#define PyBUF_WRITABLE 0x0001
|
|
#define PyBUF_FORMAT 0x0004
|
|
#define PyBUF_ND 0x0008
|
|
#define PyBUF_STRIDES (0x0010 | PyBUF_ND)
|
|
#define PyBUF_C_CONTIGUOUS (0x0020 | PyBUF_STRIDES)
|
|
#define PyBUF_F_CONTIGUOUS (0x0040 | PyBUF_STRIDES)
|
|
#define PyBUF_ANY_CONTIGUOUS (0x0080 | PyBUF_STRIDES)
|
|
#define PyBUF_INDIRECT (0x0100 | PyBUF_STRIDES)
|
|
|
|
#endif
|
|
|
|
#if PY_MAJOR_VERSION < 3
|
|
#define __Pyx_BUILTIN_MODULE_NAME "__builtin__"
|
|
#else
|
|
#define __Pyx_BUILTIN_MODULE_NAME "builtins"
|
|
#endif
|
|
|
|
#if PY_MAJOR_VERSION >= 3
|
|
#define Py_TPFLAGS_CHECKTYPES 0
|
|
#define Py_TPFLAGS_HAVE_INDEX 0
|
|
#endif
|
|
|
|
#if (PY_VERSION_HEX < 0x02060000) || (PY_MAJOR_VERSION >= 3)
|
|
#define Py_TPFLAGS_HAVE_NEWBUFFER 0
|
|
#endif
|
|
|
|
#if PY_MAJOR_VERSION >= 3
|
|
#define PyBaseString_Type PyUnicode_Type
|
|
#define PyStringObject PyUnicodeObject
|
|
#define PyString_Type PyUnicode_Type
|
|
#define PyString_Check PyUnicode_Check
|
|
#define PyString_CheckExact PyUnicode_CheckExact
|
|
#endif
|
|
|
|
#if PY_VERSION_HEX < 0x02060000
|
|
#define PyBytesObject PyStringObject
|
|
#define PyBytes_Type PyString_Type
|
|
#define PyBytes_Check PyString_Check
|
|
#define PyBytes_CheckExact PyString_CheckExact
|
|
#define PyBytes_FromString PyString_FromString
|
|
#define PyBytes_FromStringAndSize PyString_FromStringAndSize
|
|
#define PyBytes_FromFormat PyString_FromFormat
|
|
#define PyBytes_DecodeEscape PyString_DecodeEscape
|
|
#define PyBytes_AsString PyString_AsString
|
|
#define PyBytes_AsStringAndSize PyString_AsStringAndSize
|
|
#define PyBytes_Size PyString_Size
|
|
#define PyBytes_AS_STRING PyString_AS_STRING
|
|
#define PyBytes_GET_SIZE PyString_GET_SIZE
|
|
#define PyBytes_Repr PyString_Repr
|
|
#define PyBytes_Concat PyString_Concat
|
|
#define PyBytes_ConcatAndDel PyString_ConcatAndDel
|
|
#endif
|
|
|
|
#if PY_VERSION_HEX < 0x02060000
|
|
#define PySet_Check(obj) PyObject_TypeCheck(obj, &PySet_Type)
|
|
#define PyFrozenSet_Check(obj) PyObject_TypeCheck(obj, &PyFrozenSet_Type)
|
|
#endif
|
|
#ifndef PySet_CheckExact
|
|
#define PySet_CheckExact(obj) (Py_TYPE(obj) == &PySet_Type)
|
|
#endif
|
|
|
|
#define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type)
|
|
|
|
#if PY_MAJOR_VERSION >= 3
|
|
#define PyIntObject PyLongObject
|
|
#define PyInt_Type PyLong_Type
|
|
#define PyInt_Check(op) PyLong_Check(op)
|
|
#define PyInt_CheckExact(op) PyLong_CheckExact(op)
|
|
#define PyInt_FromString PyLong_FromString
|
|
#define PyInt_FromUnicode PyLong_FromUnicode
|
|
#define PyInt_FromLong PyLong_FromLong
|
|
#define PyInt_FromSize_t PyLong_FromSize_t
|
|
#define PyInt_FromSsize_t PyLong_FromSsize_t
|
|
#define PyInt_AsLong PyLong_AsLong
|
|
#define PyInt_AS_LONG PyLong_AS_LONG
|
|
#define PyInt_AsSsize_t PyLong_AsSsize_t
|
|
#define PyInt_AsUnsignedLongMask PyLong_AsUnsignedLongMask
|
|
#define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask
|
|
#endif
|
|
|
|
#if PY_MAJOR_VERSION >= 3
|
|
#define PyBoolObject PyLongObject
|
|
#endif
|
|
|
|
#if PY_VERSION_HEX < 0x03020000
|
|
typedef long Py_hash_t;
|
|
#define __Pyx_PyInt_FromHash_t PyInt_FromLong
|
|
#define __Pyx_PyInt_AsHash_t PyInt_AsLong
|
|
#else
|
|
#define __Pyx_PyInt_FromHash_t PyInt_FromSsize_t
|
|
#define __Pyx_PyInt_AsHash_t PyInt_AsSsize_t
|
|
#endif
|
|
|
|
|
|
#if PY_MAJOR_VERSION >= 3
|
|
#define __Pyx_PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y)
|
|
#define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceTrueDivide(x,y)
|
|
#else
|
|
#define __Pyx_PyNumber_Divide(x,y) PyNumber_Divide(x,y)
|
|
#define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceDivide(x,y)
|
|
#endif
|
|
|
|
#if (PY_MAJOR_VERSION < 3) || (PY_VERSION_HEX >= 0x03010300)
|
|
#define __Pyx_PySequence_GetSlice(obj, a, b) PySequence_GetSlice(obj, a, b)
|
|
#define __Pyx_PySequence_SetSlice(obj, a, b, value) PySequence_SetSlice(obj, a, b, value)
|
|
#define __Pyx_PySequence_DelSlice(obj, a, b) PySequence_DelSlice(obj, a, b)
|
|
#else
|
|
#define __Pyx_PySequence_GetSlice(obj, a, b) (unlikely(!(obj)) ? \
|
|
(PyErr_SetString(PyExc_SystemError, "null argument to internal routine"), (PyObject*)0) : \
|
|
(likely((obj)->ob_type->tp_as_mapping) ? (PySequence_GetSlice(obj, a, b)) : \
|
|
(PyErr_Format(PyExc_TypeError, "'%.200s' object is unsliceable", (obj)->ob_type->tp_name), (PyObject*)0)))
|
|
#define __Pyx_PySequence_SetSlice(obj, a, b, value) (unlikely(!(obj)) ? \
|
|
(PyErr_SetString(PyExc_SystemError, "null argument to internal routine"), -1) : \
|
|
(likely((obj)->ob_type->tp_as_mapping) ? (PySequence_SetSlice(obj, a, b, value)) : \
|
|
(PyErr_Format(PyExc_TypeError, "'%.200s' object doesn't support slice assignment", (obj)->ob_type->tp_name), -1)))
|
|
#define __Pyx_PySequence_DelSlice(obj, a, b) (unlikely(!(obj)) ? \
|
|
(PyErr_SetString(PyExc_SystemError, "null argument to internal routine"), -1) : \
|
|
(likely((obj)->ob_type->tp_as_mapping) ? (PySequence_DelSlice(obj, a, b)) : \
|
|
(PyErr_Format(PyExc_TypeError, "'%.200s' object doesn't support slice deletion", (obj)->ob_type->tp_name), -1)))
|
|
#endif
|
|
|
|
#if PY_MAJOR_VERSION >= 3
|
|
#define PyMethod_New(func, self, klass) ((self) ? PyMethod_New(func, self) : PyInstanceMethod_New(func))
|
|
#endif
|
|
|
|
#if PY_VERSION_HEX < 0x02050000
|
|
#define __Pyx_GetAttrString(o,n) PyObject_GetAttrString((o),((char *)(n)))
|
|
#define __Pyx_SetAttrString(o,n,a) PyObject_SetAttrString((o),((char *)(n)),(a))
|
|
#define __Pyx_DelAttrString(o,n) PyObject_DelAttrString((o),((char *)(n)))
|
|
#else
|
|
#define __Pyx_GetAttrString(o,n) PyObject_GetAttrString((o),(n))
|
|
#define __Pyx_SetAttrString(o,n,a) PyObject_SetAttrString((o),(n),(a))
|
|
#define __Pyx_DelAttrString(o,n) PyObject_DelAttrString((o),(n))
|
|
#endif
|
|
|
|
#if PY_VERSION_HEX < 0x02050000
|
|
#define __Pyx_NAMESTR(n) ((char *)(n))
|
|
#define __Pyx_DOCSTR(n) ((char *)(n))
|
|
#else
|
|
#define __Pyx_NAMESTR(n) (n)
|
|
#define __Pyx_DOCSTR(n) (n)
|
|
#endif
|
|
|
|
#ifndef __PYX_EXTERN_C
|
|
#ifdef __cplusplus
|
|
#define __PYX_EXTERN_C extern "C"
|
|
#else
|
|
#define __PYX_EXTERN_C extern
|
|
#endif
|
|
#endif
|
|
|
|
#if defined(WIN32) || defined(MS_WINDOWS)
|
|
#define _USE_MATH_DEFINES
|
|
#endif
|
|
#include <math.h>
|
|
#define __PYX_HAVE__preprocessed_text
|
|
#define __PYX_HAVE_API__preprocessed_text
|
|
#ifdef _OPENMP
|
|
#include <omp.h>
|
|
#endif /* _OPENMP */
|
|
|
|
#ifdef PYREX_WITHOUT_ASSERTIONS
|
|
#define CYTHON_WITHOUT_ASSERTIONS
|
|
#endif
|
|
|
|
|
|
/* inline attribute */
|
|
#ifndef CYTHON_INLINE
|
|
#if defined(__GNUC__)
|
|
#define CYTHON_INLINE __inline__
|
|
#elif defined(_MSC_VER)
|
|
#define CYTHON_INLINE __inline
|
|
#elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
|
|
#define CYTHON_INLINE inline
|
|
#else
|
|
#define CYTHON_INLINE
|
|
#endif
|
|
#endif
|
|
|
|
/* unused attribute */
|
|
#ifndef CYTHON_UNUSED
|
|
# if defined(__GNUC__)
|
|
# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
|
|
# define CYTHON_UNUSED __attribute__ ((__unused__))
|
|
# else
|
|
# define CYTHON_UNUSED
|
|
# endif
|
|
# elif defined(__ICC) || defined(__INTEL_COMPILER)
|
|
# define CYTHON_UNUSED __attribute__ ((__unused__))
|
|
# else
|
|
# define CYTHON_UNUSED
|
|
# endif
|
|
#endif
|
|
|
|
typedef struct {PyObject **p; char *s; const long n; const char* encoding; const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry; /*proto*/
|
|
|
|
|
|
/* Type Conversion Predeclarations */
|
|
|
|
#define __Pyx_PyBytes_FromUString(s) PyBytes_FromString((char*)s)
|
|
#define __Pyx_PyBytes_AsUString(s) ((unsigned char*) PyBytes_AsString(s))
|
|
|
|
#define __Pyx_Owned_Py_None(b) (Py_INCREF(Py_None), Py_None)
|
|
#define __Pyx_PyBool_FromLong(b) ((b) ? (Py_INCREF(Py_True), Py_True) : (Py_INCREF(Py_False), Py_False))
|
|
static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*);
|
|
static CYTHON_INLINE PyObject* __Pyx_PyNumber_Int(PyObject* x);
|
|
|
|
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*);
|
|
static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t);
|
|
static CYTHON_INLINE size_t __Pyx_PyInt_AsSize_t(PyObject*);
|
|
|
|
#define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x))
|
|
|
|
|
|
#ifdef __GNUC__
|
|
/* Test for GCC > 2.95 */
|
|
#if __GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95))
|
|
#define likely(x) __builtin_expect(!!(x), 1)
|
|
#define unlikely(x) __builtin_expect(!!(x), 0)
|
|
#else /* __GNUC__ > 2 ... */
|
|
#define likely(x) (x)
|
|
#define unlikely(x) (x)
|
|
#endif /* __GNUC__ > 2 ... */
|
|
#else /* __GNUC__ */
|
|
#define likely(x) (x)
|
|
#define unlikely(x) (x)
|
|
#endif /* __GNUC__ */
|
|
|
|
static PyObject *__pyx_m;
|
|
static PyObject *__pyx_b;
|
|
static PyObject *__pyx_empty_tuple;
|
|
static PyObject *__pyx_empty_bytes;
|
|
static int __pyx_lineno;
|
|
static int __pyx_clineno = 0;
|
|
static const char * __pyx_cfilenm= __FILE__;
|
|
static const char *__pyx_filename;
|
|
|
|
|
|
static const char *__pyx_f[] = {
|
|
"preprocessed_text.py",
|
|
};
|
|
|
|
/*--- Type declarations ---*/
|
|
struct __pyx_obj_17preprocessed_text___pyx_scope_struct__execute_templates;
|
|
struct __pyx_obj_17preprocessed_text___pyx_scope_struct_2_process_old_style_do;
|
|
struct __pyx_obj_17preprocessed_text___pyx_scope_struct_1_irp_simple_statements;
|
|
struct __pyx_obj_17preprocessed_text___pyx_scope_struct_3_check_begin_end;
|
|
|
|
/* "preprocessed_text.py":242
|
|
*
|
|
* ######################################################################
|
|
* def execute_templates(text): # <<<<<<<<<<<<<<
|
|
* '''Execute the templates'''
|
|
* def fail(l,a,b): error.fail(l,"In %s, %s"%(a,b))
|
|
*/
|
|
struct __pyx_obj_17preprocessed_text___pyx_scope_struct__execute_templates {
|
|
PyObject_HEAD
|
|
PyObject *__pyx_v_fail;
|
|
};
|
|
|
|
|
|
/* "preprocessed_text.py":680
|
|
*
|
|
* ######################################################################
|
|
* def process_old_style_do(text): # <<<<<<<<<<<<<<
|
|
* '''Changes old-style do loops to new style'''
|
|
* assert type(text) == list
|
|
*/
|
|
struct __pyx_obj_17preprocessed_text___pyx_scope_struct_2_process_old_style_do {
|
|
PyObject_HEAD
|
|
PyObject *__pyx_v_text;
|
|
};
|
|
|
|
|
|
/* "preprocessed_text.py":454
|
|
*
|
|
* ######################################################################
|
|
* def irp_simple_statements(text): # <<<<<<<<<<<<<<
|
|
* '''Processes simple statements'''
|
|
*
|
|
*/
|
|
struct __pyx_obj_17preprocessed_text___pyx_scope_struct_1_irp_simple_statements {
|
|
PyObject_HEAD
|
|
PyObject *__pyx_v_debug_conditions;
|
|
PyObject *__pyx_v_process_irp_rw;
|
|
PyObject *__pyx_v_process_subroutine;
|
|
};
|
|
|
|
|
|
/* "preprocessed_text.py":759
|
|
*
|
|
* ######################################################################
|
|
* def check_begin_end(text): # <<<<<<<<<<<<<<
|
|
* '''Checks x...endx consistence'''
|
|
*
|
|
*/
|
|
struct __pyx_obj_17preprocessed_text___pyx_scope_struct_3_check_begin_end {
|
|
PyObject_HEAD
|
|
PyObject *__pyx_v_d;
|
|
PyObject *__pyx_v_text;
|
|
};
|
|
|
|
|
|
#ifndef CYTHON_REFNANNY
|
|
#define CYTHON_REFNANNY 0
|
|
#endif
|
|
|
|
#if CYTHON_REFNANNY
|
|
typedef struct {
|
|
void (*INCREF)(void*, PyObject*, int);
|
|
void (*DECREF)(void*, PyObject*, int);
|
|
void (*GOTREF)(void*, PyObject*, int);
|
|
void (*GIVEREF)(void*, PyObject*, int);
|
|
void* (*SetupContext)(const char*, int, const char*);
|
|
void (*FinishContext)(void**);
|
|
} __Pyx_RefNannyAPIStruct;
|
|
static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL;
|
|
static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname); /*proto*/
|
|
#define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL;
|
|
#define __Pyx_RefNannySetupContext(name) __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__)
|
|
#define __Pyx_RefNannyFinishContext() __Pyx_RefNanny->FinishContext(&__pyx_refnanny)
|
|
#define __Pyx_INCREF(r) __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
|
|
#define __Pyx_DECREF(r) __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
|
|
#define __Pyx_GOTREF(r) __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
|
|
#define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
|
|
#define __Pyx_XINCREF(r) do { if((r) != NULL) {__Pyx_INCREF(r); }} while(0)
|
|
#define __Pyx_XDECREF(r) do { if((r) != NULL) {__Pyx_DECREF(r); }} while(0)
|
|
#define __Pyx_XGOTREF(r) do { if((r) != NULL) {__Pyx_GOTREF(r); }} while(0)
|
|
#define __Pyx_XGIVEREF(r) do { if((r) != NULL) {__Pyx_GIVEREF(r);}} while(0)
|
|
#else
|
|
#define __Pyx_RefNannyDeclarations
|
|
#define __Pyx_RefNannySetupContext(name)
|
|
#define __Pyx_RefNannyFinishContext()
|
|
#define __Pyx_INCREF(r) Py_INCREF(r)
|
|
#define __Pyx_DECREF(r) Py_DECREF(r)
|
|
#define __Pyx_GOTREF(r)
|
|
#define __Pyx_GIVEREF(r)
|
|
#define __Pyx_XINCREF(r) Py_XINCREF(r)
|
|
#define __Pyx_XDECREF(r) Py_XDECREF(r)
|
|
#define __Pyx_XGOTREF(r)
|
|
#define __Pyx_XGIVEREF(r)
|
|
#endif /* CYTHON_REFNANNY */
|
|
|
|
static PyObject *__Pyx_GetName(PyObject *dict, PyObject *name); /*proto*/
|
|
|
|
static void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact,
|
|
Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found); /*proto*/
|
|
|
|
static void __Pyx_RaiseDoubleKeywordsError(
|
|
const char* func_name, PyObject* kw_name); /*proto*/
|
|
|
|
static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject **argnames[], PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args, const char* function_name); /*proto*/
|
|
|
|
|
|
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j) {
|
|
PyObject *r;
|
|
if (!j) return NULL;
|
|
r = PyObject_GetItem(o, j);
|
|
Py_DECREF(j);
|
|
return r;
|
|
}
|
|
|
|
|
|
#define __Pyx_GetItemInt_List(o, i, size, to_py_func) (((size) <= sizeof(Py_ssize_t)) ? \
|
|
__Pyx_GetItemInt_List_Fast(o, i) : \
|
|
__Pyx_GetItemInt_Generic(o, to_py_func(i)))
|
|
|
|
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i) {
|
|
if (likely(o != Py_None)) {
|
|
if (likely((0 <= i) & (i < PyList_GET_SIZE(o)))) {
|
|
PyObject *r = PyList_GET_ITEM(o, i);
|
|
Py_INCREF(r);
|
|
return r;
|
|
}
|
|
else if ((-PyList_GET_SIZE(o) <= i) & (i < 0)) {
|
|
PyObject *r = PyList_GET_ITEM(o, PyList_GET_SIZE(o) + i);
|
|
Py_INCREF(r);
|
|
return r;
|
|
}
|
|
}
|
|
return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
|
|
}
|
|
|
|
#define __Pyx_GetItemInt_Tuple(o, i, size, to_py_func) (((size) <= sizeof(Py_ssize_t)) ? \
|
|
__Pyx_GetItemInt_Tuple_Fast(o, i) : \
|
|
__Pyx_GetItemInt_Generic(o, to_py_func(i)))
|
|
|
|
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i) {
|
|
if (likely(o != Py_None)) {
|
|
if (likely((0 <= i) & (i < PyTuple_GET_SIZE(o)))) {
|
|
PyObject *r = PyTuple_GET_ITEM(o, i);
|
|
Py_INCREF(r);
|
|
return r;
|
|
}
|
|
else if ((-PyTuple_GET_SIZE(o) <= i) & (i < 0)) {
|
|
PyObject *r = PyTuple_GET_ITEM(o, PyTuple_GET_SIZE(o) + i);
|
|
Py_INCREF(r);
|
|
return r;
|
|
}
|
|
}
|
|
return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
|
|
}
|
|
|
|
|
|
#define __Pyx_GetItemInt(o, i, size, to_py_func) (((size) <= sizeof(Py_ssize_t)) ? \
|
|
__Pyx_GetItemInt_Fast(o, i) : \
|
|
__Pyx_GetItemInt_Generic(o, to_py_func(i)))
|
|
|
|
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i) {
|
|
PyObject *r;
|
|
if (PyList_CheckExact(o) && ((0 <= i) & (i < PyList_GET_SIZE(o)))) {
|
|
r = PyList_GET_ITEM(o, i);
|
|
Py_INCREF(r);
|
|
}
|
|
else if (PyTuple_CheckExact(o) && ((0 <= i) & (i < PyTuple_GET_SIZE(o)))) {
|
|
r = PyTuple_GET_ITEM(o, i);
|
|
Py_INCREF(r);
|
|
}
|
|
else if (Py_TYPE(o)->tp_as_sequence && Py_TYPE(o)->tp_as_sequence->sq_item && (likely(i >= 0))) {
|
|
r = PySequence_GetItem(o, i);
|
|
}
|
|
else {
|
|
r = __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
|
|
}
|
|
return r;
|
|
}
|
|
|
|
static CYTHON_INLINE int __Pyx_NegateNonNeg(int b) {
|
|
return unlikely(b < 0) ? b : !b;
|
|
}
|
|
static CYTHON_INLINE PyObject* __Pyx_PyBoolOrNull_FromLong(long b) {
|
|
return unlikely(b < 0) ? NULL : __Pyx_PyBool_FromLong(b);
|
|
}
|
|
|
|
static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index);
|
|
|
|
static CYTHON_INLINE void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected);
|
|
|
|
static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected); /*proto*/
|
|
|
|
static CYTHON_INLINE void __Pyx_RaiseUnboundLocalError(const char *varname);
|
|
|
|
static CYTHON_INLINE PyObject* __Pyx_PyObject_Append(PyObject* L, PyObject* x) {
|
|
if (likely(PyList_CheckExact(L))) {
|
|
if (PyList_Append(L, x) < 0) return NULL;
|
|
Py_INCREF(Py_None);
|
|
return Py_None; /* this is just to have an accurate signature */
|
|
}
|
|
else {
|
|
PyObject *r, *m;
|
|
m = __Pyx_GetAttrString(L, "append");
|
|
if (!m) return NULL;
|
|
r = PyObject_CallFunctionObjArgs(m, x, NULL);
|
|
Py_DECREF(m);
|
|
return r;
|
|
}
|
|
}
|
|
|
|
static CYTHON_INLINE void __Pyx_RaiseClosureNameError(const char *varname);
|
|
|
|
static CYTHON_INLINE void __Pyx_RaiseNoneIndexingError(void);
|
|
|
|
#if PY_MAJOR_VERSION >= 3
|
|
static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key) {
|
|
PyObject *value;
|
|
if (unlikely(d == Py_None)) {
|
|
__Pyx_RaiseNoneIndexingError();
|
|
return NULL;
|
|
}
|
|
value = PyDict_GetItemWithError(d, key);
|
|
if (unlikely(!value)) {
|
|
if (!PyErr_Occurred())
|
|
PyErr_SetObject(PyExc_KeyError, key);
|
|
return NULL;
|
|
}
|
|
Py_INCREF(value);
|
|
return value;
|
|
}
|
|
#else
|
|
#define __Pyx_PyDict_GetItem(d, key) PyObject_GetItem(d, key)
|
|
#endif
|
|
|
|
static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb); /*proto*/
|
|
|
|
static CYTHON_INLINE void __Pyx_ExceptionSave(PyObject **type, PyObject **value, PyObject **tb); /*proto*/
|
|
static void __Pyx_ExceptionReset(PyObject *type, PyObject *value, PyObject *tb); /*proto*/
|
|
|
|
static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, long level); /*proto*/
|
|
|
|
#define __pyx_binding_PyCFunctionType_USED 1
|
|
|
|
typedef struct {
|
|
PyCFunctionObject func;
|
|
} __pyx_binding_PyCFunctionType_object;
|
|
|
|
static PyTypeObject __pyx_binding_PyCFunctionType_type;
|
|
static PyTypeObject *__pyx_binding_PyCFunctionType = NULL;
|
|
|
|
static PyObject *__pyx_binding_PyCFunctionType_NewEx(PyMethodDef *ml, PyObject *self, PyObject *module); /* proto */
|
|
#define __pyx_binding_PyCFunctionType_New(ml, self) __pyx_binding_PyCFunctionType_NewEx(ml, self, NULL)
|
|
|
|
static int __pyx_binding_PyCFunctionType_init(void); /* proto */
|
|
|
|
#include <string.h>
|
|
|
|
static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals); /*proto*/
|
|
|
|
static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals); /*proto*/
|
|
|
|
#if PY_MAJOR_VERSION >= 3
|
|
#define __Pyx_PyString_Equals __Pyx_PyUnicode_Equals
|
|
#else
|
|
#define __Pyx_PyString_Equals __Pyx_PyBytes_Equals
|
|
#endif
|
|
|
|
static int __Pyx_Print(PyObject*, PyObject *, int); /*proto*/
|
|
#if PY_MAJOR_VERSION >= 3
|
|
static PyObject* __pyx_print = 0;
|
|
static PyObject* __pyx_print_kwargs = 0;
|
|
#endif
|
|
|
|
static int __Pyx_PrintOne(PyObject* stream, PyObject *o); /*proto*/
|
|
|
|
static CYTHON_INLINE unsigned char __Pyx_PyInt_AsUnsignedChar(PyObject *);
|
|
|
|
static CYTHON_INLINE unsigned short __Pyx_PyInt_AsUnsignedShort(PyObject *);
|
|
|
|
static CYTHON_INLINE unsigned int __Pyx_PyInt_AsUnsignedInt(PyObject *);
|
|
|
|
static CYTHON_INLINE char __Pyx_PyInt_AsChar(PyObject *);
|
|
|
|
static CYTHON_INLINE short __Pyx_PyInt_AsShort(PyObject *);
|
|
|
|
static CYTHON_INLINE int __Pyx_PyInt_AsInt(PyObject *);
|
|
|
|
static CYTHON_INLINE signed char __Pyx_PyInt_AsSignedChar(PyObject *);
|
|
|
|
static CYTHON_INLINE signed short __Pyx_PyInt_AsSignedShort(PyObject *);
|
|
|
|
static CYTHON_INLINE signed int __Pyx_PyInt_AsSignedInt(PyObject *);
|
|
|
|
static CYTHON_INLINE int __Pyx_PyInt_AsLongDouble(PyObject *);
|
|
|
|
static CYTHON_INLINE unsigned long __Pyx_PyInt_AsUnsignedLong(PyObject *);
|
|
|
|
static CYTHON_INLINE unsigned PY_LONG_LONG __Pyx_PyInt_AsUnsignedLongLong(PyObject *);
|
|
|
|
static CYTHON_INLINE long __Pyx_PyInt_AsLong(PyObject *);
|
|
|
|
static CYTHON_INLINE PY_LONG_LONG __Pyx_PyInt_AsLongLong(PyObject *);
|
|
|
|
static CYTHON_INLINE signed long __Pyx_PyInt_AsSignedLong(PyObject *);
|
|
|
|
static CYTHON_INLINE signed PY_LONG_LONG __Pyx_PyInt_AsSignedLongLong(PyObject *);
|
|
|
|
static CYTHON_INLINE int __Pyx_StrEq(const char *, const char *); /*proto*/
|
|
|
|
static int __Pyx_check_binary_version(void);
|
|
|
|
static void __Pyx_AddTraceback(const char *funcname, int __pyx_clineno,
|
|
int __pyx_lineno, const char *__pyx_filename); /*proto*/
|
|
|
|
static int __Pyx_InitStrings(__Pyx_StringTabEntry *t); /*proto*/
|
|
|
|
/* Module declarations from 'preprocessed_text' */
|
|
static PyTypeObject *__pyx_ptype_17preprocessed_text___pyx_scope_struct__execute_templates = 0;
|
|
static PyTypeObject *__pyx_ptype_17preprocessed_text___pyx_scope_struct_1_irp_simple_statements = 0;
|
|
static PyTypeObject *__pyx_ptype_17preprocessed_text___pyx_scope_struct_2_process_old_style_do = 0;
|
|
static PyTypeObject *__pyx_ptype_17preprocessed_text___pyx_scope_struct_3_check_begin_end = 0;
|
|
#define __Pyx_MODULE_NAME "preprocessed_text"
|
|
int __pyx_module_is_main_preprocessed_text = 0;
|
|
|
|
/* Implementation of 'preprocessed_text' */
|
|
static PyObject *__pyx_builtin_map;
|
|
static PyObject *__pyx_builtin_enumerate;
|
|
static PyObject *__pyx_builtin_open;
|
|
static PyObject *__pyx_builtin_zip;
|
|
static PyObject *__pyx_builtin_IOError;
|
|
static PyObject *__pyx_builtin_range;
|
|
static PyObject *__pyx_builtin_IndexError;
|
|
static PyObject *__pyx_builtin_filter;
|
|
static char __pyx_k_1[] = "create_preprocessed_text";
|
|
static char __pyx_k_2[] = "$IRP_ALIGN";
|
|
static char __pyx_k_3[] = "!";
|
|
static char __pyx_k_4[] = " ! ";
|
|
static char __pyx_k_6[] = "()'\"[]";
|
|
static char __pyx_k_7[] = " ";
|
|
static char __pyx_k_8[] = "#";
|
|
static char __pyx_k_9[] = "irpf90 may not work with preprocessor directives. You can use\n Irp_if ... Irp_else ... Irp_endif\ninstead of\n #ifdef ... #else ... #endif";
|
|
static char __pyx_k_10[] = "case(";
|
|
static char __pyx_k_12[] = "$omp";
|
|
static char __pyx_k_13[] = "dec$";
|
|
static char __pyx_k_14[] = "dir$";
|
|
static char __pyx_k_15[] = "$ ";
|
|
static char __pyx_k_16[] = "'do while' should be in 2 words.";
|
|
static char __pyx_k_17[] = "In Begin_Shell, %s '%s'";
|
|
static char __pyx_k_18[] = "Nested Begin_shell";
|
|
static char __pyx_k_19[] = "%s%s_shell_%d";
|
|
static char __pyx_k_20[] = "%s_shell_%d";
|
|
static char __pyx_k_21[] = "%s < %s";
|
|
static char __pyx_k_22[] = "\n";
|
|
static char __pyx_k_23[] = "[";
|
|
static char __pyx_k_25[] = "Too many";
|
|
static char __pyx_k_26[] = "]";
|
|
static char __pyx_k_28[] = "Begin_shell missing";
|
|
static char __pyx_k_29[] = "In %s, %s";
|
|
static char __pyx_k_30[] = "$%s";
|
|
static char __pyx_k_32[] = "Syntax error";
|
|
static char __pyx_k_33[] = "";
|
|
static char __pyx_k_35[] = ",";
|
|
static char __pyx_k_37[] = "template = \"\"\"\n";
|
|
static char __pyx_k_38[] = "Nested Begin_Template";
|
|
static char __pyx_k_39[] = "Missing Subst";
|
|
static char __pyx_k_40[] = "\"\"\"\n";
|
|
static char __pyx_k_41[] = "v = []\n";
|
|
static char __pyx_k_42[] = "Nested Begin_template";
|
|
static char __pyx_k_43[] = "Subst already defined";
|
|
static char __pyx_k_44[] = ";;";
|
|
static char __pyx_k_46[] = ";";
|
|
static char __pyx_k_48[] = "%d variables defined, and %d substitutions";
|
|
static char __pyx_k_49[] = "v.append( { \\\n";
|
|
static char __pyx_k_50[] = " \"%s\": \"\"\"%s\"\"\" ,\n";
|
|
static char __pyx_k_51[] = "} )\n";
|
|
static char __pyx_k_52[] = "for d in v:\n t0 = str(template)\n";
|
|
static char __pyx_k_53[] = " t0 = t0.replace('%s',d['%s'])\n";
|
|
static char __pyx_k_54[] = " print t0\n";
|
|
static char __pyx_k_55[] = "%s%s_template_%d";
|
|
static char __pyx_k_56[] = "%s_template_%d";
|
|
static char __pyx_k_57[] = "python < %s";
|
|
static char __pyx_k_58[] = "^\\s*[!#]";
|
|
static char __pyx_k_60[] = "^\\s*[^ 0-9]+";
|
|
static char __pyx_k_62[] = "Cc#!*";
|
|
static char __pyx_k_63[] = "&";
|
|
static char __pyx_k_64[] = "(\\s*)(.*)(\\+=)(.*$)";
|
|
static char __pyx_k_65[] = "(\\s*)(.*)(-=)(.*$)";
|
|
static char __pyx_k_66[] = "(\\s*)(.*)(\\*=)(.*$)";
|
|
static char __pyx_k_67[] = "+=";
|
|
static char __pyx_k_68[] = "(.*)(\\))(\\s*)(.*)(\\+=)(.*$)";
|
|
static char __pyx_k_69[] = "\\1\\2\\4=\\4+(\\6)";
|
|
static char __pyx_k_70[] = "\\1\\2=\\2+(\\4)";
|
|
static char __pyx_k_71[] = "-=";
|
|
static char __pyx_k_72[] = "\\1\\2=\\2-(\\4)";
|
|
static char __pyx_k_73[] = "*=";
|
|
static char __pyx_k_74[] = "\\1\\2=\\2*(\\4)";
|
|
static char __pyx_k_75[] = "#123456789 ";
|
|
static char __pyx_k_76[] = "%s%s\n";
|
|
static char __pyx_k_77[] = "%s%s";
|
|
static char __pyx_k_78[] = "&\n%s %s %s";
|
|
static char __pyx_k_79[] = "Error in IRP_%s statement";
|
|
static char __pyx_k_80[] = "! >>> %s";
|
|
static char __pyx_k_81[] = " call %ser_%s('%s')";
|
|
static char __pyx_k_82[] = "! >>> END %s ";
|
|
static char __pyx_k_83[] = " call irp_leave(irp_here)";
|
|
static char __pyx_k_86[] = "'";
|
|
static char __pyx_k_87[] = " print *, '%s = ', %s";
|
|
static char __pyx_k_88[] = " print *, ''";
|
|
static char __pyx_k_89[] = "(%s";
|
|
static char __pyx_k_90[] = "(";
|
|
static char __pyx_k_92[] = "Error in Assert statement";
|
|
static char __pyx_k_93[] = "''";
|
|
static char __pyx_k_95[] = " if (.not.%s) then";
|
|
static char __pyx_k_96[] = " call irp_trace";
|
|
static char __pyx_k_97[] = " print *, irp_here//': Assert failed:'";
|
|
static char __pyx_k_98[] = " print *, ' file: %s, line: %d'";
|
|
static char __pyx_k_99[] = " print *, '%s'";
|
|
static char __pyx_k__0[] = "0";
|
|
static char __pyx_k__S[] = "S";
|
|
static char __pyx_k__a[] = "a";
|
|
static char __pyx_k__b[] = "b";
|
|
static char __pyx_k__i[] = "i";
|
|
static char __pyx_k__l[] = "l";
|
|
static char __pyx_k__r[] = "r";
|
|
static char __pyx_k__t[] = "t";
|
|
static char __pyx_k__w[] = "w";
|
|
static char __pyx_k__x[] = "x";
|
|
static char __pyx_k__y[] = "y";
|
|
static char __pyx_k_100[] = " stop 1";
|
|
static char __pyx_k_101[] = " endif";
|
|
static char __pyx_k_102[] = "! <<< END %s";
|
|
static char __pyx_k_106[] = "Error in Begin_provider statement";
|
|
static char __pyx_k_107[] = " character*(%d) :: irp_here = '%s'";
|
|
static char __pyx_k_108[] = " call irp_enter(irp_here)";
|
|
static char __pyx_k_112[] = "Error in Cont_provider statement";
|
|
static char __pyx_k_113[] = "program irp_program";
|
|
static char __pyx_k_114[] = "call irp_init_timer()";
|
|
static char __pyx_k_115[] = "!$OMP PARALLEL";
|
|
static char __pyx_k_116[] = "!$OMP MASTER";
|
|
static char __pyx_k_117[] = " call %s";
|
|
static char __pyx_k_118[] = "!$OMP END MASTER";
|
|
static char __pyx_k_119[] = "!$OMP END PARALLEL";
|
|
static char __pyx_k_120[] = "call irp_print_timer()";
|
|
static char __pyx_k_121[] = " call irp_finalize_%s()";
|
|
static char __pyx_k_122[] = "end program";
|
|
static char __pyx_k_123[] = "subroutine %s";
|
|
static char __pyx_k_124[] = "\"";
|
|
static char __pyx_k_127[] = "Error in include statement";
|
|
static char __pyx_k_128[] = "! include '%s'";
|
|
static char __pyx_k_129[] = " enddo";
|
|
static char __pyx_k_130[] = "Old-style do loops should end with 'continue' or 'end do'";
|
|
static char __pyx_k_134[] = "Error in if statement";
|
|
static char __pyx_k_135[] = ")";
|
|
static char __pyx_k_136[] = "%s then";
|
|
static char __pyx_k_137[] = "end%s";
|
|
static char __pyx_k_138[] = "Missing 'end%s'";
|
|
static char __pyx_k_139[] = " is not closed";
|
|
static char __pyx_k_140[] = "Beginning of block not matched";
|
|
static char __pyx_k_141[] = "change_single_line_ifs";
|
|
static char __pyx_k_142[] = "process_old_style_do";
|
|
static char __pyx_k_143[] = "irp_simple_statements";
|
|
static char __pyx_k_144[] = "invert.irp.f";
|
|
static char __pyx_k_145[] = "=== ";
|
|
static char __pyx_k_146[] = " ===";
|
|
static char __pyx_k_147[] = "*";
|
|
static char __pyx_k_148[] = "end\\s+if";
|
|
static char __pyx_k_150[] = "else\\s+if";
|
|
static char __pyx_k_152[] = "end\\s+do";
|
|
static char __pyx_k_154[] = "end\\s+type";
|
|
static char __pyx_k_156[] = "end\\s+module";
|
|
static char __pyx_k_158[] = "end\\s+select";
|
|
static char __pyx_k_160[] = "&begin_provider";
|
|
static char __pyx_k__Do[] = "Do";
|
|
static char __pyx_k__If[] = "If";
|
|
static char __pyx_k__do[] = "do";
|
|
static char __pyx_k__if[] = "if";
|
|
static char __pyx_k__os[] = "os";
|
|
static char __pyx_k__re[] = "re";
|
|
static char __pyx_k__rw[] = "rw";
|
|
static char __pyx_k__Doc[] = "Doc";
|
|
static char __pyx_k__End[] = "End";
|
|
static char __pyx_k__Use[] = "Use";
|
|
static char __pyx_k__end[] = "end";
|
|
static char __pyx_k__map[] = "map";
|
|
static char __pyx_k__pop[] = "pop";
|
|
static char __pyx_k__str[] = "str";
|
|
static char __pyx_k__sub[] = "sub";
|
|
static char __pyx_k__use[] = "use";
|
|
static char __pyx_k__zip[] = "zip";
|
|
static char __pyx_k__Call[] = "Call";
|
|
static char __pyx_k__Case[] = "Case";
|
|
static char __pyx_k__Else[] = "Else";
|
|
static char __pyx_k__Free[] = "Free";
|
|
static char __pyx_k__Line[] = "Line";
|
|
static char __pyx_k___doc[] = "_doc";
|
|
static char __pyx_k__call[] = "call";
|
|
static char __pyx_k__case[] = "case";
|
|
static char __pyx_k__else[] = "else";
|
|
static char __pyx_k__fail[] = "fail";
|
|
static char __pyx_k__find[] = "find";
|
|
static char __pyx_k__form[] = "form";
|
|
static char __pyx_k__free[] = "free";
|
|
static char __pyx_k__join[] = "join";
|
|
static char __pyx_k__line[] = "line";
|
|
static char __pyx_k__open[] = "open";
|
|
static char __pyx_k__read[] = "read";
|
|
static char __pyx_k__save[] = "save";
|
|
static char __pyx_k__text[] = "text";
|
|
static char __pyx_k__then[] = "then";
|
|
static char __pyx_k__util[] = "util";
|
|
static char __pyx_k__warn[] = "warn";
|
|
static char __pyx_k__writ[] = "writ";
|
|
static char __pyx_k__Enddo[] = "Enddo";
|
|
static char __pyx_k__Endif[] = "Endif";
|
|
static char __pyx_k__NoDep[] = "NoDep";
|
|
static char __pyx_k__Subst[] = "Subst";
|
|
static char __pyx_k__Touch[] = "Touch";
|
|
static char __pyx_k__align[] = "align";
|
|
static char __pyx_k__begin[] = "begin";
|
|
static char __pyx_k__close[] = "close";
|
|
static char __pyx_k__debug[] = "debug";
|
|
static char __pyx_k__enddo[] = "enddo";
|
|
static char __pyx_k__endif[] = "endif";
|
|
static char __pyx_k__error[] = "error";
|
|
static char __pyx_k__group[] = "group";
|
|
static char __pyx_k__lines[] = "lines";
|
|
static char __pyx_k__lower[] = "lower";
|
|
static char __pyx_k__match[] = "match";
|
|
static char __pyx_k__popen[] = "popen";
|
|
static char __pyx_k__range[] = "range";
|
|
static char __pyx_k__split[] = "split";
|
|
static char __pyx_k__strip[] = "strip";
|
|
static char __pyx_k__subst[] = "subst";
|
|
static char __pyx_k__touch[] = "touch";
|
|
static char __pyx_k__Assert[] = "Assert";
|
|
static char __pyx_k__Elseif[] = "Elseif";
|
|
static char __pyx_k__Irp_If[] = "Irp_If";
|
|
static char __pyx_k__Openmp[] = "Openmp";
|
|
static char __pyx_k__Return[] = "Return";
|
|
static char __pyx_k__Select[] = "Select";
|
|
static char __pyx_k__assert[] = "assert";
|
|
static char __pyx_k__elseif[] = "elseif";
|
|
static char __pyx_k__filter[] = "filter";
|
|
static char __pyx_k__irp_id[] = "irp_id";
|
|
static char __pyx_k__irp_if[] = "irp_if";
|
|
static char __pyx_k__irpdir[] = "irpdir";
|
|
static char __pyx_k__is_doc[] = "is_doc";
|
|
static char __pyx_k__lstrip[] = "lstrip";
|
|
static char __pyx_k__no_dep[] = "no_dep";
|
|
static char __pyx_k__number[] = "number";
|
|
static char __pyx_k__remove[] = "remove";
|
|
static char __pyx_k__return[] = "return";
|
|
static char __pyx_k__rstrip[] = "rstrip";
|
|
static char __pyx_k__search[] = "search";
|
|
static char __pyx_k__select[] = "select";
|
|
static char __pyx_k__End_doc[] = "End_doc";
|
|
static char __pyx_k__IOError[] = "IOError";
|
|
static char __pyx_k__Include[] = "Include";
|
|
static char __pyx_k__Missing[] = "Missing";
|
|
static char __pyx_k__Program[] = "Program";
|
|
static char __pyx_k__Provide[] = "Provide";
|
|
static char __pyx_k__compile[] = "compile";
|
|
static char __pyx_k__defined[] = "defined";
|
|
static char __pyx_k__dowhile[] = "dowhile";
|
|
static char __pyx_k__end_doc[] = "end_doc";
|
|
static char __pyx_k__endtype[] = "endtype";
|
|
static char __pyx_k__include[] = "include";
|
|
static char __pyx_k__isdigit[] = "isdigit";
|
|
static char __pyx_k__program[] = "program";
|
|
static char __pyx_k__provide[] = "provide";
|
|
static char __pyx_k__re_decl[] = "re_decl";
|
|
static char __pyx_k__re_test[] = "re_test";
|
|
static char __pyx_k__regexps[] = "regexps";
|
|
static char __pyx_k__replace[] = "replace";
|
|
static char __pyx_k__Continue[] = "Continue";
|
|
static char __pyx_k__Function[] = "Function";
|
|
static char __pyx_k__Implicit[] = "Implicit";
|
|
static char __pyx_k__Irp_Else[] = "Irp_Else";
|
|
static char __pyx_k__Irp_read[] = "Irp_read";
|
|
static char __pyx_k____main__[] = "__main__";
|
|
static char __pyx_k____name__[] = "__name__";
|
|
static char __pyx_k____test__[] = "__test__";
|
|
static char __pyx_k__continue[] = "continue";
|
|
static char __pyx_k__do_debug[] = "do_debug";
|
|
static char __pyx_k__endswith[] = "endswith";
|
|
static char __pyx_k__filename[] = "filename";
|
|
static char __pyx_k__function[] = "function";
|
|
static char __pyx_k__get_text[] = "get_text";
|
|
static char __pyx_k__get_type[] = "get_type";
|
|
static char __pyx_k__implicit[] = "implicit";
|
|
static char __pyx_k__irp_else[] = "irp_else";
|
|
static char __pyx_k__irp_read[] = "irp_read";
|
|
static char __pyx_k__irpf90_t[] = "irpf90_t";
|
|
static char __pyx_k__re_enddo[] = "re_enddo";
|
|
static char __pyx_k__re_endif[] = "re_endif";
|
|
static char __pyx_k__template[] = "template";
|
|
static char __pyx_k__Begin_doc[] = "Begin_doc";
|
|
static char __pyx_k__Directive[] = "Directive";
|
|
static char __pyx_k__End_shell[] = "End_shell";
|
|
static char __pyx_k__Free_form[] = "Free_form";
|
|
static char __pyx_k__Irp_Endif[] = "Irp_Endif";
|
|
static char __pyx_k__Irp_write[] = "Irp_write";
|
|
static char __pyx_k__SoftTouch[] = "SoftTouch";
|
|
static char __pyx_k__begin_doc[] = "begin_doc";
|
|
static char __pyx_k__do_assert[] = "do_assert";
|
|
static char __pyx_k__do_openmp[] = "do_openmp";
|
|
static char __pyx_k__end_shell[] = "end_shell";
|
|
static char __pyx_k__endmodule[] = "endmodule";
|
|
static char __pyx_k__endselect[] = "endselect";
|
|
static char __pyx_k__enumerate[] = "enumerate";
|
|
static char __pyx_k__irp_endif[] = "irp_endif";
|
|
static char __pyx_k__irp_write[] = "irp_write";
|
|
static char __pyx_k__re_elseif[] = "re_elseif";
|
|
static char __pyx_k__readlines[] = "readlines";
|
|
static char __pyx_k__recursive[] = "recursive";
|
|
static char __pyx_k__Empty_line[] = "Empty_line";
|
|
static char __pyx_k__End_select[] = "End_select";
|
|
static char __pyx_k__Fixed_form[] = "Fixed_form";
|
|
static char __pyx_k__IndexError[] = "IndexError";
|
|
static char __pyx_k__Subroutine[] = "Subroutine";
|
|
static char __pyx_k__directives[] = "directives";
|
|
static char __pyx_k__do_profile[] = "do_profile";
|
|
static char __pyx_k__re_comment[] = "re_comment";
|
|
static char __pyx_k__re_endtype[] = "re_endtype";
|
|
static char __pyx_k__selectcase[] = "selectcase";
|
|
static char __pyx_k__soft_touch[] = "soft_touch";
|
|
static char __pyx_k__startswith[] = "startswith";
|
|
static char __pyx_k__subroutine[] = "subroutine";
|
|
static char __pyx_k__writelines[] = "writelines";
|
|
static char __pyx_k__Begin_shell[] = "Begin_shell";
|
|
static char __pyx_k__Declaration[] = "Declaration";
|
|
static char __pyx_k__Provide_all[] = "Provide_all";
|
|
static char __pyx_k__Simple_line[] = "Simple_line";
|
|
static char __pyx_k__begin_shell[] = "begin_shell";
|
|
static char __pyx_k__simple_dict[] = "simple_dict";
|
|
static char __pyx_k__End_provider[] = "End_provider";
|
|
static char __pyx_k__End_template[] = "End_template";
|
|
static char __pyx_k__command_line[] = "command_line";
|
|
static char __pyx_k__end_provider[] = "end_provider";
|
|
static char __pyx_k__end_template[] = "end_template";
|
|
static char __pyx_k__find_subname[] = "find_subname";
|
|
static char __pyx_k__irpf90_files[] = "irpf90_files";
|
|
static char __pyx_k__re_endmodule[] = "re_endmodule";
|
|
static char __pyx_k__re_endselect[] = "re_endselect";
|
|
static char __pyx_k__Cont_provider[] = "Cont_provider";
|
|
static char __pyx_k__add_operators[] = "add_operators";
|
|
static char __pyx_k__execute_shell[] = "execute_shell";
|
|
static char __pyx_k__parallel_loop[] = "parallel_loop";
|
|
static char __pyx_k__remove_ifdefs[] = "remove_ifdefs";
|
|
static char __pyx_k__Begin_provider[] = "Begin_provider";
|
|
static char __pyx_k__Begin_template[] = "Begin_template";
|
|
static char __pyx_k__begin_provider[] = "begin_provider";
|
|
static char __pyx_k__begin_template[] = "begin_template";
|
|
static char __pyx_k__change_includes[] = "change_includes";
|
|
static char __pyx_k__check_begin_end[] = "check_begin_end";
|
|
static char __pyx_k__remove_comments[] = "remove_comments";
|
|
static char __pyx_k__execute_templates[] = "execute_templates";
|
|
static char __pyx_k__preprocessed_text[] = "preprocessed_text";
|
|
static char __pyx_k__remove_continuation[] = "remove_continuation";
|
|
static PyObject *__pyx_n_s_1;
|
|
static PyObject *__pyx_kp_s_10;
|
|
static PyObject *__pyx_kp_s_100;
|
|
static PyObject *__pyx_kp_s_101;
|
|
static PyObject *__pyx_kp_s_102;
|
|
static PyObject *__pyx_kp_s_106;
|
|
static PyObject *__pyx_kp_s_107;
|
|
static PyObject *__pyx_kp_s_108;
|
|
static PyObject *__pyx_kp_s_112;
|
|
static PyObject *__pyx_kp_s_113;
|
|
static PyObject *__pyx_kp_s_114;
|
|
static PyObject *__pyx_kp_s_115;
|
|
static PyObject *__pyx_kp_s_116;
|
|
static PyObject *__pyx_kp_s_117;
|
|
static PyObject *__pyx_kp_s_118;
|
|
static PyObject *__pyx_kp_s_119;
|
|
static PyObject *__pyx_kp_s_12;
|
|
static PyObject *__pyx_kp_s_120;
|
|
static PyObject *__pyx_kp_s_121;
|
|
static PyObject *__pyx_kp_s_122;
|
|
static PyObject *__pyx_kp_s_123;
|
|
static PyObject *__pyx_kp_s_124;
|
|
static PyObject *__pyx_kp_s_127;
|
|
static PyObject *__pyx_kp_s_128;
|
|
static PyObject *__pyx_kp_s_129;
|
|
static PyObject *__pyx_kp_s_13;
|
|
static PyObject *__pyx_kp_s_130;
|
|
static PyObject *__pyx_kp_s_134;
|
|
static PyObject *__pyx_kp_s_135;
|
|
static PyObject *__pyx_kp_s_136;
|
|
static PyObject *__pyx_kp_s_137;
|
|
static PyObject *__pyx_kp_s_138;
|
|
static PyObject *__pyx_kp_s_139;
|
|
static PyObject *__pyx_kp_s_14;
|
|
static PyObject *__pyx_kp_s_140;
|
|
static PyObject *__pyx_n_s_141;
|
|
static PyObject *__pyx_n_s_142;
|
|
static PyObject *__pyx_n_s_143;
|
|
static PyObject *__pyx_kp_s_144;
|
|
static PyObject *__pyx_kp_s_145;
|
|
static PyObject *__pyx_kp_s_146;
|
|
static PyObject *__pyx_n_s_147;
|
|
static PyObject *__pyx_kp_s_148;
|
|
static PyObject *__pyx_kp_s_15;
|
|
static PyObject *__pyx_kp_s_150;
|
|
static PyObject *__pyx_kp_s_152;
|
|
static PyObject *__pyx_kp_s_154;
|
|
static PyObject *__pyx_kp_s_156;
|
|
static PyObject *__pyx_kp_s_158;
|
|
static PyObject *__pyx_kp_s_16;
|
|
static PyObject *__pyx_kp_s_160;
|
|
static PyObject *__pyx_kp_s_17;
|
|
static PyObject *__pyx_kp_s_18;
|
|
static PyObject *__pyx_kp_s_19;
|
|
static PyObject *__pyx_kp_s_2;
|
|
static PyObject *__pyx_kp_s_20;
|
|
static PyObject *__pyx_kp_s_21;
|
|
static PyObject *__pyx_kp_s_22;
|
|
static PyObject *__pyx_kp_s_23;
|
|
static PyObject *__pyx_kp_s_25;
|
|
static PyObject *__pyx_kp_s_26;
|
|
static PyObject *__pyx_kp_s_28;
|
|
static PyObject *__pyx_kp_s_29;
|
|
static PyObject *__pyx_kp_s_3;
|
|
static PyObject *__pyx_kp_s_30;
|
|
static PyObject *__pyx_kp_s_32;
|
|
static PyObject *__pyx_kp_s_33;
|
|
static PyObject *__pyx_kp_s_35;
|
|
static PyObject *__pyx_kp_s_37;
|
|
static PyObject *__pyx_kp_s_38;
|
|
static PyObject *__pyx_kp_s_39;
|
|
static PyObject *__pyx_kp_s_4;
|
|
static PyObject *__pyx_kp_s_40;
|
|
static PyObject *__pyx_kp_s_41;
|
|
static PyObject *__pyx_kp_s_42;
|
|
static PyObject *__pyx_kp_s_43;
|
|
static PyObject *__pyx_kp_s_44;
|
|
static PyObject *__pyx_kp_s_46;
|
|
static PyObject *__pyx_kp_s_48;
|
|
static PyObject *__pyx_kp_s_49;
|
|
static PyObject *__pyx_kp_s_50;
|
|
static PyObject *__pyx_kp_s_51;
|
|
static PyObject *__pyx_kp_s_52;
|
|
static PyObject *__pyx_kp_s_53;
|
|
static PyObject *__pyx_kp_s_54;
|
|
static PyObject *__pyx_kp_s_55;
|
|
static PyObject *__pyx_kp_s_56;
|
|
static PyObject *__pyx_kp_s_57;
|
|
static PyObject *__pyx_kp_s_58;
|
|
static PyObject *__pyx_kp_s_6;
|
|
static PyObject *__pyx_kp_s_60;
|
|
static PyObject *__pyx_kp_s_62;
|
|
static PyObject *__pyx_kp_s_63;
|
|
static PyObject *__pyx_kp_s_64;
|
|
static PyObject *__pyx_kp_s_65;
|
|
static PyObject *__pyx_kp_s_66;
|
|
static PyObject *__pyx_kp_s_67;
|
|
static PyObject *__pyx_kp_s_68;
|
|
static PyObject *__pyx_kp_s_69;
|
|
static PyObject *__pyx_kp_s_7;
|
|
static PyObject *__pyx_kp_s_70;
|
|
static PyObject *__pyx_kp_s_71;
|
|
static PyObject *__pyx_kp_s_72;
|
|
static PyObject *__pyx_kp_s_73;
|
|
static PyObject *__pyx_kp_s_74;
|
|
static PyObject *__pyx_kp_s_75;
|
|
static PyObject *__pyx_kp_s_76;
|
|
static PyObject *__pyx_kp_s_77;
|
|
static PyObject *__pyx_kp_s_78;
|
|
static PyObject *__pyx_kp_s_79;
|
|
static PyObject *__pyx_kp_s_8;
|
|
static PyObject *__pyx_kp_s_80;
|
|
static PyObject *__pyx_kp_s_81;
|
|
static PyObject *__pyx_kp_s_82;
|
|
static PyObject *__pyx_kp_s_83;
|
|
static PyObject *__pyx_kp_s_86;
|
|
static PyObject *__pyx_kp_s_87;
|
|
static PyObject *__pyx_kp_s_88;
|
|
static PyObject *__pyx_kp_s_89;
|
|
static PyObject *__pyx_kp_s_9;
|
|
static PyObject *__pyx_kp_s_90;
|
|
static PyObject *__pyx_kp_s_92;
|
|
static PyObject *__pyx_kp_s_93;
|
|
static PyObject *__pyx_kp_s_95;
|
|
static PyObject *__pyx_kp_s_96;
|
|
static PyObject *__pyx_kp_s_97;
|
|
static PyObject *__pyx_kp_s_98;
|
|
static PyObject *__pyx_kp_s_99;
|
|
static PyObject *__pyx_kp_s__0;
|
|
static PyObject *__pyx_n_s__Assert;
|
|
static PyObject *__pyx_n_s__Begin_doc;
|
|
static PyObject *__pyx_n_s__Begin_provider;
|
|
static PyObject *__pyx_n_s__Begin_shell;
|
|
static PyObject *__pyx_n_s__Begin_template;
|
|
static PyObject *__pyx_n_s__Call;
|
|
static PyObject *__pyx_n_s__Case;
|
|
static PyObject *__pyx_n_s__Cont_provider;
|
|
static PyObject *__pyx_n_s__Continue;
|
|
static PyObject *__pyx_n_s__Declaration;
|
|
static PyObject *__pyx_n_s__Directive;
|
|
static PyObject *__pyx_n_s__Do;
|
|
static PyObject *__pyx_n_s__Doc;
|
|
static PyObject *__pyx_n_s__Else;
|
|
static PyObject *__pyx_n_s__Elseif;
|
|
static PyObject *__pyx_n_s__Empty_line;
|
|
static PyObject *__pyx_n_s__End;
|
|
static PyObject *__pyx_n_s__End_doc;
|
|
static PyObject *__pyx_n_s__End_provider;
|
|
static PyObject *__pyx_n_s__End_select;
|
|
static PyObject *__pyx_n_s__End_shell;
|
|
static PyObject *__pyx_n_s__End_template;
|
|
static PyObject *__pyx_n_s__Enddo;
|
|
static PyObject *__pyx_n_s__Endif;
|
|
static PyObject *__pyx_n_s__Fixed_form;
|
|
static PyObject *__pyx_n_s__Free;
|
|
static PyObject *__pyx_n_s__Free_form;
|
|
static PyObject *__pyx_n_s__Function;
|
|
static PyObject *__pyx_n_s__IOError;
|
|
static PyObject *__pyx_n_s__If;
|
|
static PyObject *__pyx_n_s__Implicit;
|
|
static PyObject *__pyx_n_s__Include;
|
|
static PyObject *__pyx_n_s__IndexError;
|
|
static PyObject *__pyx_n_s__Irp_Else;
|
|
static PyObject *__pyx_n_s__Irp_Endif;
|
|
static PyObject *__pyx_n_s__Irp_If;
|
|
static PyObject *__pyx_n_s__Irp_read;
|
|
static PyObject *__pyx_n_s__Irp_write;
|
|
static PyObject *__pyx_n_s__Line;
|
|
static PyObject *__pyx_n_s__Missing;
|
|
static PyObject *__pyx_n_s__NoDep;
|
|
static PyObject *__pyx_n_s__Openmp;
|
|
static PyObject *__pyx_n_s__Program;
|
|
static PyObject *__pyx_n_s__Provide;
|
|
static PyObject *__pyx_n_s__Provide_all;
|
|
static PyObject *__pyx_n_s__Return;
|
|
static PyObject *__pyx_n_s__S;
|
|
static PyObject *__pyx_n_s__Select;
|
|
static PyObject *__pyx_n_s__Simple_line;
|
|
static PyObject *__pyx_n_s__SoftTouch;
|
|
static PyObject *__pyx_n_s__Subroutine;
|
|
static PyObject *__pyx_n_s__Subst;
|
|
static PyObject *__pyx_n_s__Touch;
|
|
static PyObject *__pyx_n_s__Use;
|
|
static PyObject *__pyx_n_s____main__;
|
|
static PyObject *__pyx_n_s____name__;
|
|
static PyObject *__pyx_n_s____test__;
|
|
static PyObject *__pyx_n_s___doc;
|
|
static PyObject *__pyx_n_s__a;
|
|
static PyObject *__pyx_n_s__add_operators;
|
|
static PyObject *__pyx_n_s__align;
|
|
static PyObject *__pyx_n_s__assert;
|
|
static PyObject *__pyx_n_s__b;
|
|
static PyObject *__pyx_n_s__begin;
|
|
static PyObject *__pyx_n_s__begin_doc;
|
|
static PyObject *__pyx_n_s__begin_provider;
|
|
static PyObject *__pyx_n_s__begin_shell;
|
|
static PyObject *__pyx_n_s__begin_template;
|
|
static PyObject *__pyx_n_s__call;
|
|
static PyObject *__pyx_n_s__case;
|
|
static PyObject *__pyx_n_s__change_includes;
|
|
static PyObject *__pyx_n_s__check_begin_end;
|
|
static PyObject *__pyx_n_s__close;
|
|
static PyObject *__pyx_n_s__command_line;
|
|
static PyObject *__pyx_n_s__compile;
|
|
static PyObject *__pyx_n_s__continue;
|
|
static PyObject *__pyx_n_s__debug;
|
|
static PyObject *__pyx_n_s__defined;
|
|
static PyObject *__pyx_n_s__directives;
|
|
static PyObject *__pyx_n_s__do;
|
|
static PyObject *__pyx_n_s__do_assert;
|
|
static PyObject *__pyx_n_s__do_debug;
|
|
static PyObject *__pyx_n_s__do_openmp;
|
|
static PyObject *__pyx_n_s__do_profile;
|
|
static PyObject *__pyx_n_s__dowhile;
|
|
static PyObject *__pyx_n_s__else;
|
|
static PyObject *__pyx_n_s__elseif;
|
|
static PyObject *__pyx_n_s__end;
|
|
static PyObject *__pyx_n_s__end_doc;
|
|
static PyObject *__pyx_n_s__end_provider;
|
|
static PyObject *__pyx_n_s__end_shell;
|
|
static PyObject *__pyx_n_s__end_template;
|
|
static PyObject *__pyx_n_s__enddo;
|
|
static PyObject *__pyx_n_s__endif;
|
|
static PyObject *__pyx_n_s__endmodule;
|
|
static PyObject *__pyx_n_s__endselect;
|
|
static PyObject *__pyx_n_s__endswith;
|
|
static PyObject *__pyx_n_s__endtype;
|
|
static PyObject *__pyx_n_s__enumerate;
|
|
static PyObject *__pyx_n_s__error;
|
|
static PyObject *__pyx_n_s__execute_shell;
|
|
static PyObject *__pyx_n_s__execute_templates;
|
|
static PyObject *__pyx_n_s__fail;
|
|
static PyObject *__pyx_n_s__filename;
|
|
static PyObject *__pyx_n_s__filter;
|
|
static PyObject *__pyx_n_s__find;
|
|
static PyObject *__pyx_n_s__find_subname;
|
|
static PyObject *__pyx_n_s__form;
|
|
static PyObject *__pyx_n_s__free;
|
|
static PyObject *__pyx_n_s__function;
|
|
static PyObject *__pyx_n_s__get_text;
|
|
static PyObject *__pyx_n_s__get_type;
|
|
static PyObject *__pyx_n_s__group;
|
|
static PyObject *__pyx_n_s__i;
|
|
static PyObject *__pyx_n_s__if;
|
|
static PyObject *__pyx_n_s__implicit;
|
|
static PyObject *__pyx_n_s__include;
|
|
static PyObject *__pyx_n_s__irp_else;
|
|
static PyObject *__pyx_n_s__irp_endif;
|
|
static PyObject *__pyx_n_s__irp_id;
|
|
static PyObject *__pyx_n_s__irp_if;
|
|
static PyObject *__pyx_n_s__irp_read;
|
|
static PyObject *__pyx_n_s__irp_write;
|
|
static PyObject *__pyx_n_s__irpdir;
|
|
static PyObject *__pyx_n_s__irpf90_files;
|
|
static PyObject *__pyx_n_s__irpf90_t;
|
|
static PyObject *__pyx_n_s__is_doc;
|
|
static PyObject *__pyx_n_s__isdigit;
|
|
static PyObject *__pyx_n_s__join;
|
|
static PyObject *__pyx_n_s__l;
|
|
static PyObject *__pyx_n_s__line;
|
|
static PyObject *__pyx_n_s__lines;
|
|
static PyObject *__pyx_n_s__lower;
|
|
static PyObject *__pyx_n_s__lstrip;
|
|
static PyObject *__pyx_n_s__map;
|
|
static PyObject *__pyx_n_s__match;
|
|
static PyObject *__pyx_n_s__no_dep;
|
|
static PyObject *__pyx_n_s__number;
|
|
static PyObject *__pyx_n_s__open;
|
|
static PyObject *__pyx_n_s__os;
|
|
static PyObject *__pyx_n_s__parallel_loop;
|
|
static PyObject *__pyx_n_s__pop;
|
|
static PyObject *__pyx_n_s__popen;
|
|
static PyObject *__pyx_n_s__preprocessed_text;
|
|
static PyObject *__pyx_n_s__program;
|
|
static PyObject *__pyx_n_s__provide;
|
|
static PyObject *__pyx_n_s__r;
|
|
static PyObject *__pyx_n_s__range;
|
|
static PyObject *__pyx_n_s__re;
|
|
static PyObject *__pyx_n_s__re_comment;
|
|
static PyObject *__pyx_n_s__re_decl;
|
|
static PyObject *__pyx_n_s__re_elseif;
|
|
static PyObject *__pyx_n_s__re_enddo;
|
|
static PyObject *__pyx_n_s__re_endif;
|
|
static PyObject *__pyx_n_s__re_endmodule;
|
|
static PyObject *__pyx_n_s__re_endselect;
|
|
static PyObject *__pyx_n_s__re_endtype;
|
|
static PyObject *__pyx_n_s__re_test;
|
|
static PyObject *__pyx_n_s__read;
|
|
static PyObject *__pyx_n_s__readlines;
|
|
static PyObject *__pyx_n_s__recursive;
|
|
static PyObject *__pyx_n_s__regexps;
|
|
static PyObject *__pyx_n_s__remove;
|
|
static PyObject *__pyx_n_s__remove_comments;
|
|
static PyObject *__pyx_n_s__remove_continuation;
|
|
static PyObject *__pyx_n_s__remove_ifdefs;
|
|
static PyObject *__pyx_n_s__replace;
|
|
static PyObject *__pyx_n_s__return;
|
|
static PyObject *__pyx_n_s__rstrip;
|
|
static PyObject *__pyx_n_s__rw;
|
|
static PyObject *__pyx_n_s__save;
|
|
static PyObject *__pyx_n_s__search;
|
|
static PyObject *__pyx_n_s__select;
|
|
static PyObject *__pyx_n_s__selectcase;
|
|
static PyObject *__pyx_n_s__simple_dict;
|
|
static PyObject *__pyx_n_s__soft_touch;
|
|
static PyObject *__pyx_n_s__split;
|
|
static PyObject *__pyx_n_s__startswith;
|
|
static PyObject *__pyx_n_s__str;
|
|
static PyObject *__pyx_n_s__strip;
|
|
static PyObject *__pyx_n_s__sub;
|
|
static PyObject *__pyx_n_s__subroutine;
|
|
static PyObject *__pyx_n_s__subst;
|
|
static PyObject *__pyx_n_s__t;
|
|
static PyObject *__pyx_n_s__template;
|
|
static PyObject *__pyx_n_s__text;
|
|
static PyObject *__pyx_n_s__then;
|
|
static PyObject *__pyx_n_s__touch;
|
|
static PyObject *__pyx_n_s__use;
|
|
static PyObject *__pyx_n_s__util;
|
|
static PyObject *__pyx_n_s__w;
|
|
static PyObject *__pyx_n_s__warn;
|
|
static PyObject *__pyx_n_s__writ;
|
|
static PyObject *__pyx_n_s__writelines;
|
|
static PyObject *__pyx_n_s__x;
|
|
static PyObject *__pyx_n_s__y;
|
|
static PyObject *__pyx_n_s__zip;
|
|
static PyObject *__pyx_int_0;
|
|
static PyObject *__pyx_int_1;
|
|
static PyObject *__pyx_int_3;
|
|
static PyObject *__pyx_k_tuple_5;
|
|
static PyObject *__pyx_k_tuple_11;
|
|
static PyObject *__pyx_k_tuple_24;
|
|
static PyObject *__pyx_k_tuple_27;
|
|
static PyObject *__pyx_k_tuple_31;
|
|
static PyObject *__pyx_k_tuple_34;
|
|
static PyObject *__pyx_k_tuple_36;
|
|
static PyObject *__pyx_k_tuple_45;
|
|
static PyObject *__pyx_k_tuple_47;
|
|
static PyObject *__pyx_k_tuple_59;
|
|
static PyObject *__pyx_k_tuple_61;
|
|
static PyObject *__pyx_k_tuple_84;
|
|
static PyObject *__pyx_k_tuple_85;
|
|
static PyObject *__pyx_k_tuple_91;
|
|
static PyObject *__pyx_k_tuple_94;
|
|
static PyObject *__pyx_k_tuple_103;
|
|
static PyObject *__pyx_k_tuple_104;
|
|
static PyObject *__pyx_k_tuple_105;
|
|
static PyObject *__pyx_k_tuple_109;
|
|
static PyObject *__pyx_k_tuple_110;
|
|
static PyObject *__pyx_k_tuple_111;
|
|
static PyObject *__pyx_k_tuple_125;
|
|
static PyObject *__pyx_k_tuple_126;
|
|
static PyObject *__pyx_k_tuple_131;
|
|
static PyObject *__pyx_k_tuple_132;
|
|
static PyObject *__pyx_k_tuple_133;
|
|
static PyObject *__pyx_k_tuple_149;
|
|
static PyObject *__pyx_k_tuple_151;
|
|
static PyObject *__pyx_k_tuple_153;
|
|
static PyObject *__pyx_k_tuple_155;
|
|
static PyObject *__pyx_k_tuple_157;
|
|
static PyObject *__pyx_k_tuple_159;
|
|
|
|
/* "preprocessed_text.py":859
|
|
*
|
|
* ######################################################################
|
|
* preprocessed_text = parallel_loop( lambda x,y: create_preprocessed_text(x), \ # <<<<<<<<<<<<<<
|
|
* map(lambda x: (x,None), irpf90_files ) )
|
|
*
|
|
*/
|
|
|
|
static PyObject *__pyx_lambda_funcdef_17preprocessed_text_lambda4(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
|
|
static PyMethodDef __pyx_lambda_methdef_17preprocessed_text_lambda4 = {__Pyx_NAMESTR("lambda4"), (PyCFunction)__pyx_lambda_funcdef_17preprocessed_text_lambda4, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(0)};
|
|
static PyObject *__pyx_lambda_funcdef_17preprocessed_text_lambda4(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
|
|
PyObject *__pyx_v_x = 0;
|
|
PyObject *__pyx_v_y = 0;
|
|
PyObject *__pyx_r = NULL;
|
|
__Pyx_RefNannyDeclarations
|
|
PyObject *__pyx_t_1 = NULL;
|
|
PyObject *__pyx_t_2 = NULL;
|
|
PyObject *__pyx_t_3 = NULL;
|
|
int __pyx_lineno = 0;
|
|
const char *__pyx_filename = NULL;
|
|
int __pyx_clineno = 0;
|
|
static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__x,&__pyx_n_s__y,0};
|
|
__Pyx_RefNannySetupContext("lambda4");
|
|
__pyx_self = __pyx_self;
|
|
{
|
|
PyObject* values[2] = {0,0};
|
|
if (unlikely(__pyx_kwds)) {
|
|
Py_ssize_t kw_args;
|
|
switch (PyTuple_GET_SIZE(__pyx_args)) {
|
|
case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
|
|
case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
|
|
case 0: break;
|
|
default: goto __pyx_L5_argtuple_error;
|
|
}
|
|
kw_args = PyDict_Size(__pyx_kwds);
|
|
switch (PyTuple_GET_SIZE(__pyx_args)) {
|
|
case 0:
|
|
values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__x);
|
|
if (likely(values[0])) kw_args--;
|
|
else goto __pyx_L5_argtuple_error;
|
|
case 1:
|
|
values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__y);
|
|
if (likely(values[1])) kw_args--;
|
|
else {
|
|
__Pyx_RaiseArgtupleInvalid("<lambda>", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 859; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
|
|
}
|
|
}
|
|
if (unlikely(kw_args > 0)) {
|
|
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "<lambda>") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 859; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
|
|
}
|
|
} else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
|
|
goto __pyx_L5_argtuple_error;
|
|
} else {
|
|
values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
|
|
values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
|
|
}
|
|
__pyx_v_x = values[0];
|
|
__pyx_v_y = values[1];
|
|
}
|
|
goto __pyx_L4_argument_unpacking_done;
|
|
__pyx_L5_argtuple_error:;
|
|
__Pyx_RaiseArgtupleInvalid("<lambda>", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 859; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
|
|
__pyx_L3_error:;
|
|
__Pyx_AddTraceback("preprocessed_text.lambda4", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__Pyx_RefNannyFinishContext();
|
|
return NULL;
|
|
__pyx_L4_argument_unpacking_done:;
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s_1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 859; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 859; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
|
__Pyx_INCREF(__pyx_v_x);
|
|
PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_x);
|
|
__Pyx_GIVEREF(__pyx_v_x);
|
|
__pyx_t_3 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 859; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
|
__pyx_r = __pyx_t_3;
|
|
__pyx_t_3 = 0;
|
|
goto __pyx_L0;
|
|
|
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
|
goto __pyx_L0;
|
|
__pyx_L1_error:;
|
|
__Pyx_XDECREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_t_2);
|
|
__Pyx_XDECREF(__pyx_t_3);
|
|
__Pyx_AddTraceback("preprocessed_text.lambda4", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__pyx_r = NULL;
|
|
__pyx_L0:;
|
|
__Pyx_XGIVEREF(__pyx_r);
|
|
__Pyx_RefNannyFinishContext();
|
|
return __pyx_r;
|
|
}
|
|
|
|
/* "preprocessed_text.py":860
|
|
* ######################################################################
|
|
* preprocessed_text = parallel_loop( lambda x,y: create_preprocessed_text(x), \
|
|
* map(lambda x: (x,None), irpf90_files ) ) # <<<<<<<<<<<<<<
|
|
*
|
|
* ######################################################################
|
|
*/
|
|
|
|
static PyObject *__pyx_lambda_funcdef_17preprocessed_text_lambda5(PyObject *__pyx_self, PyObject *__pyx_v_x); /*proto*/
|
|
static PyMethodDef __pyx_lambda_methdef_17preprocessed_text_lambda5 = {__Pyx_NAMESTR("lambda5"), (PyCFunction)__pyx_lambda_funcdef_17preprocessed_text_lambda5, METH_O, __Pyx_DOCSTR(0)};
|
|
static PyObject *__pyx_lambda_funcdef_17preprocessed_text_lambda5(PyObject *__pyx_self, PyObject *__pyx_v_x) {
|
|
PyObject *__pyx_r = NULL;
|
|
__Pyx_RefNannyDeclarations
|
|
PyObject *__pyx_t_1 = NULL;
|
|
int __pyx_lineno = 0;
|
|
const char *__pyx_filename = NULL;
|
|
int __pyx_clineno = 0;
|
|
__Pyx_RefNannySetupContext("lambda5");
|
|
__pyx_self = __pyx_self;
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 860; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(__pyx_v_x);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_x);
|
|
__Pyx_GIVEREF(__pyx_v_x);
|
|
__Pyx_INCREF(Py_None);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 1, Py_None);
|
|
__Pyx_GIVEREF(Py_None);
|
|
__pyx_r = ((PyObject *)__pyx_t_1);
|
|
__pyx_t_1 = 0;
|
|
goto __pyx_L0;
|
|
|
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
|
goto __pyx_L0;
|
|
__pyx_L1_error:;
|
|
__Pyx_XDECREF(__pyx_t_1);
|
|
__Pyx_AddTraceback("preprocessed_text.lambda5", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__pyx_r = NULL;
|
|
__pyx_L0:;
|
|
__Pyx_XGIVEREF(__pyx_r);
|
|
__Pyx_RefNannyFinishContext();
|
|
return __pyx_r;
|
|
}
|
|
|
|
/* "preprocessed_text.py":91
|
|
* }
|
|
*
|
|
* def get_type (i, filename, line, is_doc): # <<<<<<<<<<<<<<
|
|
* '''Find the type of a text line'''
|
|
* assert type(i) == int
|
|
*/
|
|
|
|
static PyObject *__pyx_pf_17preprocessed_text_get_type(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
|
|
static char __pyx_doc_17preprocessed_text_get_type[] = "Find the type of a text line";
|
|
static PyMethodDef __pyx_mdef_17preprocessed_text_get_type = {__Pyx_NAMESTR("get_type"), (PyCFunction)__pyx_pf_17preprocessed_text_get_type, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(__pyx_doc_17preprocessed_text_get_type)};
|
|
static PyObject *__pyx_pf_17preprocessed_text_get_type(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
|
|
PyObject *__pyx_v_i = 0;
|
|
PyObject *__pyx_v_filename = 0;
|
|
PyObject *__pyx_v_line = 0;
|
|
PyObject *__pyx_v_is_doc = 0;
|
|
PyObject *__pyx_v_lower_line0 = NULL;
|
|
PyObject *__pyx_v_lower_line = NULL;
|
|
PyObject *__pyx_v_c = NULL;
|
|
PyObject *__pyx_v_buffer = NULL;
|
|
PyObject *__pyx_v_firstword = NULL;
|
|
PyObject *__pyx_v_result = NULL;
|
|
PyObject *__pyx_r = NULL;
|
|
__Pyx_RefNannyDeclarations
|
|
PyObject *__pyx_t_1 = NULL;
|
|
int __pyx_t_2;
|
|
PyObject *__pyx_t_3 = NULL;
|
|
PyObject *__pyx_t_4 = NULL;
|
|
PyObject *(*__pyx_t_5)(PyObject *);
|
|
PyObject *__pyx_t_6 = NULL;
|
|
Py_ssize_t __pyx_t_7;
|
|
int __pyx_t_8;
|
|
int __pyx_t_9;
|
|
int __pyx_lineno = 0;
|
|
const char *__pyx_filename = NULL;
|
|
int __pyx_clineno = 0;
|
|
static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__i,&__pyx_n_s__filename,&__pyx_n_s__line,&__pyx_n_s__is_doc,0};
|
|
__Pyx_RefNannySetupContext("get_type");
|
|
__pyx_self = __pyx_self;
|
|
{
|
|
PyObject* values[4] = {0,0,0,0};
|
|
if (unlikely(__pyx_kwds)) {
|
|
Py_ssize_t kw_args;
|
|
switch (PyTuple_GET_SIZE(__pyx_args)) {
|
|
case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
|
|
case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
|
|
case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
|
|
case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
|
|
case 0: break;
|
|
default: goto __pyx_L5_argtuple_error;
|
|
}
|
|
kw_args = PyDict_Size(__pyx_kwds);
|
|
switch (PyTuple_GET_SIZE(__pyx_args)) {
|
|
case 0:
|
|
values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__i);
|
|
if (likely(values[0])) kw_args--;
|
|
else goto __pyx_L5_argtuple_error;
|
|
case 1:
|
|
values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__filename);
|
|
if (likely(values[1])) kw_args--;
|
|
else {
|
|
__Pyx_RaiseArgtupleInvalid("get_type", 1, 4, 4, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 91; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
|
|
}
|
|
case 2:
|
|
values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__line);
|
|
if (likely(values[2])) kw_args--;
|
|
else {
|
|
__Pyx_RaiseArgtupleInvalid("get_type", 1, 4, 4, 2); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 91; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
|
|
}
|
|
case 3:
|
|
values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__is_doc);
|
|
if (likely(values[3])) kw_args--;
|
|
else {
|
|
__Pyx_RaiseArgtupleInvalid("get_type", 1, 4, 4, 3); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 91; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
|
|
}
|
|
}
|
|
if (unlikely(kw_args > 0)) {
|
|
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "get_type") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 91; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
|
|
}
|
|
} else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
|
|
goto __pyx_L5_argtuple_error;
|
|
} else {
|
|
values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
|
|
values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
|
|
values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
|
|
values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
|
|
}
|
|
__pyx_v_i = values[0];
|
|
__pyx_v_filename = values[1];
|
|
__pyx_v_line = values[2];
|
|
__pyx_v_is_doc = values[3];
|
|
}
|
|
goto __pyx_L4_argument_unpacking_done;
|
|
__pyx_L5_argtuple_error:;
|
|
__Pyx_RaiseArgtupleInvalid("get_type", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 91; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
|
|
__pyx_L3_error:;
|
|
__Pyx_AddTraceback("preprocessed_text.get_type", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__Pyx_RefNannyFinishContext();
|
|
return NULL;
|
|
__pyx_L4_argument_unpacking_done:;
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
|
|
/* "preprocessed_text.py":93
|
|
* def get_type (i, filename, line, is_doc):
|
|
* '''Find the type of a text line'''
|
|
* assert type(i) == int # <<<<<<<<<<<<<<
|
|
* assert type(filename) == str
|
|
* assert type(line) == str
|
|
*/
|
|
#ifndef CYTHON_WITHOUT_ASSERTIONS
|
|
__pyx_t_1 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_i)), ((PyObject *)((PyObject*)(&PyInt_Type))), Py_EQ); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 93; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 93; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
if (unlikely(!__pyx_t_2)) {
|
|
PyErr_SetNone(PyExc_AssertionError);
|
|
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 93; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
#endif
|
|
|
|
/* "preprocessed_text.py":94
|
|
* '''Find the type of a text line'''
|
|
* assert type(i) == int
|
|
* assert type(filename) == str # <<<<<<<<<<<<<<
|
|
* assert type(line) == str
|
|
* assert type(is_doc) == bool
|
|
*/
|
|
#ifndef CYTHON_WITHOUT_ASSERTIONS
|
|
__pyx_t_1 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_filename)), ((PyObject *)((PyObject*)(&PyString_Type))), Py_EQ); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 94; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 94; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
if (unlikely(!__pyx_t_2)) {
|
|
PyErr_SetNone(PyExc_AssertionError);
|
|
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 94; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
#endif
|
|
|
|
/* "preprocessed_text.py":95
|
|
* assert type(i) == int
|
|
* assert type(filename) == str
|
|
* assert type(line) == str # <<<<<<<<<<<<<<
|
|
* assert type(is_doc) == bool
|
|
*
|
|
*/
|
|
#ifndef CYTHON_WITHOUT_ASSERTIONS
|
|
__pyx_t_1 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_line)), ((PyObject *)((PyObject*)(&PyString_Type))), Py_EQ); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 95; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 95; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
if (unlikely(!__pyx_t_2)) {
|
|
PyErr_SetNone(PyExc_AssertionError);
|
|
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 95; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
#endif
|
|
|
|
/* "preprocessed_text.py":96
|
|
* assert type(filename) == str
|
|
* assert type(line) == str
|
|
* assert type(is_doc) == bool # <<<<<<<<<<<<<<
|
|
*
|
|
* line = line.rstrip()
|
|
*/
|
|
#ifndef CYTHON_WITHOUT_ASSERTIONS
|
|
__pyx_t_1 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_is_doc)), ((PyObject*)&PyBool_Type), Py_EQ); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 96; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 96; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
if (unlikely(!__pyx_t_2)) {
|
|
PyErr_SetNone(PyExc_AssertionError);
|
|
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 96; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
#endif
|
|
|
|
/* "preprocessed_text.py":98
|
|
* assert type(is_doc) == bool
|
|
*
|
|
* line = line.rstrip() # <<<<<<<<<<<<<<
|
|
* line = line.replace("$IRP_ALIGN",command_line.align)
|
|
* lower_line0 = line.lstrip().lower()
|
|
*/
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__rstrip); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 98; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_3 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 98; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(__pyx_v_line);
|
|
__pyx_v_line = __pyx_t_3;
|
|
__pyx_t_3 = 0;
|
|
|
|
/* "preprocessed_text.py":99
|
|
*
|
|
* line = line.rstrip()
|
|
* line = line.replace("$IRP_ALIGN",command_line.align) # <<<<<<<<<<<<<<
|
|
* lower_line0 = line.lstrip().lower()
|
|
* lower_line = lower_line0.replace("!"," ! ")
|
|
*/
|
|
__pyx_t_3 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__replace); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 99; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__command_line); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 99; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_4 = PyObject_GetAttr(__pyx_t_1, __pyx_n_s__align); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 99; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 99; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_kp_s_2));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
|
|
PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_4);
|
|
__Pyx_GIVEREF(__pyx_t_4);
|
|
__pyx_t_4 = 0;
|
|
__pyx_t_4 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 99; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(__pyx_v_line);
|
|
__pyx_v_line = __pyx_t_4;
|
|
__pyx_t_4 = 0;
|
|
|
|
/* "preprocessed_text.py":100
|
|
* line = line.rstrip()
|
|
* line = line.replace("$IRP_ALIGN",command_line.align)
|
|
* lower_line0 = line.lstrip().lower() # <<<<<<<<<<<<<<
|
|
* lower_line = lower_line0.replace("!"," ! ")
|
|
*
|
|
*/
|
|
__pyx_t_4 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__lstrip); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 100; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_1 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 100; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__pyx_t_4 = PyObject_GetAttr(__pyx_t_1, __pyx_n_s__lower); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 100; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_1 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 100; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__pyx_v_lower_line0 = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":101
|
|
* line = line.replace("$IRP_ALIGN",command_line.align)
|
|
* lower_line0 = line.lstrip().lower()
|
|
* lower_line = lower_line0.replace("!"," ! ") # <<<<<<<<<<<<<<
|
|
*
|
|
* # Replacements
|
|
*/
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_v_lower_line0, __pyx_n_s__replace); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 101; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_4 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_k_tuple_5), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 101; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_v_lower_line = __pyx_t_4;
|
|
__pyx_t_4 = 0;
|
|
|
|
/* "preprocessed_text.py":104
|
|
*
|
|
* # Replacements
|
|
* lower_line = re_elseif.sub("elseif",lower_line) # <<<<<<<<<<<<<<
|
|
* lower_line = re_enddo.sub("enddo",lower_line)
|
|
* lower_line = re_endtype.sub("endtype",lower_line)
|
|
*/
|
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__re_elseif); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 104; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_t_4, __pyx_n_s__sub); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 104; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 104; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
__Pyx_INCREF(((PyObject *)__pyx_n_s__elseif));
|
|
PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)__pyx_n_s__elseif));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_n_s__elseif));
|
|
__Pyx_INCREF(__pyx_v_lower_line);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_lower_line);
|
|
__Pyx_GIVEREF(__pyx_v_lower_line);
|
|
__pyx_t_3 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 104; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
|
|
__Pyx_DECREF(__pyx_v_lower_line);
|
|
__pyx_v_lower_line = __pyx_t_3;
|
|
__pyx_t_3 = 0;
|
|
|
|
/* "preprocessed_text.py":105
|
|
* # Replacements
|
|
* lower_line = re_elseif.sub("elseif",lower_line)
|
|
* lower_line = re_enddo.sub("enddo",lower_line) # <<<<<<<<<<<<<<
|
|
* lower_line = re_endtype.sub("endtype",lower_line)
|
|
* lower_line = re_endmodule.sub("endmodule",lower_line)
|
|
*/
|
|
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__re_enddo); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 105; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__pyx_t_4 = PyObject_GetAttr(__pyx_t_3, __pyx_n_s__sub); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 105; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
__pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 105; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_3));
|
|
__Pyx_INCREF(((PyObject *)__pyx_n_s__enddo));
|
|
PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_n_s__enddo));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_n_s__enddo));
|
|
__Pyx_INCREF(__pyx_v_lower_line);
|
|
PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_lower_line);
|
|
__Pyx_GIVEREF(__pyx_v_lower_line);
|
|
__pyx_t_1 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 105; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
|
|
__Pyx_DECREF(__pyx_v_lower_line);
|
|
__pyx_v_lower_line = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":106
|
|
* lower_line = re_elseif.sub("elseif",lower_line)
|
|
* lower_line = re_enddo.sub("enddo",lower_line)
|
|
* lower_line = re_endtype.sub("endtype",lower_line) # <<<<<<<<<<<<<<
|
|
* lower_line = re_endmodule.sub("endmodule",lower_line)
|
|
* lower_line = re_endif.sub("endif",lower_line)
|
|
*/
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__re_endtype); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 106; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_3 = PyObject_GetAttr(__pyx_t_1, __pyx_n_s__sub); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 106; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 106; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(((PyObject *)__pyx_n_s__endtype));
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_n_s__endtype));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_n_s__endtype));
|
|
__Pyx_INCREF(__pyx_v_lower_line);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_lower_line);
|
|
__Pyx_GIVEREF(__pyx_v_lower_line);
|
|
__pyx_t_4 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 106; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(__pyx_v_lower_line);
|
|
__pyx_v_lower_line = __pyx_t_4;
|
|
__pyx_t_4 = 0;
|
|
|
|
/* "preprocessed_text.py":107
|
|
* lower_line = re_enddo.sub("enddo",lower_line)
|
|
* lower_line = re_endtype.sub("endtype",lower_line)
|
|
* lower_line = re_endmodule.sub("endmodule",lower_line) # <<<<<<<<<<<<<<
|
|
* lower_line = re_endif.sub("endif",lower_line)
|
|
* lower_line = re_endselect.sub("endselect",lower_line)
|
|
*/
|
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__re_endmodule); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 107; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_t_4, __pyx_n_s__sub); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 107; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 107; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
__Pyx_INCREF(((PyObject *)__pyx_n_s__endmodule));
|
|
PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)__pyx_n_s__endmodule));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_n_s__endmodule));
|
|
__Pyx_INCREF(__pyx_v_lower_line);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_lower_line);
|
|
__Pyx_GIVEREF(__pyx_v_lower_line);
|
|
__pyx_t_3 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 107; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
|
|
__Pyx_DECREF(__pyx_v_lower_line);
|
|
__pyx_v_lower_line = __pyx_t_3;
|
|
__pyx_t_3 = 0;
|
|
|
|
/* "preprocessed_text.py":108
|
|
* lower_line = re_endtype.sub("endtype",lower_line)
|
|
* lower_line = re_endmodule.sub("endmodule",lower_line)
|
|
* lower_line = re_endif.sub("endif",lower_line) # <<<<<<<<<<<<<<
|
|
* lower_line = re_endselect.sub("endselect",lower_line)
|
|
*
|
|
*/
|
|
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__re_endif); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 108; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__pyx_t_4 = PyObject_GetAttr(__pyx_t_3, __pyx_n_s__sub); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 108; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
__pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 108; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_3));
|
|
__Pyx_INCREF(((PyObject *)__pyx_n_s__endif));
|
|
PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_n_s__endif));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_n_s__endif));
|
|
__Pyx_INCREF(__pyx_v_lower_line);
|
|
PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_lower_line);
|
|
__Pyx_GIVEREF(__pyx_v_lower_line);
|
|
__pyx_t_1 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 108; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
|
|
__Pyx_DECREF(__pyx_v_lower_line);
|
|
__pyx_v_lower_line = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":109
|
|
* lower_line = re_endmodule.sub("endmodule",lower_line)
|
|
* lower_line = re_endif.sub("endif",lower_line)
|
|
* lower_line = re_endselect.sub("endselect",lower_line) # <<<<<<<<<<<<<<
|
|
*
|
|
* for c in """()'"[]""":
|
|
*/
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__re_endselect); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 109; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_3 = PyObject_GetAttr(__pyx_t_1, __pyx_n_s__sub); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 109; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 109; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(((PyObject *)__pyx_n_s__endselect));
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_n_s__endselect));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_n_s__endselect));
|
|
__Pyx_INCREF(__pyx_v_lower_line);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_lower_line);
|
|
__Pyx_GIVEREF(__pyx_v_lower_line);
|
|
__pyx_t_4 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 109; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(__pyx_v_lower_line);
|
|
__pyx_v_lower_line = __pyx_t_4;
|
|
__pyx_t_4 = 0;
|
|
|
|
/* "preprocessed_text.py":111
|
|
* lower_line = re_endselect.sub("endselect",lower_line)
|
|
*
|
|
* for c in """()'"[]""": # <<<<<<<<<<<<<<
|
|
* lower_line = lower_line.replace(c," "+c+" ")
|
|
*
|
|
*/
|
|
__pyx_t_4 = PyObject_GetIter(((PyObject *)__pyx_kp_s_6)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 111; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_5 = Py_TYPE(__pyx_t_4)->tp_iternext;
|
|
for (;;) {
|
|
{
|
|
__pyx_t_1 = __pyx_t_5(__pyx_t_4);
|
|
if (unlikely(!__pyx_t_1)) {
|
|
if (PyErr_Occurred()) {
|
|
if (likely(PyErr_ExceptionMatches(PyExc_StopIteration))) PyErr_Clear();
|
|
else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 111; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
break;
|
|
}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
}
|
|
__Pyx_XDECREF(__pyx_v_c);
|
|
__pyx_v_c = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":112
|
|
*
|
|
* for c in """()'"[]""":
|
|
* lower_line = lower_line.replace(c," "+c+" ") # <<<<<<<<<<<<<<
|
|
*
|
|
* buffer = lower_line.split()
|
|
*/
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_v_lower_line, __pyx_n_s__replace); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 112; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_3 = PyNumber_Add(((PyObject *)__pyx_kp_s_7), __pyx_v_c); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 112; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__pyx_t_6 = PyNumber_Add(__pyx_t_3, ((PyObject *)__pyx_kp_s_7)); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 112; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
__pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 112; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_3));
|
|
__Pyx_INCREF(__pyx_v_c);
|
|
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_c);
|
|
__Pyx_GIVEREF(__pyx_v_c);
|
|
PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_6);
|
|
__Pyx_GIVEREF(__pyx_t_6);
|
|
__pyx_t_6 = 0;
|
|
__pyx_t_6 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 112; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
|
|
__Pyx_DECREF(__pyx_v_lower_line);
|
|
__pyx_v_lower_line = __pyx_t_6;
|
|
__pyx_t_6 = 0;
|
|
}
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
|
|
/* "preprocessed_text.py":114
|
|
* lower_line = lower_line.replace(c," "+c+" ")
|
|
*
|
|
* buffer = lower_line.split() # <<<<<<<<<<<<<<
|
|
* if len(buffer) == 0:
|
|
* return [ Empty_line(i,line,filename) ], is_doc
|
|
*/
|
|
__pyx_t_4 = PyObject_GetAttr(__pyx_v_lower_line, __pyx_n_s__split); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_6 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__pyx_v_buffer = __pyx_t_6;
|
|
__pyx_t_6 = 0;
|
|
|
|
/* "preprocessed_text.py":115
|
|
*
|
|
* buffer = lower_line.split()
|
|
* if len(buffer) == 0: # <<<<<<<<<<<<<<
|
|
* return [ Empty_line(i,line,filename) ], is_doc
|
|
*
|
|
*/
|
|
__pyx_t_7 = PyObject_Length(__pyx_v_buffer); if (unlikely(__pyx_t_7 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 115; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__pyx_t_2 = (__pyx_t_7 == 0);
|
|
if (__pyx_t_2) {
|
|
|
|
/* "preprocessed_text.py":116
|
|
* buffer = lower_line.split()
|
|
* if len(buffer) == 0:
|
|
* return [ Empty_line(i,line,filename) ], is_doc # <<<<<<<<<<<<<<
|
|
*
|
|
* firstword = buffer[0]
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__Empty_line); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 116; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 116; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
__Pyx_INCREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_i);
|
|
__Pyx_GIVEREF(__pyx_v_i);
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
__Pyx_INCREF(__pyx_v_filename);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_filename);
|
|
__Pyx_GIVEREF(__pyx_v_filename);
|
|
__pyx_t_3 = PyObject_Call(__pyx_t_6, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 116; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
|
|
__pyx_t_4 = PyList_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 116; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
PyList_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
|
|
__Pyx_GIVEREF(__pyx_t_3);
|
|
__pyx_t_3 = 0;
|
|
__pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 116; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_3));
|
|
PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_t_4));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_t_4));
|
|
__Pyx_INCREF(__pyx_v_is_doc);
|
|
PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_is_doc);
|
|
__Pyx_GIVEREF(__pyx_v_is_doc);
|
|
__pyx_t_4 = 0;
|
|
__pyx_r = ((PyObject *)__pyx_t_3);
|
|
__pyx_t_3 = 0;
|
|
goto __pyx_L0;
|
|
goto __pyx_L8;
|
|
}
|
|
__pyx_L8:;
|
|
|
|
/* "preprocessed_text.py":118
|
|
* return [ Empty_line(i,line,filename) ], is_doc
|
|
*
|
|
* firstword = buffer[0] # <<<<<<<<<<<<<<
|
|
* if firstword.isdigit():
|
|
* assert len(buffer) > 1
|
|
*/
|
|
__pyx_t_3 = __Pyx_GetItemInt(__pyx_v_buffer, 0, sizeof(long), PyInt_FromLong); if (!__pyx_t_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 118; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__pyx_v_firstword = __pyx_t_3;
|
|
__pyx_t_3 = 0;
|
|
|
|
/* "preprocessed_text.py":119
|
|
*
|
|
* firstword = buffer[0]
|
|
* if firstword.isdigit(): # <<<<<<<<<<<<<<
|
|
* assert len(buffer) > 1
|
|
* buffer = buffer[1:]
|
|
*/
|
|
__pyx_t_3 = PyObject_GetAttr(__pyx_v_firstword, __pyx_n_s__isdigit); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 119; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__pyx_t_4 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 119; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
__pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 119; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
if (__pyx_t_2) {
|
|
|
|
/* "preprocessed_text.py":120
|
|
* firstword = buffer[0]
|
|
* if firstword.isdigit():
|
|
* assert len(buffer) > 1 # <<<<<<<<<<<<<<
|
|
* buffer = buffer[1:]
|
|
* firstword = buffer[0]
|
|
*/
|
|
#ifndef CYTHON_WITHOUT_ASSERTIONS
|
|
__pyx_t_7 = PyObject_Length(__pyx_v_buffer); if (unlikely(__pyx_t_7 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 120; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
if (unlikely(!(__pyx_t_7 > 1))) {
|
|
PyErr_SetNone(PyExc_AssertionError);
|
|
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 120; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
#endif
|
|
|
|
/* "preprocessed_text.py":121
|
|
* if firstword.isdigit():
|
|
* assert len(buffer) > 1
|
|
* buffer = buffer[1:] # <<<<<<<<<<<<<<
|
|
* firstword = buffer[0]
|
|
*
|
|
*/
|
|
__pyx_t_4 = __Pyx_PySequence_GetSlice(__pyx_v_buffer, 1, PY_SSIZE_T_MAX); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 121; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_v_buffer);
|
|
__pyx_v_buffer = __pyx_t_4;
|
|
__pyx_t_4 = 0;
|
|
|
|
/* "preprocessed_text.py":122
|
|
* assert len(buffer) > 1
|
|
* buffer = buffer[1:]
|
|
* firstword = buffer[0] # <<<<<<<<<<<<<<
|
|
*
|
|
* # Identify line
|
|
*/
|
|
__pyx_t_4 = __Pyx_GetItemInt(__pyx_v_buffer, 0, sizeof(long), PyInt_FromLong); if (!__pyx_t_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 122; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_v_firstword);
|
|
__pyx_v_firstword = __pyx_t_4;
|
|
__pyx_t_4 = 0;
|
|
goto __pyx_L9;
|
|
}
|
|
__pyx_L9:;
|
|
|
|
/* "preprocessed_text.py":125
|
|
*
|
|
* # Identify line
|
|
* if firstword == "end_doc": # <<<<<<<<<<<<<<
|
|
* return [ End_doc (i,line,filename) ], False
|
|
*
|
|
*/
|
|
__pyx_t_2 = __Pyx_PyString_Equals(__pyx_v_firstword, ((PyObject *)__pyx_n_s__end_doc), Py_EQ); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 125; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
if (__pyx_t_2) {
|
|
|
|
/* "preprocessed_text.py":126
|
|
* # Identify line
|
|
* if firstword == "end_doc":
|
|
* return [ End_doc (i,line,filename) ], False # <<<<<<<<<<<<<<
|
|
*
|
|
* if firstword == "begin_doc":
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__End_doc); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 126; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 126; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_3));
|
|
__Pyx_INCREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_i);
|
|
__Pyx_GIVEREF(__pyx_v_i);
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
__Pyx_INCREF(__pyx_v_filename);
|
|
PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_filename);
|
|
__Pyx_GIVEREF(__pyx_v_filename);
|
|
__pyx_t_6 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 126; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
|
|
__pyx_t_3 = PyList_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 126; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_3));
|
|
PyList_SET_ITEM(__pyx_t_3, 0, __pyx_t_6);
|
|
__Pyx_GIVEREF(__pyx_t_6);
|
|
__pyx_t_6 = 0;
|
|
__pyx_t_6 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 126; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 126; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)__pyx_t_3));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_t_3));
|
|
PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_6);
|
|
__Pyx_GIVEREF(__pyx_t_6);
|
|
__pyx_t_3 = 0;
|
|
__pyx_t_6 = 0;
|
|
__pyx_r = ((PyObject *)__pyx_t_4);
|
|
__pyx_t_4 = 0;
|
|
goto __pyx_L0;
|
|
goto __pyx_L10;
|
|
}
|
|
__pyx_L10:;
|
|
|
|
/* "preprocessed_text.py":128
|
|
* return [ End_doc (i,line,filename) ], False
|
|
*
|
|
* if firstword == "begin_doc": # <<<<<<<<<<<<<<
|
|
* return [ Begin_doc (i,line,filename) ], True
|
|
*
|
|
*/
|
|
__pyx_t_2 = __Pyx_PyString_Equals(__pyx_v_firstword, ((PyObject *)__pyx_n_s__begin_doc), Py_EQ); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 128; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
if (__pyx_t_2) {
|
|
|
|
/* "preprocessed_text.py":129
|
|
*
|
|
* if firstword == "begin_doc":
|
|
* return [ Begin_doc (i,line,filename) ], True # <<<<<<<<<<<<<<
|
|
*
|
|
* if is_doc:
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__Begin_doc); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 129; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 129; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_6));
|
|
__Pyx_INCREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v_i);
|
|
__Pyx_GIVEREF(__pyx_v_i);
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
__Pyx_INCREF(__pyx_v_filename);
|
|
PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_filename);
|
|
__Pyx_GIVEREF(__pyx_v_filename);
|
|
__pyx_t_3 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_t_6), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 129; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
|
|
__pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 129; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_6));
|
|
PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_3);
|
|
__Pyx_GIVEREF(__pyx_t_3);
|
|
__pyx_t_3 = 0;
|
|
__pyx_t_3 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 129; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 129; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)__pyx_t_6));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_t_6));
|
|
PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3);
|
|
__Pyx_GIVEREF(__pyx_t_3);
|
|
__pyx_t_6 = 0;
|
|
__pyx_t_3 = 0;
|
|
__pyx_r = ((PyObject *)__pyx_t_4);
|
|
__pyx_t_4 = 0;
|
|
goto __pyx_L0;
|
|
goto __pyx_L11;
|
|
}
|
|
__pyx_L11:;
|
|
|
|
/* "preprocessed_text.py":131
|
|
* return [ Begin_doc (i,line,filename) ], True
|
|
*
|
|
* if is_doc: # <<<<<<<<<<<<<<
|
|
* return [ Doc (i,line,filename) ], is_doc
|
|
*
|
|
*/
|
|
__pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_is_doc); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 131; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
if (__pyx_t_2) {
|
|
|
|
/* "preprocessed_text.py":132
|
|
*
|
|
* if is_doc:
|
|
* return [ Doc (i,line,filename) ], is_doc # <<<<<<<<<<<<<<
|
|
*
|
|
* if firstword in simple_dict:
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__Doc); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 132; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 132; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_3));
|
|
__Pyx_INCREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_i);
|
|
__Pyx_GIVEREF(__pyx_v_i);
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
__Pyx_INCREF(__pyx_v_filename);
|
|
PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_filename);
|
|
__Pyx_GIVEREF(__pyx_v_filename);
|
|
__pyx_t_6 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 132; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
|
|
__pyx_t_3 = PyList_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 132; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_3));
|
|
PyList_SET_ITEM(__pyx_t_3, 0, __pyx_t_6);
|
|
__Pyx_GIVEREF(__pyx_t_6);
|
|
__pyx_t_6 = 0;
|
|
__pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 132; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_6));
|
|
PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)__pyx_t_3));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_t_3));
|
|
__Pyx_INCREF(__pyx_v_is_doc);
|
|
PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_v_is_doc);
|
|
__Pyx_GIVEREF(__pyx_v_is_doc);
|
|
__pyx_t_3 = 0;
|
|
__pyx_r = ((PyObject *)__pyx_t_6);
|
|
__pyx_t_6 = 0;
|
|
goto __pyx_L0;
|
|
goto __pyx_L12;
|
|
}
|
|
__pyx_L12:;
|
|
|
|
/* "preprocessed_text.py":134
|
|
* return [ Doc (i,line,filename) ], is_doc
|
|
*
|
|
* if firstword in simple_dict: # <<<<<<<<<<<<<<
|
|
* return [ simple_dict[firstword](i,line,filename) ], is_doc
|
|
*
|
|
*/
|
|
__pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__simple_dict); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 134; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_2 = ((PySequence_Contains(__pyx_t_6, __pyx_v_firstword))); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 134; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
if (__pyx_t_2) {
|
|
|
|
/* "preprocessed_text.py":135
|
|
*
|
|
* if firstword in simple_dict:
|
|
* return [ simple_dict[firstword](i,line,filename) ], is_doc # <<<<<<<<<<<<<<
|
|
*
|
|
* if firstword in [ "select", "selectcase" ]:
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__simple_dict); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 135; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_3 = PyObject_GetItem(__pyx_t_6, __pyx_v_firstword); if (!__pyx_t_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 135; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 135; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_6));
|
|
__Pyx_INCREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v_i);
|
|
__Pyx_GIVEREF(__pyx_v_i);
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
__Pyx_INCREF(__pyx_v_filename);
|
|
PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_filename);
|
|
__Pyx_GIVEREF(__pyx_v_filename);
|
|
__pyx_t_4 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_t_6), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 135; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
|
|
__pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 135; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_6));
|
|
PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_4);
|
|
__Pyx_GIVEREF(__pyx_t_4);
|
|
__pyx_t_4 = 0;
|
|
__pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 135; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)__pyx_t_6));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_t_6));
|
|
__Pyx_INCREF(__pyx_v_is_doc);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_is_doc);
|
|
__Pyx_GIVEREF(__pyx_v_is_doc);
|
|
__pyx_t_6 = 0;
|
|
__pyx_r = ((PyObject *)__pyx_t_4);
|
|
__pyx_t_4 = 0;
|
|
goto __pyx_L0;
|
|
goto __pyx_L13;
|
|
}
|
|
__pyx_L13:;
|
|
|
|
/* "preprocessed_text.py":137
|
|
* return [ simple_dict[firstword](i,line,filename) ], is_doc
|
|
*
|
|
* if firstword in [ "select", "selectcase" ]: # <<<<<<<<<<<<<<
|
|
* return [ Select(i,line,filename) ] , is_doc
|
|
*
|
|
*/
|
|
__Pyx_INCREF(__pyx_v_firstword);
|
|
__pyx_t_4 = __pyx_v_firstword;
|
|
__pyx_t_2 = __Pyx_PyString_Equals(__pyx_t_4, ((PyObject *)__pyx_n_s__select), Py_EQ); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 137; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
if (!((int)__pyx_t_2)) {
|
|
__pyx_t_8 = __Pyx_PyString_Equals(__pyx_t_4, ((PyObject *)__pyx_n_s__selectcase), Py_EQ); if (unlikely(__pyx_t_8 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 137; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__pyx_t_9 = ((int)__pyx_t_8);
|
|
} else {
|
|
__pyx_t_9 = ((int)__pyx_t_2);
|
|
}
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__pyx_t_2 = __pyx_t_9;
|
|
if (__pyx_t_2) {
|
|
|
|
/* "preprocessed_text.py":138
|
|
*
|
|
* if firstword in [ "select", "selectcase" ]:
|
|
* return [ Select(i,line,filename) ] , is_doc # <<<<<<<<<<<<<<
|
|
*
|
|
* if len(lower_line0) > 4:
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__Select); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 138; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 138; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_6));
|
|
__Pyx_INCREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v_i);
|
|
__Pyx_GIVEREF(__pyx_v_i);
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
__Pyx_INCREF(__pyx_v_filename);
|
|
PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_filename);
|
|
__Pyx_GIVEREF(__pyx_v_filename);
|
|
__pyx_t_3 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_t_6), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 138; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
|
|
__pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 138; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_6));
|
|
PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_3);
|
|
__Pyx_GIVEREF(__pyx_t_3);
|
|
__pyx_t_3 = 0;
|
|
__pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 138; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_3));
|
|
PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_t_6));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_t_6));
|
|
__Pyx_INCREF(__pyx_v_is_doc);
|
|
PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_is_doc);
|
|
__Pyx_GIVEREF(__pyx_v_is_doc);
|
|
__pyx_t_6 = 0;
|
|
__pyx_r = ((PyObject *)__pyx_t_3);
|
|
__pyx_t_3 = 0;
|
|
goto __pyx_L0;
|
|
goto __pyx_L14;
|
|
}
|
|
__pyx_L14:;
|
|
|
|
/* "preprocessed_text.py":140
|
|
* return [ Select(i,line,filename) ] , is_doc
|
|
*
|
|
* if len(lower_line0) > 4: # <<<<<<<<<<<<<<
|
|
*
|
|
* if firstword[0] == '#':
|
|
*/
|
|
__pyx_t_7 = PyObject_Length(__pyx_v_lower_line0); if (unlikely(__pyx_t_7 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 140; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__pyx_t_2 = (__pyx_t_7 > 4);
|
|
if (__pyx_t_2) {
|
|
|
|
/* "preprocessed_text.py":142
|
|
* if len(lower_line0) > 4:
|
|
*
|
|
* if firstword[0] == '#': # <<<<<<<<<<<<<<
|
|
* result = [ Simple_line(i,line,filename) ]
|
|
* error.warn ( result[0] ,
|
|
*/
|
|
__pyx_t_3 = __Pyx_GetItemInt(__pyx_v_firstword, 0, sizeof(long), PyInt_FromLong); if (!__pyx_t_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 142; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__pyx_t_2 = __Pyx_PyString_Equals(__pyx_t_3, ((PyObject *)__pyx_kp_s_8), Py_EQ); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 142; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
if (__pyx_t_2) {
|
|
|
|
/* "preprocessed_text.py":143
|
|
*
|
|
* if firstword[0] == '#':
|
|
* result = [ Simple_line(i,line,filename) ] # <<<<<<<<<<<<<<
|
|
* error.warn ( result[0] ,
|
|
* """irpf90 may not work with preprocessor directives. You can use
|
|
*/
|
|
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__Simple_line); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 143; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 143; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_6));
|
|
__Pyx_INCREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v_i);
|
|
__Pyx_GIVEREF(__pyx_v_i);
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
__Pyx_INCREF(__pyx_v_filename);
|
|
PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_filename);
|
|
__Pyx_GIVEREF(__pyx_v_filename);
|
|
__pyx_t_4 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_t_6), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 143; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
|
|
__pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 143; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_6));
|
|
PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_4);
|
|
__Pyx_GIVEREF(__pyx_t_4);
|
|
__pyx_t_4 = 0;
|
|
__pyx_v_result = __pyx_t_6;
|
|
__pyx_t_6 = 0;
|
|
|
|
/* "preprocessed_text.py":144
|
|
* if firstword[0] == '#':
|
|
* result = [ Simple_line(i,line,filename) ]
|
|
* error.warn ( result[0] , # <<<<<<<<<<<<<<
|
|
* """irpf90 may not work with preprocessor directives. You can use
|
|
* Irp_if ... Irp_else ... Irp_endif
|
|
*/
|
|
__pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__error); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 144; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_4 = PyObject_GetAttr(__pyx_t_6, __pyx_n_s__warn); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 144; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__pyx_t_6 = __Pyx_GetItemInt_List(((PyObject *)__pyx_v_result), 0, sizeof(long), PyInt_FromLong); if (!__pyx_t_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 144; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 144; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_3));
|
|
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_6);
|
|
__Pyx_GIVEREF(__pyx_t_6);
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_9));
|
|
PyTuple_SET_ITEM(__pyx_t_3, 1, ((PyObject *)__pyx_kp_s_9));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_9));
|
|
__pyx_t_6 = 0;
|
|
__pyx_t_6 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 144; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
|
|
/* "preprocessed_text.py":149
|
|
* instead of
|
|
* #ifdef ... #else ... #endif""" )
|
|
* return result, is_doc # <<<<<<<<<<<<<<
|
|
*
|
|
* if firstword.startswith("case("):
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 149; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_6));
|
|
__Pyx_INCREF(((PyObject *)__pyx_v_result));
|
|
PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)__pyx_v_result));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_v_result));
|
|
__Pyx_INCREF(__pyx_v_is_doc);
|
|
PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_v_is_doc);
|
|
__Pyx_GIVEREF(__pyx_v_is_doc);
|
|
__pyx_r = ((PyObject *)__pyx_t_6);
|
|
__pyx_t_6 = 0;
|
|
goto __pyx_L0;
|
|
goto __pyx_L16;
|
|
}
|
|
__pyx_L16:;
|
|
|
|
/* "preprocessed_text.py":151
|
|
* return result, is_doc
|
|
*
|
|
* if firstword.startswith("case("): # <<<<<<<<<<<<<<
|
|
* return [ Case(i,line,filename) ], is_doc
|
|
*
|
|
*/
|
|
__pyx_t_6 = PyObject_GetAttr(__pyx_v_firstword, __pyx_n_s__startswith); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 151; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_3 = PyObject_Call(__pyx_t_6, ((PyObject *)__pyx_k_tuple_11), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 151; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 151; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
if (__pyx_t_2) {
|
|
|
|
/* "preprocessed_text.py":152
|
|
*
|
|
* if firstword.startswith("case("):
|
|
* return [ Case(i,line,filename) ], is_doc # <<<<<<<<<<<<<<
|
|
*
|
|
* if lower_line0[1:5] == "$omp":
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__Case); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 152; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 152; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_6));
|
|
__Pyx_INCREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v_i);
|
|
__Pyx_GIVEREF(__pyx_v_i);
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
__Pyx_INCREF(__pyx_v_filename);
|
|
PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_filename);
|
|
__Pyx_GIVEREF(__pyx_v_filename);
|
|
__pyx_t_4 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_t_6), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 152; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
|
|
__pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 152; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_6));
|
|
PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_4);
|
|
__Pyx_GIVEREF(__pyx_t_4);
|
|
__pyx_t_4 = 0;
|
|
__pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 152; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)__pyx_t_6));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_t_6));
|
|
__Pyx_INCREF(__pyx_v_is_doc);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_is_doc);
|
|
__Pyx_GIVEREF(__pyx_v_is_doc);
|
|
__pyx_t_6 = 0;
|
|
__pyx_r = ((PyObject *)__pyx_t_4);
|
|
__pyx_t_4 = 0;
|
|
goto __pyx_L0;
|
|
goto __pyx_L17;
|
|
}
|
|
__pyx_L17:;
|
|
|
|
/* "preprocessed_text.py":154
|
|
* return [ Case(i,line,filename) ], is_doc
|
|
*
|
|
* if lower_line0[1:5] == "$omp": # <<<<<<<<<<<<<<
|
|
* return [ Openmp(i,line,filename) ], is_doc
|
|
* elif lower_line0[1:5] in ["dec$", "dir$"] and command_line.directives:
|
|
*/
|
|
__pyx_t_4 = __Pyx_PySequence_GetSlice(__pyx_v_lower_line0, 1, 5); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 154; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_2 = __Pyx_PyString_Equals(__pyx_t_4, ((PyObject *)__pyx_kp_s_12), Py_EQ); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 154; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
if (__pyx_t_2) {
|
|
|
|
/* "preprocessed_text.py":155
|
|
*
|
|
* if lower_line0[1:5] == "$omp":
|
|
* return [ Openmp(i,line,filename) ], is_doc # <<<<<<<<<<<<<<
|
|
* elif lower_line0[1:5] in ["dec$", "dir$"] and command_line.directives:
|
|
* return [ Directive(i,line,filename) ], is_doc
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__Openmp); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 155; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 155; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_6));
|
|
__Pyx_INCREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v_i);
|
|
__Pyx_GIVEREF(__pyx_v_i);
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
__Pyx_INCREF(__pyx_v_filename);
|
|
PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_filename);
|
|
__Pyx_GIVEREF(__pyx_v_filename);
|
|
__pyx_t_3 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_t_6), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 155; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
|
|
__pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 155; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_6));
|
|
PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_3);
|
|
__Pyx_GIVEREF(__pyx_t_3);
|
|
__pyx_t_3 = 0;
|
|
__pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 155; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_3));
|
|
PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_t_6));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_t_6));
|
|
__Pyx_INCREF(__pyx_v_is_doc);
|
|
PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_is_doc);
|
|
__Pyx_GIVEREF(__pyx_v_is_doc);
|
|
__pyx_t_6 = 0;
|
|
__pyx_r = ((PyObject *)__pyx_t_3);
|
|
__pyx_t_3 = 0;
|
|
goto __pyx_L0;
|
|
goto __pyx_L18;
|
|
}
|
|
|
|
/* "preprocessed_text.py":156
|
|
* if lower_line0[1:5] == "$omp":
|
|
* return [ Openmp(i,line,filename) ], is_doc
|
|
* elif lower_line0[1:5] in ["dec$", "dir$"] and command_line.directives: # <<<<<<<<<<<<<<
|
|
* return [ Directive(i,line,filename) ], is_doc
|
|
* elif lower_line0[1:3] == "$ ":
|
|
*/
|
|
__pyx_t_3 = __Pyx_PySequence_GetSlice(__pyx_v_lower_line0, 1, 5); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 156; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__pyx_t_2 = __Pyx_PyString_Equals(__pyx_t_3, ((PyObject *)__pyx_kp_s_13), Py_EQ); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 156; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
if (!((int)__pyx_t_2)) {
|
|
__pyx_t_9 = __Pyx_PyString_Equals(__pyx_t_3, ((PyObject *)__pyx_kp_s_14), Py_EQ); if (unlikely(__pyx_t_9 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 156; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__pyx_t_8 = ((int)__pyx_t_9);
|
|
} else {
|
|
__pyx_t_8 = ((int)__pyx_t_2);
|
|
}
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
__pyx_t_2 = __pyx_t_8;
|
|
if (__pyx_t_2) {
|
|
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__command_line); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 156; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__pyx_t_6 = PyObject_GetAttr(__pyx_t_3, __pyx_n_s__directives); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 156; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
__pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely(__pyx_t_8 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 156; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__pyx_t_9 = __pyx_t_8;
|
|
} else {
|
|
__pyx_t_9 = __pyx_t_2;
|
|
}
|
|
if (__pyx_t_9) {
|
|
|
|
/* "preprocessed_text.py":157
|
|
* return [ Openmp(i,line,filename) ], is_doc
|
|
* elif lower_line0[1:5] in ["dec$", "dir$"] and command_line.directives:
|
|
* return [ Directive(i,line,filename) ], is_doc # <<<<<<<<<<<<<<
|
|
* elif lower_line0[1:3] == "$ ":
|
|
* return [ Openmp(i,line,filename) ], is_doc
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__Directive); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 157; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 157; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_3));
|
|
__Pyx_INCREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_i);
|
|
__Pyx_GIVEREF(__pyx_v_i);
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
__Pyx_INCREF(__pyx_v_filename);
|
|
PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_filename);
|
|
__Pyx_GIVEREF(__pyx_v_filename);
|
|
__pyx_t_4 = PyObject_Call(__pyx_t_6, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 157; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
|
|
__pyx_t_3 = PyList_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 157; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_3));
|
|
PyList_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
|
|
__Pyx_GIVEREF(__pyx_t_4);
|
|
__pyx_t_4 = 0;
|
|
__pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 157; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)__pyx_t_3));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_t_3));
|
|
__Pyx_INCREF(__pyx_v_is_doc);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_is_doc);
|
|
__Pyx_GIVEREF(__pyx_v_is_doc);
|
|
__pyx_t_3 = 0;
|
|
__pyx_r = ((PyObject *)__pyx_t_4);
|
|
__pyx_t_4 = 0;
|
|
goto __pyx_L0;
|
|
goto __pyx_L18;
|
|
}
|
|
|
|
/* "preprocessed_text.py":158
|
|
* elif lower_line0[1:5] in ["dec$", "dir$"] and command_line.directives:
|
|
* return [ Directive(i,line,filename) ], is_doc
|
|
* elif lower_line0[1:3] == "$ ": # <<<<<<<<<<<<<<
|
|
* return [ Openmp(i,line,filename) ], is_doc
|
|
*
|
|
*/
|
|
__pyx_t_4 = __Pyx_PySequence_GetSlice(__pyx_v_lower_line0, 1, 3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 158; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_9 = __Pyx_PyString_Equals(__pyx_t_4, ((PyObject *)__pyx_kp_s_15), Py_EQ); if (unlikely(__pyx_t_9 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 158; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
if (__pyx_t_9) {
|
|
|
|
/* "preprocessed_text.py":159
|
|
* return [ Directive(i,line,filename) ], is_doc
|
|
* elif lower_line0[1:3] == "$ ":
|
|
* return [ Openmp(i,line,filename) ], is_doc # <<<<<<<<<<<<<<
|
|
*
|
|
* if re_decl.match(lower_line) is not None:
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__Openmp); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 159; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 159; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_3));
|
|
__Pyx_INCREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_i);
|
|
__Pyx_GIVEREF(__pyx_v_i);
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
__Pyx_INCREF(__pyx_v_filename);
|
|
PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_filename);
|
|
__Pyx_GIVEREF(__pyx_v_filename);
|
|
__pyx_t_6 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 159; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
|
|
__pyx_t_3 = PyList_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 159; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_3));
|
|
PyList_SET_ITEM(__pyx_t_3, 0, __pyx_t_6);
|
|
__Pyx_GIVEREF(__pyx_t_6);
|
|
__pyx_t_6 = 0;
|
|
__pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 159; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_6));
|
|
PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)__pyx_t_3));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_t_3));
|
|
__Pyx_INCREF(__pyx_v_is_doc);
|
|
PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_v_is_doc);
|
|
__Pyx_GIVEREF(__pyx_v_is_doc);
|
|
__pyx_t_3 = 0;
|
|
__pyx_r = ((PyObject *)__pyx_t_6);
|
|
__pyx_t_6 = 0;
|
|
goto __pyx_L0;
|
|
goto __pyx_L18;
|
|
}
|
|
__pyx_L18:;
|
|
|
|
/* "preprocessed_text.py":161
|
|
* return [ Openmp(i,line,filename) ], is_doc
|
|
*
|
|
* if re_decl.match(lower_line) is not None: # <<<<<<<<<<<<<<
|
|
* if "function" in buffer[1:3]:
|
|
* return [ Function (i,line,filename) ], is_doc
|
|
*/
|
|
__pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__re_decl); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 161; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_3 = PyObject_GetAttr(__pyx_t_6, __pyx_n_s__match); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 161; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 161; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_6));
|
|
__Pyx_INCREF(__pyx_v_lower_line);
|
|
PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v_lower_line);
|
|
__Pyx_GIVEREF(__pyx_v_lower_line);
|
|
__pyx_t_4 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_t_6), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 161; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
|
|
__pyx_t_9 = (__pyx_t_4 != Py_None);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
if (__pyx_t_9) {
|
|
|
|
/* "preprocessed_text.py":162
|
|
*
|
|
* if re_decl.match(lower_line) is not None:
|
|
* if "function" in buffer[1:3]: # <<<<<<<<<<<<<<
|
|
* return [ Function (i,line,filename) ], is_doc
|
|
* else:
|
|
*/
|
|
__pyx_t_4 = __Pyx_PySequence_GetSlice(__pyx_v_buffer, 1, 3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 162; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_9 = ((PySequence_Contains(__pyx_t_4, ((PyObject *)__pyx_n_s__function)))); if (unlikely(__pyx_t_9 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 162; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
if (__pyx_t_9) {
|
|
|
|
/* "preprocessed_text.py":163
|
|
* if re_decl.match(lower_line) is not None:
|
|
* if "function" in buffer[1:3]:
|
|
* return [ Function (i,line,filename) ], is_doc # <<<<<<<<<<<<<<
|
|
* else:
|
|
* return [ Declaration (i,line,filename) ], is_doc
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__Function); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 163; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 163; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_6));
|
|
__Pyx_INCREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v_i);
|
|
__Pyx_GIVEREF(__pyx_v_i);
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
__Pyx_INCREF(__pyx_v_filename);
|
|
PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_filename);
|
|
__Pyx_GIVEREF(__pyx_v_filename);
|
|
__pyx_t_3 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_t_6), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 163; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
|
|
__pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 163; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_6));
|
|
PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_3);
|
|
__Pyx_GIVEREF(__pyx_t_3);
|
|
__pyx_t_3 = 0;
|
|
__pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 163; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_3));
|
|
PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_t_6));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_t_6));
|
|
__Pyx_INCREF(__pyx_v_is_doc);
|
|
PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_is_doc);
|
|
__Pyx_GIVEREF(__pyx_v_is_doc);
|
|
__pyx_t_6 = 0;
|
|
__pyx_r = ((PyObject *)__pyx_t_3);
|
|
__pyx_t_3 = 0;
|
|
goto __pyx_L0;
|
|
goto __pyx_L20;
|
|
}
|
|
/*else*/ {
|
|
|
|
/* "preprocessed_text.py":165
|
|
* return [ Function (i,line,filename) ], is_doc
|
|
* else:
|
|
* return [ Declaration (i,line,filename) ], is_doc # <<<<<<<<<<<<<<
|
|
*
|
|
* # Detect errors
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__Declaration); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 165; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 165; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_6));
|
|
__Pyx_INCREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v_i);
|
|
__Pyx_GIVEREF(__pyx_v_i);
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
__Pyx_INCREF(__pyx_v_filename);
|
|
PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_v_filename);
|
|
__Pyx_GIVEREF(__pyx_v_filename);
|
|
__pyx_t_4 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_t_6), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 165; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
|
|
__pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 165; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_6));
|
|
PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_4);
|
|
__Pyx_GIVEREF(__pyx_t_4);
|
|
__pyx_t_4 = 0;
|
|
__pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 165; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)__pyx_t_6));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_t_6));
|
|
__Pyx_INCREF(__pyx_v_is_doc);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_is_doc);
|
|
__Pyx_GIVEREF(__pyx_v_is_doc);
|
|
__pyx_t_6 = 0;
|
|
__pyx_r = ((PyObject *)__pyx_t_4);
|
|
__pyx_t_4 = 0;
|
|
goto __pyx_L0;
|
|
}
|
|
__pyx_L20:;
|
|
goto __pyx_L19;
|
|
}
|
|
__pyx_L19:;
|
|
|
|
/* "preprocessed_text.py":168
|
|
*
|
|
* # Detect errors
|
|
* if firstword == "dowhile": # <<<<<<<<<<<<<<
|
|
* error.fail( Do(i,line,filename) , "'do while' should be in 2 words." )
|
|
*
|
|
*/
|
|
__pyx_t_9 = __Pyx_PyString_Equals(__pyx_v_firstword, ((PyObject *)__pyx_n_s__dowhile), Py_EQ); if (unlikely(__pyx_t_9 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 168; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
if (__pyx_t_9) {
|
|
|
|
/* "preprocessed_text.py":169
|
|
* # Detect errors
|
|
* if firstword == "dowhile":
|
|
* error.fail( Do(i,line,filename) , "'do while' should be in 2 words." ) # <<<<<<<<<<<<<<
|
|
*
|
|
* return [ Simple_line(i,line,filename) ], is_doc
|
|
*/
|
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__error); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 169; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_6 = PyObject_GetAttr(__pyx_t_4, __pyx_n_s__fail); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 169; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__Do); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 169; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 169; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_3));
|
|
__Pyx_INCREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_i);
|
|
__Pyx_GIVEREF(__pyx_v_i);
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
__Pyx_INCREF(__pyx_v_filename);
|
|
PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_filename);
|
|
__Pyx_GIVEREF(__pyx_v_filename);
|
|
__pyx_t_1 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 169; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
|
|
__pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 169; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_3));
|
|
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
|
|
__Pyx_GIVEREF(__pyx_t_1);
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_16));
|
|
PyTuple_SET_ITEM(__pyx_t_3, 1, ((PyObject *)__pyx_kp_s_16));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_16));
|
|
__pyx_t_1 = 0;
|
|
__pyx_t_1 = PyObject_Call(__pyx_t_6, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 169; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
goto __pyx_L21;
|
|
}
|
|
__pyx_L21:;
|
|
goto __pyx_L15;
|
|
}
|
|
__pyx_L15:;
|
|
|
|
/* "preprocessed_text.py":171
|
|
* error.fail( Do(i,line,filename) , "'do while' should be in 2 words." )
|
|
*
|
|
* return [ Simple_line(i,line,filename) ], is_doc # <<<<<<<<<<<<<<
|
|
*
|
|
*
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__Simple_line); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 171; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 171; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_3));
|
|
__Pyx_INCREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_i);
|
|
__Pyx_GIVEREF(__pyx_v_i);
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
__Pyx_INCREF(__pyx_v_filename);
|
|
PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_filename);
|
|
__Pyx_GIVEREF(__pyx_v_filename);
|
|
__pyx_t_6 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 171; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
|
|
__pyx_t_3 = PyList_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 171; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_3));
|
|
PyList_SET_ITEM(__pyx_t_3, 0, __pyx_t_6);
|
|
__Pyx_GIVEREF(__pyx_t_6);
|
|
__pyx_t_6 = 0;
|
|
__pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 171; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_6));
|
|
PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)__pyx_t_3));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_t_3));
|
|
__Pyx_INCREF(__pyx_v_is_doc);
|
|
PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_v_is_doc);
|
|
__Pyx_GIVEREF(__pyx_v_is_doc);
|
|
__pyx_t_3 = 0;
|
|
__pyx_r = ((PyObject *)__pyx_t_6);
|
|
__pyx_t_6 = 0;
|
|
goto __pyx_L0;
|
|
|
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
|
goto __pyx_L0;
|
|
__pyx_L1_error:;
|
|
__Pyx_XDECREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_t_3);
|
|
__Pyx_XDECREF(__pyx_t_4);
|
|
__Pyx_XDECREF(__pyx_t_6);
|
|
__Pyx_AddTraceback("preprocessed_text.get_type", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__pyx_r = NULL;
|
|
__pyx_L0:;
|
|
__Pyx_XDECREF(__pyx_v_lower_line0);
|
|
__Pyx_XDECREF(__pyx_v_lower_line);
|
|
__Pyx_XDECREF(__pyx_v_c);
|
|
__Pyx_XDECREF(__pyx_v_buffer);
|
|
__Pyx_XDECREF(__pyx_v_firstword);
|
|
__Pyx_XDECREF(__pyx_v_result);
|
|
__Pyx_XDECREF(__pyx_v_line);
|
|
__Pyx_XGIVEREF(__pyx_r);
|
|
__Pyx_RefNannyFinishContext();
|
|
return __pyx_r;
|
|
}
|
|
|
|
/* "preprocessed_text.py":175
|
|
*
|
|
* ######################################################################
|
|
* def get_text(lines,filename): # <<<<<<<<<<<<<<
|
|
* '''Read the input file and transform it to labeled lines'''
|
|
* assert type(filename) == str
|
|
*/
|
|
|
|
static PyObject *__pyx_pf_17preprocessed_text_1get_text(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
|
|
static char __pyx_doc_17preprocessed_text_1get_text[] = "Read the input file and transform it to labeled lines";
|
|
static PyMethodDef __pyx_mdef_17preprocessed_text_1get_text = {__Pyx_NAMESTR("get_text"), (PyCFunction)__pyx_pf_17preprocessed_text_1get_text, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(__pyx_doc_17preprocessed_text_1get_text)};
|
|
static PyObject *__pyx_pf_17preprocessed_text_1get_text(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
|
|
PyObject *__pyx_v_lines = 0;
|
|
PyObject *__pyx_v_filename = 0;
|
|
PyObject *__pyx_v_result = NULL;
|
|
PyObject *__pyx_v_is_doc = NULL;
|
|
PyObject *__pyx_v_i = NULL;
|
|
PyObject *__pyx_v_line = NULL;
|
|
PyObject *__pyx_r = NULL;
|
|
__Pyx_RefNannyDeclarations
|
|
PyObject *__pyx_t_1 = NULL;
|
|
int __pyx_t_2;
|
|
PyObject *__pyx_t_3 = NULL;
|
|
Py_ssize_t __pyx_t_4;
|
|
PyObject *(*__pyx_t_5)(PyObject *);
|
|
PyObject *__pyx_t_6 = NULL;
|
|
PyObject *__pyx_t_7 = NULL;
|
|
PyObject *__pyx_t_8 = NULL;
|
|
PyObject *__pyx_t_9 = NULL;
|
|
PyObject *(*__pyx_t_10)(PyObject *);
|
|
int __pyx_lineno = 0;
|
|
const char *__pyx_filename = NULL;
|
|
int __pyx_clineno = 0;
|
|
static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__lines,&__pyx_n_s__filename,0};
|
|
__Pyx_RefNannySetupContext("get_text");
|
|
__pyx_self = __pyx_self;
|
|
{
|
|
PyObject* values[2] = {0,0};
|
|
if (unlikely(__pyx_kwds)) {
|
|
Py_ssize_t kw_args;
|
|
switch (PyTuple_GET_SIZE(__pyx_args)) {
|
|
case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
|
|
case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
|
|
case 0: break;
|
|
default: goto __pyx_L5_argtuple_error;
|
|
}
|
|
kw_args = PyDict_Size(__pyx_kwds);
|
|
switch (PyTuple_GET_SIZE(__pyx_args)) {
|
|
case 0:
|
|
values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__lines);
|
|
if (likely(values[0])) kw_args--;
|
|
else goto __pyx_L5_argtuple_error;
|
|
case 1:
|
|
values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__filename);
|
|
if (likely(values[1])) kw_args--;
|
|
else {
|
|
__Pyx_RaiseArgtupleInvalid("get_text", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 175; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
|
|
}
|
|
}
|
|
if (unlikely(kw_args > 0)) {
|
|
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "get_text") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 175; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
|
|
}
|
|
} else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
|
|
goto __pyx_L5_argtuple_error;
|
|
} else {
|
|
values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
|
|
values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
|
|
}
|
|
__pyx_v_lines = values[0];
|
|
__pyx_v_filename = values[1];
|
|
}
|
|
goto __pyx_L4_argument_unpacking_done;
|
|
__pyx_L5_argtuple_error:;
|
|
__Pyx_RaiseArgtupleInvalid("get_text", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 175; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
|
|
__pyx_L3_error:;
|
|
__Pyx_AddTraceback("preprocessed_text.get_text", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__Pyx_RefNannyFinishContext();
|
|
return NULL;
|
|
__pyx_L4_argument_unpacking_done:;
|
|
|
|
/* "preprocessed_text.py":177
|
|
* def get_text(lines,filename):
|
|
* '''Read the input file and transform it to labeled lines'''
|
|
* assert type(filename) == str # <<<<<<<<<<<<<<
|
|
* assert type(lines) == list
|
|
*
|
|
*/
|
|
#ifndef CYTHON_WITHOUT_ASSERTIONS
|
|
__pyx_t_1 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_filename)), ((PyObject *)((PyObject*)(&PyString_Type))), Py_EQ); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 177; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 177; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
if (unlikely(!__pyx_t_2)) {
|
|
PyErr_SetNone(PyExc_AssertionError);
|
|
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 177; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
#endif
|
|
|
|
/* "preprocessed_text.py":178
|
|
* '''Read the input file and transform it to labeled lines'''
|
|
* assert type(filename) == str
|
|
* assert type(lines) == list # <<<<<<<<<<<<<<
|
|
*
|
|
* result = []
|
|
*/
|
|
#ifndef CYTHON_WITHOUT_ASSERTIONS
|
|
__pyx_t_1 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_lines)), ((PyObject *)((PyObject*)(&PyList_Type))), Py_EQ); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 178; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 178; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
if (unlikely(!__pyx_t_2)) {
|
|
PyErr_SetNone(PyExc_AssertionError);
|
|
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 178; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
#endif
|
|
|
|
/* "preprocessed_text.py":180
|
|
* assert type(lines) == list
|
|
*
|
|
* result = [] # <<<<<<<<<<<<<<
|
|
* is_doc = False
|
|
* for i,line in enumerate(lines):
|
|
*/
|
|
__pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 180; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__pyx_v_result = ((PyObject *)__pyx_t_1);
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":181
|
|
*
|
|
* result = []
|
|
* is_doc = False # <<<<<<<<<<<<<<
|
|
* for i,line in enumerate(lines):
|
|
* line, is_doc = get_type(i+1,filename,line,is_doc)
|
|
*/
|
|
__pyx_t_1 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 181; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_v_is_doc = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":182
|
|
* result = []
|
|
* is_doc = False
|
|
* for i,line in enumerate(lines): # <<<<<<<<<<<<<<
|
|
* line, is_doc = get_type(i+1,filename,line,is_doc)
|
|
* result += line
|
|
*/
|
|
__Pyx_INCREF(__pyx_int_0);
|
|
__pyx_t_1 = __pyx_int_0;
|
|
if (PyList_CheckExact(__pyx_v_lines) || PyTuple_CheckExact(__pyx_v_lines)) {
|
|
__pyx_t_3 = __pyx_v_lines; __Pyx_INCREF(__pyx_t_3); __pyx_t_4 = 0;
|
|
__pyx_t_5 = NULL;
|
|
} else {
|
|
__pyx_t_4 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_v_lines); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 182; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__pyx_t_5 = Py_TYPE(__pyx_t_3)->tp_iternext;
|
|
}
|
|
for (;;) {
|
|
if (PyList_CheckExact(__pyx_t_3)) {
|
|
if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_3)) break;
|
|
__pyx_t_6 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_4); __Pyx_INCREF(__pyx_t_6); __pyx_t_4++;
|
|
} else if (PyTuple_CheckExact(__pyx_t_3)) {
|
|
if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_3)) break;
|
|
__pyx_t_6 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_4); __Pyx_INCREF(__pyx_t_6); __pyx_t_4++;
|
|
} else {
|
|
__pyx_t_6 = __pyx_t_5(__pyx_t_3);
|
|
if (unlikely(!__pyx_t_6)) {
|
|
if (PyErr_Occurred()) {
|
|
if (likely(PyErr_ExceptionMatches(PyExc_StopIteration))) PyErr_Clear();
|
|
else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 182; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
break;
|
|
}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
}
|
|
__Pyx_XDECREF(__pyx_v_line);
|
|
__pyx_v_line = __pyx_t_6;
|
|
__pyx_t_6 = 0;
|
|
__Pyx_INCREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_v_i);
|
|
__pyx_v_i = __pyx_t_1;
|
|
__pyx_t_6 = PyNumber_Add(__pyx_t_1, __pyx_int_1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 182; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_1);
|
|
__pyx_t_1 = __pyx_t_6;
|
|
__pyx_t_6 = 0;
|
|
|
|
/* "preprocessed_text.py":183
|
|
* is_doc = False
|
|
* for i,line in enumerate(lines):
|
|
* line, is_doc = get_type(i+1,filename,line,is_doc) # <<<<<<<<<<<<<<
|
|
* result += line
|
|
* return result
|
|
*/
|
|
__pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__get_type); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 183; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_7 = PyNumber_Add(__pyx_v_i, __pyx_int_1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 183; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__pyx_t_8 = PyTuple_New(4); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 183; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_8));
|
|
PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_7);
|
|
__Pyx_GIVEREF(__pyx_t_7);
|
|
__Pyx_INCREF(__pyx_v_filename);
|
|
PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_v_filename);
|
|
__Pyx_GIVEREF(__pyx_v_filename);
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
__Pyx_INCREF(__pyx_v_is_doc);
|
|
PyTuple_SET_ITEM(__pyx_t_8, 3, __pyx_v_is_doc);
|
|
__Pyx_GIVEREF(__pyx_v_is_doc);
|
|
__pyx_t_7 = 0;
|
|
__pyx_t_7 = PyObject_Call(__pyx_t_6, ((PyObject *)__pyx_t_8), NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 183; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_8)); __pyx_t_8 = 0;
|
|
if ((likely(PyTuple_CheckExact(__pyx_t_7))) || (PyList_CheckExact(__pyx_t_7))) {
|
|
PyObject* sequence = __pyx_t_7;
|
|
if (likely(PyTuple_CheckExact(sequence))) {
|
|
if (unlikely(PyTuple_GET_SIZE(sequence) != 2)) {
|
|
if (PyTuple_GET_SIZE(sequence) > 2) __Pyx_RaiseTooManyValuesError(2);
|
|
else __Pyx_RaiseNeedMoreValuesError(PyTuple_GET_SIZE(sequence));
|
|
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 183; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
__pyx_t_8 = PyTuple_GET_ITEM(sequence, 0);
|
|
__pyx_t_6 = PyTuple_GET_ITEM(sequence, 1);
|
|
} else {
|
|
if (unlikely(PyList_GET_SIZE(sequence) != 2)) {
|
|
if (PyList_GET_SIZE(sequence) > 2) __Pyx_RaiseTooManyValuesError(2);
|
|
else __Pyx_RaiseNeedMoreValuesError(PyList_GET_SIZE(sequence));
|
|
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 183; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
__pyx_t_8 = PyList_GET_ITEM(sequence, 0);
|
|
__pyx_t_6 = PyList_GET_ITEM(sequence, 1);
|
|
}
|
|
__Pyx_INCREF(__pyx_t_8);
|
|
__Pyx_INCREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
} else {
|
|
Py_ssize_t index = -1;
|
|
__pyx_t_9 = PyObject_GetIter(__pyx_t_7); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 183; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_9);
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
__pyx_t_10 = Py_TYPE(__pyx_t_9)->tp_iternext;
|
|
index = 0; __pyx_t_8 = __pyx_t_10(__pyx_t_9); if (unlikely(!__pyx_t_8)) goto __pyx_L8_unpacking_failed;
|
|
__Pyx_GOTREF(__pyx_t_8);
|
|
index = 1; __pyx_t_6 = __pyx_t_10(__pyx_t_9); if (unlikely(!__pyx_t_6)) goto __pyx_L8_unpacking_failed;
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
if (__Pyx_IternextUnpackEndCheck(__pyx_t_10(__pyx_t_9), 2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 183; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
|
|
goto __pyx_L9_unpacking_done;
|
|
__pyx_L8_unpacking_failed:;
|
|
__Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
|
|
if (PyErr_Occurred() && PyErr_ExceptionMatches(PyExc_StopIteration)) PyErr_Clear();
|
|
if (!PyErr_Occurred()) __Pyx_RaiseNeedMoreValuesError(index);
|
|
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 183; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__pyx_L9_unpacking_done:;
|
|
}
|
|
__Pyx_DECREF(__pyx_v_line);
|
|
__pyx_v_line = __pyx_t_8;
|
|
__pyx_t_8 = 0;
|
|
__Pyx_DECREF(__pyx_v_is_doc);
|
|
__pyx_v_is_doc = __pyx_t_6;
|
|
__pyx_t_6 = 0;
|
|
|
|
/* "preprocessed_text.py":184
|
|
* for i,line in enumerate(lines):
|
|
* line, is_doc = get_type(i+1,filename,line,is_doc)
|
|
* result += line # <<<<<<<<<<<<<<
|
|
* return result
|
|
*
|
|
*/
|
|
__pyx_t_7 = PyNumber_InPlaceAdd(__pyx_v_result, __pyx_v_line); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 184; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__Pyx_DECREF(__pyx_v_result);
|
|
__pyx_v_result = __pyx_t_7;
|
|
__pyx_t_7 = 0;
|
|
}
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":185
|
|
* line, is_doc = get_type(i+1,filename,line,is_doc)
|
|
* result += line
|
|
* return result # <<<<<<<<<<<<<<
|
|
*
|
|
* ######################################################################
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__Pyx_INCREF(__pyx_v_result);
|
|
__pyx_r = __pyx_v_result;
|
|
goto __pyx_L0;
|
|
|
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
|
goto __pyx_L0;
|
|
__pyx_L1_error:;
|
|
__Pyx_XDECREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_t_3);
|
|
__Pyx_XDECREF(__pyx_t_6);
|
|
__Pyx_XDECREF(__pyx_t_7);
|
|
__Pyx_XDECREF(__pyx_t_8);
|
|
__Pyx_XDECREF(__pyx_t_9);
|
|
__Pyx_AddTraceback("preprocessed_text.get_text", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__pyx_r = NULL;
|
|
__pyx_L0:;
|
|
__Pyx_XDECREF(__pyx_v_result);
|
|
__Pyx_XDECREF(__pyx_v_is_doc);
|
|
__Pyx_XDECREF(__pyx_v_i);
|
|
__Pyx_XDECREF(__pyx_v_line);
|
|
__Pyx_XGIVEREF(__pyx_r);
|
|
__Pyx_RefNannyFinishContext();
|
|
return __pyx_r;
|
|
}
|
|
|
|
/* "preprocessed_text.py":190
|
|
* def execute_shell(text):
|
|
* '''Execute the embedded shell scripts'''
|
|
* def fail(l,a,b): error.fail(l,"In Begin_Shell, %s '%s'"%(a,b)) # <<<<<<<<<<<<<<
|
|
* inside = False
|
|
* result = []
|
|
*/
|
|
|
|
static PyObject *__pyx_pf_17preprocessed_text_13execute_shell_fail(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
|
|
static PyMethodDef __pyx_mdef_17preprocessed_text_13execute_shell_fail = {__Pyx_NAMESTR("fail"), (PyCFunction)__pyx_pf_17preprocessed_text_13execute_shell_fail, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(0)};
|
|
static PyObject *__pyx_pf_17preprocessed_text_13execute_shell_fail(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
|
|
PyObject *__pyx_v_l = 0;
|
|
PyObject *__pyx_v_a = 0;
|
|
PyObject *__pyx_v_b = 0;
|
|
PyObject *__pyx_r = NULL;
|
|
__Pyx_RefNannyDeclarations
|
|
PyObject *__pyx_t_1 = NULL;
|
|
PyObject *__pyx_t_2 = NULL;
|
|
PyObject *__pyx_t_3 = NULL;
|
|
int __pyx_lineno = 0;
|
|
const char *__pyx_filename = NULL;
|
|
int __pyx_clineno = 0;
|
|
static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__l,&__pyx_n_s__a,&__pyx_n_s__b,0};
|
|
__Pyx_RefNannySetupContext("fail");
|
|
__pyx_self = __pyx_self;
|
|
{
|
|
PyObject* values[3] = {0,0,0};
|
|
if (unlikely(__pyx_kwds)) {
|
|
Py_ssize_t kw_args;
|
|
switch (PyTuple_GET_SIZE(__pyx_args)) {
|
|
case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
|
|
case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
|
|
case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
|
|
case 0: break;
|
|
default: goto __pyx_L5_argtuple_error;
|
|
}
|
|
kw_args = PyDict_Size(__pyx_kwds);
|
|
switch (PyTuple_GET_SIZE(__pyx_args)) {
|
|
case 0:
|
|
values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__l);
|
|
if (likely(values[0])) kw_args--;
|
|
else goto __pyx_L5_argtuple_error;
|
|
case 1:
|
|
values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__a);
|
|
if (likely(values[1])) kw_args--;
|
|
else {
|
|
__Pyx_RaiseArgtupleInvalid("fail", 1, 3, 3, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 190; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
|
|
}
|
|
case 2:
|
|
values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__b);
|
|
if (likely(values[2])) kw_args--;
|
|
else {
|
|
__Pyx_RaiseArgtupleInvalid("fail", 1, 3, 3, 2); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 190; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
|
|
}
|
|
}
|
|
if (unlikely(kw_args > 0)) {
|
|
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "fail") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 190; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
|
|
}
|
|
} else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
|
|
goto __pyx_L5_argtuple_error;
|
|
} else {
|
|
values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
|
|
values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
|
|
values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
|
|
}
|
|
__pyx_v_l = values[0];
|
|
__pyx_v_a = values[1];
|
|
__pyx_v_b = values[2];
|
|
}
|
|
goto __pyx_L4_argument_unpacking_done;
|
|
__pyx_L5_argtuple_error:;
|
|
__Pyx_RaiseArgtupleInvalid("fail", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 190; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
|
|
__pyx_L3_error:;
|
|
__Pyx_AddTraceback("preprocessed_text.execute_shell.fail", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__Pyx_RefNannyFinishContext();
|
|
return NULL;
|
|
__pyx_L4_argument_unpacking_done:;
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__error); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 190; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_n_s__fail); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 190; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 190; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(__pyx_v_a);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_a);
|
|
__Pyx_GIVEREF(__pyx_v_a);
|
|
__Pyx_INCREF(__pyx_v_b);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_b);
|
|
__Pyx_GIVEREF(__pyx_v_b);
|
|
__pyx_t_3 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_17), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 190; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_3));
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
__pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 190; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(__pyx_v_l);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_l);
|
|
__Pyx_GIVEREF(__pyx_v_l);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_t_3));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_t_3));
|
|
__pyx_t_3 = 0;
|
|
__pyx_t_3 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 190; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
|
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
|
goto __pyx_L0;
|
|
__pyx_L1_error:;
|
|
__Pyx_XDECREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_t_2);
|
|
__Pyx_XDECREF(__pyx_t_3);
|
|
__Pyx_AddTraceback("preprocessed_text.execute_shell.fail", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__pyx_r = NULL;
|
|
__pyx_L0:;
|
|
__Pyx_XGIVEREF(__pyx_r);
|
|
__Pyx_RefNannyFinishContext();
|
|
return __pyx_r;
|
|
}
|
|
|
|
/* "preprocessed_text.py":188
|
|
*
|
|
* ######################################################################
|
|
* def execute_shell(text): # <<<<<<<<<<<<<<
|
|
* '''Execute the embedded shell scripts'''
|
|
* def fail(l,a,b): error.fail(l,"In Begin_Shell, %s '%s'"%(a,b))
|
|
*/
|
|
|
|
static PyObject *__pyx_pf_17preprocessed_text_2execute_shell(PyObject *__pyx_self, PyObject *__pyx_v_text); /*proto*/
|
|
static char __pyx_doc_17preprocessed_text_2execute_shell[] = "Execute the embedded shell scripts";
|
|
static PyMethodDef __pyx_mdef_17preprocessed_text_2execute_shell = {__Pyx_NAMESTR("execute_shell"), (PyCFunction)__pyx_pf_17preprocessed_text_2execute_shell, METH_O, __Pyx_DOCSTR(__pyx_doc_17preprocessed_text_2execute_shell)};
|
|
static PyObject *__pyx_pf_17preprocessed_text_2execute_shell(PyObject *__pyx_self, PyObject *__pyx_v_text) {
|
|
PyObject *__pyx_v_fail = 0;
|
|
int __pyx_v_inside;
|
|
PyObject *__pyx_v_result = NULL;
|
|
PyObject *__pyx_v_line = NULL;
|
|
PyObject *__pyx_v_scriptname = NULL;
|
|
PyObject *__pyx_v_file = NULL;
|
|
PyObject *__pyx_v_os = NULL;
|
|
PyObject *__pyx_v_pipe = NULL;
|
|
PyObject *__pyx_v_lines = NULL;
|
|
PyObject *__pyx_v_begin = NULL;
|
|
PyObject *__pyx_v_script = NULL;
|
|
PyObject *__pyx_v_buffer = NULL;
|
|
PyObject *__pyx_v_shell = NULL;
|
|
PyObject *__pyx_r = NULL;
|
|
__Pyx_RefNannyDeclarations
|
|
PyObject *__pyx_t_1 = NULL;
|
|
Py_ssize_t __pyx_t_2;
|
|
PyObject *(*__pyx_t_3)(PyObject *);
|
|
PyObject *__pyx_t_4 = NULL;
|
|
PyObject *__pyx_t_5 = NULL;
|
|
int __pyx_t_6;
|
|
PyObject *__pyx_t_7 = NULL;
|
|
PyObject *__pyx_t_8 = NULL;
|
|
int __pyx_t_9;
|
|
Py_ssize_t __pyx_t_10;
|
|
int __pyx_lineno = 0;
|
|
const char *__pyx_filename = NULL;
|
|
int __pyx_clineno = 0;
|
|
__Pyx_RefNannySetupContext("execute_shell");
|
|
__pyx_self = __pyx_self;
|
|
|
|
/* "preprocessed_text.py":190
|
|
* def execute_shell(text):
|
|
* '''Execute the embedded shell scripts'''
|
|
* def fail(l,a,b): error.fail(l,"In Begin_Shell, %s '%s'"%(a,b)) # <<<<<<<<<<<<<<
|
|
* inside = False
|
|
* result = []
|
|
*/
|
|
__pyx_t_1 = __pyx_binding_PyCFunctionType_NewEx(&__pyx_mdef_17preprocessed_text_13execute_shell_fail, NULL, __pyx_n_s__preprocessed_text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 190; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_v_fail);
|
|
__pyx_v_fail = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":191
|
|
* '''Execute the embedded shell scripts'''
|
|
* def fail(l,a,b): error.fail(l,"In Begin_Shell, %s '%s'"%(a,b))
|
|
* inside = False # <<<<<<<<<<<<<<
|
|
* result = []
|
|
* for line in text:
|
|
*/
|
|
__pyx_v_inside = 0;
|
|
|
|
/* "preprocessed_text.py":192
|
|
* def fail(l,a,b): error.fail(l,"In Begin_Shell, %s '%s'"%(a,b))
|
|
* inside = False
|
|
* result = [] # <<<<<<<<<<<<<<
|
|
* for line in text:
|
|
* if inside:
|
|
*/
|
|
__pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 192; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__pyx_v_result = ((PyObject *)__pyx_t_1);
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":193
|
|
* inside = False
|
|
* result = []
|
|
* for line in text: # <<<<<<<<<<<<<<
|
|
* if inside:
|
|
* if type(line) == Begin_shell:
|
|
*/
|
|
if (PyList_CheckExact(__pyx_v_text) || PyTuple_CheckExact(__pyx_v_text)) {
|
|
__pyx_t_1 = __pyx_v_text; __Pyx_INCREF(__pyx_t_1); __pyx_t_2 = 0;
|
|
__pyx_t_3 = NULL;
|
|
} else {
|
|
__pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 193; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_3 = Py_TYPE(__pyx_t_1)->tp_iternext;
|
|
}
|
|
for (;;) {
|
|
if (PyList_CheckExact(__pyx_t_1)) {
|
|
if (__pyx_t_2 >= PyList_GET_SIZE(__pyx_t_1)) break;
|
|
__pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++;
|
|
} else if (PyTuple_CheckExact(__pyx_t_1)) {
|
|
if (__pyx_t_2 >= PyTuple_GET_SIZE(__pyx_t_1)) break;
|
|
__pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++;
|
|
} else {
|
|
__pyx_t_4 = __pyx_t_3(__pyx_t_1);
|
|
if (unlikely(!__pyx_t_4)) {
|
|
if (PyErr_Occurred()) {
|
|
if (likely(PyErr_ExceptionMatches(PyExc_StopIteration))) PyErr_Clear();
|
|
else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 193; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
break;
|
|
}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
}
|
|
__Pyx_XDECREF(__pyx_v_line);
|
|
__pyx_v_line = __pyx_t_4;
|
|
__pyx_t_4 = 0;
|
|
|
|
/* "preprocessed_text.py":194
|
|
* result = []
|
|
* for line in text:
|
|
* if inside: # <<<<<<<<<<<<<<
|
|
* if type(line) == Begin_shell:
|
|
* error.fail(line,"Nested Begin_shell")
|
|
*/
|
|
if (__pyx_v_inside) {
|
|
|
|
/* "preprocessed_text.py":195
|
|
* for line in text:
|
|
* if inside:
|
|
* if type(line) == Begin_shell: # <<<<<<<<<<<<<<
|
|
* error.fail(line,"Nested Begin_shell")
|
|
* elif type(line) == End_shell:
|
|
*/
|
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__Begin_shell); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 195; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_5 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_line)), __pyx_t_4, Py_EQ); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 195; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 195; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
if (__pyx_t_6) {
|
|
|
|
/* "preprocessed_text.py":196
|
|
* if inside:
|
|
* if type(line) == Begin_shell:
|
|
* error.fail(line,"Nested Begin_shell") # <<<<<<<<<<<<<<
|
|
* elif type(line) == End_shell:
|
|
* inside = False
|
|
*/
|
|
__pyx_t_5 = __Pyx_GetName(__pyx_m, __pyx_n_s__error); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 196; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__pyx_t_4 = PyObject_GetAttr(__pyx_t_5, __pyx_n_s__fail); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 196; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
__pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 196; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_5));
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_18));
|
|
PyTuple_SET_ITEM(__pyx_t_5, 1, ((PyObject *)__pyx_kp_s_18));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_18));
|
|
__pyx_t_7 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_t_5), NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 196; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
goto __pyx_L8;
|
|
}
|
|
|
|
/* "preprocessed_text.py":197
|
|
* if type(line) == Begin_shell:
|
|
* error.fail(line,"Nested Begin_shell")
|
|
* elif type(line) == End_shell: # <<<<<<<<<<<<<<
|
|
* inside = False
|
|
* # Write script file
|
|
*/
|
|
__pyx_t_7 = __Pyx_GetName(__pyx_m, __pyx_n_s__End_shell); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 197; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__pyx_t_5 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_line)), __pyx_t_7, Py_EQ); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 197; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 197; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
if (__pyx_t_6) {
|
|
|
|
/* "preprocessed_text.py":198
|
|
* error.fail(line,"Nested Begin_shell")
|
|
* elif type(line) == End_shell:
|
|
* inside = False # <<<<<<<<<<<<<<
|
|
* # Write script file
|
|
* scriptname = "%s%s_shell_%d"%(irpdir,line.filename,line.i)
|
|
*/
|
|
__pyx_v_inside = 0;
|
|
|
|
/* "preprocessed_text.py":200
|
|
* inside = False
|
|
* # Write script file
|
|
* scriptname = "%s%s_shell_%d"%(irpdir,line.filename,line.i) # <<<<<<<<<<<<<<
|
|
* file = open(scriptname,'w')
|
|
* file.writelines(script)
|
|
*/
|
|
__pyx_t_5 = __Pyx_GetName(__pyx_m, __pyx_n_s__irpdir); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 200; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__pyx_t_7 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__filename); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 200; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__pyx_t_4 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__i); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 200; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_8 = PyTuple_New(3); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 200; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_8));
|
|
PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_5);
|
|
__Pyx_GIVEREF(__pyx_t_5);
|
|
PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_7);
|
|
__Pyx_GIVEREF(__pyx_t_7);
|
|
PyTuple_SET_ITEM(__pyx_t_8, 2, __pyx_t_4);
|
|
__Pyx_GIVEREF(__pyx_t_4);
|
|
__pyx_t_5 = 0;
|
|
__pyx_t_7 = 0;
|
|
__pyx_t_4 = 0;
|
|
__pyx_t_4 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_19), ((PyObject *)__pyx_t_8)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 200; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_8)); __pyx_t_8 = 0;
|
|
__Pyx_XDECREF(__pyx_v_scriptname);
|
|
__pyx_v_scriptname = ((PyObject *)__pyx_t_4);
|
|
__pyx_t_4 = 0;
|
|
|
|
/* "preprocessed_text.py":201
|
|
* # Write script file
|
|
* scriptname = "%s%s_shell_%d"%(irpdir,line.filename,line.i)
|
|
* file = open(scriptname,'w') # <<<<<<<<<<<<<<
|
|
* file.writelines(script)
|
|
* file.close()
|
|
*/
|
|
__pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 201; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
__Pyx_INCREF(__pyx_v_scriptname);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_scriptname);
|
|
__Pyx_GIVEREF(__pyx_v_scriptname);
|
|
__Pyx_INCREF(((PyObject *)__pyx_n_s__w));
|
|
PyTuple_SET_ITEM(__pyx_t_4, 1, ((PyObject *)__pyx_n_s__w));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_n_s__w));
|
|
__pyx_t_8 = PyObject_Call(__pyx_builtin_open, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 201; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_8);
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
|
|
__Pyx_XDECREF(__pyx_v_file);
|
|
__pyx_v_file = __pyx_t_8;
|
|
__pyx_t_8 = 0;
|
|
|
|
/* "preprocessed_text.py":202
|
|
* scriptname = "%s%s_shell_%d"%(irpdir,line.filename,line.i)
|
|
* file = open(scriptname,'w')
|
|
* file.writelines(script) # <<<<<<<<<<<<<<
|
|
* file.close()
|
|
* scriptname = "%s_shell_%d"%(line.filename,line.i)
|
|
*/
|
|
__pyx_t_8 = PyObject_GetAttr(__pyx_v_file, __pyx_n_s__writelines); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 202; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_8);
|
|
if (unlikely(!__pyx_v_script)) { __Pyx_RaiseUnboundLocalError("script"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 202; __pyx_clineno = __LINE__; goto __pyx_L1_error;} }__pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 202; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
__Pyx_INCREF(((PyObject *)__pyx_v_script));
|
|
PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)__pyx_v_script));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_v_script));
|
|
__pyx_t_7 = PyObject_Call(__pyx_t_8, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 202; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
|
|
/* "preprocessed_text.py":203
|
|
* file = open(scriptname,'w')
|
|
* file.writelines(script)
|
|
* file.close() # <<<<<<<<<<<<<<
|
|
* scriptname = "%s_shell_%d"%(line.filename,line.i)
|
|
* file = open(scriptname,'w')
|
|
*/
|
|
__pyx_t_7 = PyObject_GetAttr(__pyx_v_file, __pyx_n_s__close); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 203; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__pyx_t_4 = PyObject_Call(__pyx_t_7, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 203; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
|
|
/* "preprocessed_text.py":204
|
|
* file.writelines(script)
|
|
* file.close()
|
|
* scriptname = "%s_shell_%d"%(line.filename,line.i) # <<<<<<<<<<<<<<
|
|
* file = open(scriptname,'w')
|
|
* file.writelines(script)
|
|
*/
|
|
__pyx_t_4 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__filename); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 204; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_7 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__i); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 204; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 204; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_8));
|
|
PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_4);
|
|
__Pyx_GIVEREF(__pyx_t_4);
|
|
PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_7);
|
|
__Pyx_GIVEREF(__pyx_t_7);
|
|
__pyx_t_4 = 0;
|
|
__pyx_t_7 = 0;
|
|
__pyx_t_7 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_20), ((PyObject *)__pyx_t_8)); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 204; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_7));
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_8)); __pyx_t_8 = 0;
|
|
__Pyx_DECREF(__pyx_v_scriptname);
|
|
__pyx_v_scriptname = ((PyObject *)__pyx_t_7);
|
|
__pyx_t_7 = 0;
|
|
|
|
/* "preprocessed_text.py":205
|
|
* file.close()
|
|
* scriptname = "%s_shell_%d"%(line.filename,line.i)
|
|
* file = open(scriptname,'w') # <<<<<<<<<<<<<<
|
|
* file.writelines(script)
|
|
* file.close()
|
|
*/
|
|
__pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 205; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_7));
|
|
__Pyx_INCREF(__pyx_v_scriptname);
|
|
PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_v_scriptname);
|
|
__Pyx_GIVEREF(__pyx_v_scriptname);
|
|
__Pyx_INCREF(((PyObject *)__pyx_n_s__w));
|
|
PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_n_s__w));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_n_s__w));
|
|
__pyx_t_8 = PyObject_Call(__pyx_builtin_open, ((PyObject *)__pyx_t_7), NULL); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 205; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_8);
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0;
|
|
__Pyx_DECREF(__pyx_v_file);
|
|
__pyx_v_file = __pyx_t_8;
|
|
__pyx_t_8 = 0;
|
|
|
|
/* "preprocessed_text.py":206
|
|
* scriptname = "%s_shell_%d"%(line.filename,line.i)
|
|
* file = open(scriptname,'w')
|
|
* file.writelines(script) # <<<<<<<<<<<<<<
|
|
* file.close()
|
|
* # Execute shell
|
|
*/
|
|
__pyx_t_8 = PyObject_GetAttr(__pyx_v_file, __pyx_n_s__writelines); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 206; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_8);
|
|
__pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 206; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_7));
|
|
__Pyx_INCREF(((PyObject *)__pyx_v_script));
|
|
PyTuple_SET_ITEM(__pyx_t_7, 0, ((PyObject *)__pyx_v_script));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_v_script));
|
|
__pyx_t_4 = PyObject_Call(__pyx_t_8, ((PyObject *)__pyx_t_7), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 206; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0;
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
|
|
/* "preprocessed_text.py":207
|
|
* file = open(scriptname,'w')
|
|
* file.writelines(script)
|
|
* file.close() # <<<<<<<<<<<<<<
|
|
* # Execute shell
|
|
* import os
|
|
*/
|
|
__pyx_t_4 = PyObject_GetAttr(__pyx_v_file, __pyx_n_s__close); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 207; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_7 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 207; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
|
|
/* "preprocessed_text.py":209
|
|
* file.close()
|
|
* # Execute shell
|
|
* import os # <<<<<<<<<<<<<<
|
|
* pipe = os.popen("%s < %s"%(shell,scriptname),'r')
|
|
* lines = pipe.readlines()
|
|
*/
|
|
__pyx_t_7 = __Pyx_Import(((PyObject *)__pyx_n_s__os), 0, -1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 209; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__Pyx_XDECREF(__pyx_v_os);
|
|
__pyx_v_os = __pyx_t_7;
|
|
__pyx_t_7 = 0;
|
|
|
|
/* "preprocessed_text.py":210
|
|
* # Execute shell
|
|
* import os
|
|
* pipe = os.popen("%s < %s"%(shell,scriptname),'r') # <<<<<<<<<<<<<<
|
|
* lines = pipe.readlines()
|
|
* pipe.close()
|
|
*/
|
|
__pyx_t_7 = PyObject_GetAttr(__pyx_v_os, __pyx_n_s__popen); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 210; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
if (unlikely(!__pyx_v_shell)) { __Pyx_RaiseUnboundLocalError("shell"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 210; __pyx_clineno = __LINE__; goto __pyx_L1_error;} }__pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 210; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
__Pyx_INCREF(__pyx_v_shell);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_shell);
|
|
__Pyx_GIVEREF(__pyx_v_shell);
|
|
__Pyx_INCREF(__pyx_v_scriptname);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_scriptname);
|
|
__Pyx_GIVEREF(__pyx_v_scriptname);
|
|
__pyx_t_8 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_21), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 210; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_8));
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
|
|
__pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 210; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)__pyx_t_8));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_t_8));
|
|
__Pyx_INCREF(((PyObject *)__pyx_n_s__r));
|
|
PyTuple_SET_ITEM(__pyx_t_4, 1, ((PyObject *)__pyx_n_s__r));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_n_s__r));
|
|
__pyx_t_8 = 0;
|
|
__pyx_t_8 = PyObject_Call(__pyx_t_7, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 210; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_8);
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
|
|
__Pyx_XDECREF(__pyx_v_pipe);
|
|
__pyx_v_pipe = __pyx_t_8;
|
|
__pyx_t_8 = 0;
|
|
|
|
/* "preprocessed_text.py":211
|
|
* import os
|
|
* pipe = os.popen("%s < %s"%(shell,scriptname),'r')
|
|
* lines = pipe.readlines() # <<<<<<<<<<<<<<
|
|
* pipe.close()
|
|
* result += get_text(lines,scriptname)
|
|
*/
|
|
__pyx_t_8 = PyObject_GetAttr(__pyx_v_pipe, __pyx_n_s__readlines); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 211; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_8);
|
|
__pyx_t_4 = PyObject_Call(__pyx_t_8, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 211; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
__Pyx_XDECREF(__pyx_v_lines);
|
|
__pyx_v_lines = __pyx_t_4;
|
|
__pyx_t_4 = 0;
|
|
|
|
/* "preprocessed_text.py":212
|
|
* pipe = os.popen("%s < %s"%(shell,scriptname),'r')
|
|
* lines = pipe.readlines()
|
|
* pipe.close() # <<<<<<<<<<<<<<
|
|
* result += get_text(lines,scriptname)
|
|
* os.remove(scriptname)
|
|
*/
|
|
__pyx_t_4 = PyObject_GetAttr(__pyx_v_pipe, __pyx_n_s__close); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 212; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_8 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 212; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_8);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
|
|
/* "preprocessed_text.py":213
|
|
* lines = pipe.readlines()
|
|
* pipe.close()
|
|
* result += get_text(lines,scriptname) # <<<<<<<<<<<<<<
|
|
* os.remove(scriptname)
|
|
* else:
|
|
*/
|
|
__pyx_t_8 = __Pyx_GetName(__pyx_m, __pyx_n_s__get_text); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 213; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_8);
|
|
__pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 213; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
__Pyx_INCREF(__pyx_v_lines);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_lines);
|
|
__Pyx_GIVEREF(__pyx_v_lines);
|
|
__Pyx_INCREF(__pyx_v_scriptname);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_scriptname);
|
|
__Pyx_GIVEREF(__pyx_v_scriptname);
|
|
__pyx_t_7 = PyObject_Call(__pyx_t_8, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 213; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
|
|
__pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_result, __pyx_t_7); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 213; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
__Pyx_DECREF(__pyx_v_result);
|
|
__pyx_v_result = __pyx_t_4;
|
|
__pyx_t_4 = 0;
|
|
|
|
/* "preprocessed_text.py":214
|
|
* pipe.close()
|
|
* result += get_text(lines,scriptname)
|
|
* os.remove(scriptname) # <<<<<<<<<<<<<<
|
|
* else:
|
|
* script.append(line.text+'\n')
|
|
*/
|
|
__pyx_t_4 = PyObject_GetAttr(__pyx_v_os, __pyx_n_s__remove); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 214; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 214; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_7));
|
|
__Pyx_INCREF(__pyx_v_scriptname);
|
|
PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_v_scriptname);
|
|
__Pyx_GIVEREF(__pyx_v_scriptname);
|
|
__pyx_t_8 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_t_7), NULL); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 214; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_8);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0;
|
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
goto __pyx_L8;
|
|
}
|
|
/*else*/ {
|
|
if (unlikely(!__pyx_v_script)) { __Pyx_RaiseUnboundLocalError("script"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 216; __pyx_clineno = __LINE__; goto __pyx_L1_error;} }if (unlikely(((PyObject *)__pyx_v_script) == Py_None)) {
|
|
|
|
/* "preprocessed_text.py":216
|
|
* os.remove(scriptname)
|
|
* else:
|
|
* script.append(line.text+'\n') # <<<<<<<<<<<<<<
|
|
* else:
|
|
* if type(line) == Begin_shell:
|
|
*/
|
|
PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%s'", "append"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 216; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
__pyx_t_8 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__text); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 216; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_8);
|
|
__pyx_t_7 = PyNumber_Add(__pyx_t_8, ((PyObject *)__pyx_kp_s_22)); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 216; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
__pyx_t_9 = PyList_Append(__pyx_v_script, __pyx_t_7); if (unlikely(__pyx_t_9 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 216; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
}
|
|
__pyx_L8:;
|
|
goto __pyx_L7;
|
|
}
|
|
/*else*/ {
|
|
|
|
/* "preprocessed_text.py":218
|
|
* script.append(line.text+'\n')
|
|
* else:
|
|
* if type(line) == Begin_shell: # <<<<<<<<<<<<<<
|
|
* inside = True
|
|
* begin = line.i
|
|
*/
|
|
__pyx_t_7 = __Pyx_GetName(__pyx_m, __pyx_n_s__Begin_shell); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 218; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__pyx_t_8 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_line)), __pyx_t_7, Py_EQ); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 218; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_8);
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_8); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 218; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
if (__pyx_t_6) {
|
|
|
|
/* "preprocessed_text.py":219
|
|
* else:
|
|
* if type(line) == Begin_shell:
|
|
* inside = True # <<<<<<<<<<<<<<
|
|
* begin = line.i
|
|
* script = []
|
|
*/
|
|
__pyx_v_inside = 1;
|
|
|
|
/* "preprocessed_text.py":220
|
|
* if type(line) == Begin_shell:
|
|
* inside = True
|
|
* begin = line.i # <<<<<<<<<<<<<<
|
|
* script = []
|
|
* # Find shell executable
|
|
*/
|
|
__pyx_t_8 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__i); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 220; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_8);
|
|
__Pyx_XDECREF(__pyx_v_begin);
|
|
__pyx_v_begin = __pyx_t_8;
|
|
__pyx_t_8 = 0;
|
|
|
|
/* "preprocessed_text.py":221
|
|
* inside = True
|
|
* begin = line.i
|
|
* script = [] # <<<<<<<<<<<<<<
|
|
* # Find shell executable
|
|
* buffer = line.text.split('[')
|
|
*/
|
|
__pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 221; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_8));
|
|
__Pyx_XDECREF(((PyObject *)__pyx_v_script));
|
|
__pyx_v_script = __pyx_t_8;
|
|
__pyx_t_8 = 0;
|
|
|
|
/* "preprocessed_text.py":223
|
|
* script = []
|
|
* # Find shell executable
|
|
* buffer = line.text.split('[') # <<<<<<<<<<<<<<
|
|
* if len(buffer) > 2:
|
|
* fail(line,"Too many",'[')
|
|
*/
|
|
__pyx_t_8 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__text); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 223; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_8);
|
|
__pyx_t_7 = PyObject_GetAttr(__pyx_t_8, __pyx_n_s__split); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 223; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
__pyx_t_8 = PyObject_Call(__pyx_t_7, ((PyObject *)__pyx_k_tuple_24), NULL); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 223; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_8);
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
__Pyx_XDECREF(__pyx_v_buffer);
|
|
__pyx_v_buffer = __pyx_t_8;
|
|
__pyx_t_8 = 0;
|
|
|
|
/* "preprocessed_text.py":224
|
|
* # Find shell executable
|
|
* buffer = line.text.split('[')
|
|
* if len(buffer) > 2: # <<<<<<<<<<<<<<
|
|
* fail(line,"Too many",'[')
|
|
* elif len(buffer) < 2:
|
|
*/
|
|
__pyx_t_10 = PyObject_Length(__pyx_v_buffer); if (unlikely(__pyx_t_10 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 224; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__pyx_t_6 = (__pyx_t_10 > 2);
|
|
if (__pyx_t_6) {
|
|
|
|
/* "preprocessed_text.py":225
|
|
* buffer = line.text.split('[')
|
|
* if len(buffer) > 2:
|
|
* fail(line,"Too many",'[') # <<<<<<<<<<<<<<
|
|
* elif len(buffer) < 2:
|
|
* fail(line,"Missing",'[')
|
|
*/
|
|
__pyx_t_8 = PyTuple_New(3); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 225; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_8));
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_25));
|
|
PyTuple_SET_ITEM(__pyx_t_8, 1, ((PyObject *)__pyx_kp_s_25));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_25));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_23));
|
|
PyTuple_SET_ITEM(__pyx_t_8, 2, ((PyObject *)__pyx_kp_s_23));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_23));
|
|
__pyx_t_7 = PyObject_Call(__pyx_v_fail, ((PyObject *)__pyx_t_8), NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 225; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_8)); __pyx_t_8 = 0;
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
goto __pyx_L10;
|
|
}
|
|
|
|
/* "preprocessed_text.py":226
|
|
* if len(buffer) > 2:
|
|
* fail(line,"Too many",'[')
|
|
* elif len(buffer) < 2: # <<<<<<<<<<<<<<
|
|
* fail(line,"Missing",'[')
|
|
* buffer = buffer[1]
|
|
*/
|
|
__pyx_t_10 = PyObject_Length(__pyx_v_buffer); if (unlikely(__pyx_t_10 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 226; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__pyx_t_6 = (__pyx_t_10 < 2);
|
|
if (__pyx_t_6) {
|
|
|
|
/* "preprocessed_text.py":227
|
|
* fail(line,"Too many",'[')
|
|
* elif len(buffer) < 2:
|
|
* fail(line,"Missing",'[') # <<<<<<<<<<<<<<
|
|
* buffer = buffer[1]
|
|
* buffer = buffer.split(']')
|
|
*/
|
|
__pyx_t_7 = PyTuple_New(3); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 227; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_7));
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
__Pyx_INCREF(((PyObject *)__pyx_n_s__Missing));
|
|
PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_n_s__Missing));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_n_s__Missing));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_23));
|
|
PyTuple_SET_ITEM(__pyx_t_7, 2, ((PyObject *)__pyx_kp_s_23));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_23));
|
|
__pyx_t_8 = PyObject_Call(__pyx_v_fail, ((PyObject *)__pyx_t_7), NULL); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 227; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_8);
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0;
|
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
goto __pyx_L10;
|
|
}
|
|
__pyx_L10:;
|
|
|
|
/* "preprocessed_text.py":228
|
|
* elif len(buffer) < 2:
|
|
* fail(line,"Missing",'[')
|
|
* buffer = buffer[1] # <<<<<<<<<<<<<<
|
|
* buffer = buffer.split(']')
|
|
* if len(buffer) > 2:
|
|
*/
|
|
__pyx_t_8 = __Pyx_GetItemInt(__pyx_v_buffer, 1, sizeof(long), PyInt_FromLong); if (!__pyx_t_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 228; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_8);
|
|
__Pyx_DECREF(__pyx_v_buffer);
|
|
__pyx_v_buffer = __pyx_t_8;
|
|
__pyx_t_8 = 0;
|
|
|
|
/* "preprocessed_text.py":229
|
|
* fail(line,"Missing",'[')
|
|
* buffer = buffer[1]
|
|
* buffer = buffer.split(']') # <<<<<<<<<<<<<<
|
|
* if len(buffer) > 2:
|
|
* fail(line,"Too many",']')
|
|
*/
|
|
__pyx_t_8 = PyObject_GetAttr(__pyx_v_buffer, __pyx_n_s__split); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 229; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_8);
|
|
__pyx_t_7 = PyObject_Call(__pyx_t_8, ((PyObject *)__pyx_k_tuple_27), NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 229; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
__Pyx_DECREF(__pyx_v_buffer);
|
|
__pyx_v_buffer = __pyx_t_7;
|
|
__pyx_t_7 = 0;
|
|
|
|
/* "preprocessed_text.py":230
|
|
* buffer = buffer[1]
|
|
* buffer = buffer.split(']')
|
|
* if len(buffer) > 2: # <<<<<<<<<<<<<<
|
|
* fail(line,"Too many",']')
|
|
* elif len(buffer) < 2:
|
|
*/
|
|
__pyx_t_10 = PyObject_Length(__pyx_v_buffer); if (unlikely(__pyx_t_10 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 230; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__pyx_t_6 = (__pyx_t_10 > 2);
|
|
if (__pyx_t_6) {
|
|
|
|
/* "preprocessed_text.py":231
|
|
* buffer = buffer.split(']')
|
|
* if len(buffer) > 2:
|
|
* fail(line,"Too many",']') # <<<<<<<<<<<<<<
|
|
* elif len(buffer) < 2:
|
|
* fail(line,"Missing",']')
|
|
*/
|
|
__pyx_t_7 = PyTuple_New(3); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 231; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_7));
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_25));
|
|
PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_kp_s_25));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_25));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_26));
|
|
PyTuple_SET_ITEM(__pyx_t_7, 2, ((PyObject *)__pyx_kp_s_26));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_26));
|
|
__pyx_t_8 = PyObject_Call(__pyx_v_fail, ((PyObject *)__pyx_t_7), NULL); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 231; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_8);
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0;
|
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
goto __pyx_L11;
|
|
}
|
|
|
|
/* "preprocessed_text.py":232
|
|
* if len(buffer) > 2:
|
|
* fail(line,"Too many",']')
|
|
* elif len(buffer) < 2: # <<<<<<<<<<<<<<
|
|
* fail(line,"Missing",']')
|
|
* shell = buffer[0].strip()
|
|
*/
|
|
__pyx_t_10 = PyObject_Length(__pyx_v_buffer); if (unlikely(__pyx_t_10 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 232; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__pyx_t_6 = (__pyx_t_10 < 2);
|
|
if (__pyx_t_6) {
|
|
|
|
/* "preprocessed_text.py":233
|
|
* fail(line,"Too many",']')
|
|
* elif len(buffer) < 2:
|
|
* fail(line,"Missing",']') # <<<<<<<<<<<<<<
|
|
* shell = buffer[0].strip()
|
|
* elif type(line) == End_shell:
|
|
*/
|
|
__pyx_t_8 = PyTuple_New(3); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 233; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_8));
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
__Pyx_INCREF(((PyObject *)__pyx_n_s__Missing));
|
|
PyTuple_SET_ITEM(__pyx_t_8, 1, ((PyObject *)__pyx_n_s__Missing));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_n_s__Missing));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_26));
|
|
PyTuple_SET_ITEM(__pyx_t_8, 2, ((PyObject *)__pyx_kp_s_26));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_26));
|
|
__pyx_t_7 = PyObject_Call(__pyx_v_fail, ((PyObject *)__pyx_t_8), NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 233; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_8)); __pyx_t_8 = 0;
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
goto __pyx_L11;
|
|
}
|
|
__pyx_L11:;
|
|
|
|
/* "preprocessed_text.py":234
|
|
* elif len(buffer) < 2:
|
|
* fail(line,"Missing",']')
|
|
* shell = buffer[0].strip() # <<<<<<<<<<<<<<
|
|
* elif type(line) == End_shell:
|
|
* error.fail(line,"Begin_shell missing")
|
|
*/
|
|
__pyx_t_7 = __Pyx_GetItemInt(__pyx_v_buffer, 0, sizeof(long), PyInt_FromLong); if (!__pyx_t_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 234; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__pyx_t_8 = PyObject_GetAttr(__pyx_t_7, __pyx_n_s__strip); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 234; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_8);
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
__pyx_t_7 = PyObject_Call(__pyx_t_8, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 234; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
__Pyx_XDECREF(__pyx_v_shell);
|
|
__pyx_v_shell = __pyx_t_7;
|
|
__pyx_t_7 = 0;
|
|
goto __pyx_L9;
|
|
}
|
|
|
|
/* "preprocessed_text.py":235
|
|
* fail(line,"Missing",']')
|
|
* shell = buffer[0].strip()
|
|
* elif type(line) == End_shell: # <<<<<<<<<<<<<<
|
|
* error.fail(line,"Begin_shell missing")
|
|
* else:
|
|
*/
|
|
__pyx_t_7 = __Pyx_GetName(__pyx_m, __pyx_n_s__End_shell); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 235; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__pyx_t_8 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_line)), __pyx_t_7, Py_EQ); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 235; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_8);
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_8); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 235; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
if (__pyx_t_6) {
|
|
|
|
/* "preprocessed_text.py":236
|
|
* shell = buffer[0].strip()
|
|
* elif type(line) == End_shell:
|
|
* error.fail(line,"Begin_shell missing") # <<<<<<<<<<<<<<
|
|
* else:
|
|
* result.append(line)
|
|
*/
|
|
__pyx_t_8 = __Pyx_GetName(__pyx_m, __pyx_n_s__error); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 236; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_8);
|
|
__pyx_t_7 = PyObject_GetAttr(__pyx_t_8, __pyx_n_s__fail); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 236; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
__pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 236; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_8));
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_28));
|
|
PyTuple_SET_ITEM(__pyx_t_8, 1, ((PyObject *)__pyx_kp_s_28));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_28));
|
|
__pyx_t_4 = PyObject_Call(__pyx_t_7, ((PyObject *)__pyx_t_8), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 236; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_8)); __pyx_t_8 = 0;
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
goto __pyx_L9;
|
|
}
|
|
/*else*/ {
|
|
|
|
/* "preprocessed_text.py":238
|
|
* error.fail(line,"Begin_shell missing")
|
|
* else:
|
|
* result.append(line) # <<<<<<<<<<<<<<
|
|
* return result
|
|
*
|
|
*/
|
|
__pyx_t_4 = __Pyx_PyObject_Append(__pyx_v_result, __pyx_v_line); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 238; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
}
|
|
__pyx_L9:;
|
|
}
|
|
__pyx_L7:;
|
|
}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":239
|
|
* else:
|
|
* result.append(line)
|
|
* return result # <<<<<<<<<<<<<<
|
|
*
|
|
* ######################################################################
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__Pyx_INCREF(__pyx_v_result);
|
|
__pyx_r = __pyx_v_result;
|
|
goto __pyx_L0;
|
|
|
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
|
goto __pyx_L0;
|
|
__pyx_L1_error:;
|
|
__Pyx_XDECREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_t_4);
|
|
__Pyx_XDECREF(__pyx_t_5);
|
|
__Pyx_XDECREF(__pyx_t_7);
|
|
__Pyx_XDECREF(__pyx_t_8);
|
|
__Pyx_AddTraceback("preprocessed_text.execute_shell", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__pyx_r = NULL;
|
|
__pyx_L0:;
|
|
__Pyx_XDECREF(__pyx_v_fail);
|
|
__Pyx_XDECREF(__pyx_v_result);
|
|
__Pyx_XDECREF(__pyx_v_line);
|
|
__Pyx_XDECREF(__pyx_v_scriptname);
|
|
__Pyx_XDECREF(__pyx_v_file);
|
|
__Pyx_XDECREF(__pyx_v_os);
|
|
__Pyx_XDECREF(__pyx_v_pipe);
|
|
__Pyx_XDECREF(__pyx_v_lines);
|
|
__Pyx_XDECREF(__pyx_v_begin);
|
|
__Pyx_XDECREF(__pyx_v_script);
|
|
__Pyx_XDECREF(__pyx_v_buffer);
|
|
__Pyx_XDECREF(__pyx_v_shell);
|
|
__Pyx_XGIVEREF(__pyx_r);
|
|
__Pyx_RefNannyFinishContext();
|
|
return __pyx_r;
|
|
}
|
|
|
|
/* "preprocessed_text.py":244
|
|
* def execute_templates(text):
|
|
* '''Execute the templates'''
|
|
* def fail(l,a,b): error.fail(l,"In %s, %s"%(a,b)) # <<<<<<<<<<<<<<
|
|
*
|
|
* def get_variables(line):
|
|
*/
|
|
|
|
static PyObject *__pyx_pf_17preprocessed_text_17execute_templates_fail(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
|
|
static PyMethodDef __pyx_mdef_17preprocessed_text_17execute_templates_fail = {__Pyx_NAMESTR("fail"), (PyCFunction)__pyx_pf_17preprocessed_text_17execute_templates_fail, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(0)};
|
|
static PyObject *__pyx_pf_17preprocessed_text_17execute_templates_fail(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
|
|
PyObject *__pyx_v_l = 0;
|
|
PyObject *__pyx_v_a = 0;
|
|
PyObject *__pyx_v_b = 0;
|
|
PyObject *__pyx_r = NULL;
|
|
__Pyx_RefNannyDeclarations
|
|
PyObject *__pyx_t_1 = NULL;
|
|
PyObject *__pyx_t_2 = NULL;
|
|
PyObject *__pyx_t_3 = NULL;
|
|
int __pyx_lineno = 0;
|
|
const char *__pyx_filename = NULL;
|
|
int __pyx_clineno = 0;
|
|
static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__l,&__pyx_n_s__a,&__pyx_n_s__b,0};
|
|
__Pyx_RefNannySetupContext("fail");
|
|
__pyx_self = __pyx_self;
|
|
{
|
|
PyObject* values[3] = {0,0,0};
|
|
if (unlikely(__pyx_kwds)) {
|
|
Py_ssize_t kw_args;
|
|
switch (PyTuple_GET_SIZE(__pyx_args)) {
|
|
case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
|
|
case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
|
|
case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
|
|
case 0: break;
|
|
default: goto __pyx_L5_argtuple_error;
|
|
}
|
|
kw_args = PyDict_Size(__pyx_kwds);
|
|
switch (PyTuple_GET_SIZE(__pyx_args)) {
|
|
case 0:
|
|
values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__l);
|
|
if (likely(values[0])) kw_args--;
|
|
else goto __pyx_L5_argtuple_error;
|
|
case 1:
|
|
values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__a);
|
|
if (likely(values[1])) kw_args--;
|
|
else {
|
|
__Pyx_RaiseArgtupleInvalid("fail", 1, 3, 3, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 244; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
|
|
}
|
|
case 2:
|
|
values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__b);
|
|
if (likely(values[2])) kw_args--;
|
|
else {
|
|
__Pyx_RaiseArgtupleInvalid("fail", 1, 3, 3, 2); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 244; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
|
|
}
|
|
}
|
|
if (unlikely(kw_args > 0)) {
|
|
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "fail") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 244; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
|
|
}
|
|
} else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
|
|
goto __pyx_L5_argtuple_error;
|
|
} else {
|
|
values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
|
|
values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
|
|
values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
|
|
}
|
|
__pyx_v_l = values[0];
|
|
__pyx_v_a = values[1];
|
|
__pyx_v_b = values[2];
|
|
}
|
|
goto __pyx_L4_argument_unpacking_done;
|
|
__pyx_L5_argtuple_error:;
|
|
__Pyx_RaiseArgtupleInvalid("fail", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 244; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
|
|
__pyx_L3_error:;
|
|
__Pyx_AddTraceback("preprocessed_text.execute_templates.fail", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__Pyx_RefNannyFinishContext();
|
|
return NULL;
|
|
__pyx_L4_argument_unpacking_done:;
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__error); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 244; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_n_s__fail); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 244; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 244; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(__pyx_v_a);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_a);
|
|
__Pyx_GIVEREF(__pyx_v_a);
|
|
__Pyx_INCREF(__pyx_v_b);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_b);
|
|
__Pyx_GIVEREF(__pyx_v_b);
|
|
__pyx_t_3 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_29), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 244; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_3));
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
__pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 244; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(__pyx_v_l);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_l);
|
|
__Pyx_GIVEREF(__pyx_v_l);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_t_3));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_t_3));
|
|
__pyx_t_3 = 0;
|
|
__pyx_t_3 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 244; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
|
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
|
goto __pyx_L0;
|
|
__pyx_L1_error:;
|
|
__Pyx_XDECREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_t_2);
|
|
__Pyx_XDECREF(__pyx_t_3);
|
|
__Pyx_AddTraceback("preprocessed_text.execute_templates.fail", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__pyx_r = NULL;
|
|
__pyx_L0:;
|
|
__Pyx_XGIVEREF(__pyx_r);
|
|
__Pyx_RefNannyFinishContext();
|
|
return __pyx_r;
|
|
}
|
|
|
|
/* "preprocessed_text.py":252
|
|
* buffer = buffer[1].replace(']','')
|
|
* buffer = buffer.split(',')
|
|
* return map(lambda x: '$%s'%(x.strip()), buffer) # <<<<<<<<<<<<<<
|
|
*
|
|
* TEMPLATE = 1
|
|
*/
|
|
|
|
static PyObject *__pyx_lambda_funcdef_lambda1(PyObject *__pyx_self, PyObject *__pyx_v_x); /*proto*/
|
|
static PyMethodDef __pyx_lambda_methdef_lambda1 = {__Pyx_NAMESTR("lambda1"), (PyCFunction)__pyx_lambda_funcdef_lambda1, METH_O, __Pyx_DOCSTR(0)};
|
|
static PyObject *__pyx_lambda_funcdef_lambda1(PyObject *__pyx_self, PyObject *__pyx_v_x) {
|
|
PyObject *__pyx_r = NULL;
|
|
__Pyx_RefNannyDeclarations
|
|
PyObject *__pyx_t_1 = NULL;
|
|
PyObject *__pyx_t_2 = NULL;
|
|
int __pyx_lineno = 0;
|
|
const char *__pyx_filename = NULL;
|
|
int __pyx_clineno = 0;
|
|
__Pyx_RefNannySetupContext("lambda1");
|
|
__pyx_self = __pyx_self;
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_v_x, __pyx_n_s__strip); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 252; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 252; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_30), __pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 252; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_r = ((PyObject *)__pyx_t_1);
|
|
__pyx_t_1 = 0;
|
|
goto __pyx_L0;
|
|
|
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
|
goto __pyx_L0;
|
|
__pyx_L1_error:;
|
|
__Pyx_XDECREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_t_2);
|
|
__Pyx_AddTraceback("preprocessed_text.execute_templates.get_variables.lambda1", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__pyx_r = NULL;
|
|
__pyx_L0:;
|
|
__Pyx_XGIVEREF(__pyx_r);
|
|
__Pyx_RefNannyFinishContext();
|
|
return __pyx_r;
|
|
}
|
|
|
|
/* "preprocessed_text.py":246
|
|
* def fail(l,a,b): error.fail(l,"In %s, %s"%(a,b))
|
|
*
|
|
* def get_variables(line): # <<<<<<<<<<<<<<
|
|
* buffer = line.text.split('[',1)
|
|
* if len(buffer)<2:
|
|
*/
|
|
|
|
static PyObject *__pyx_pf_17preprocessed_text_17execute_templates_1get_variables(PyObject *__pyx_self, PyObject *__pyx_v_line); /*proto*/
|
|
static PyMethodDef __pyx_mdef_17preprocessed_text_17execute_templates_1get_variables = {__Pyx_NAMESTR("get_variables"), (PyCFunction)__pyx_pf_17preprocessed_text_17execute_templates_1get_variables, METH_O, __Pyx_DOCSTR(0)};
|
|
static PyObject *__pyx_pf_17preprocessed_text_17execute_templates_1get_variables(PyObject *__pyx_self, PyObject *__pyx_v_line) {
|
|
struct __pyx_obj_17preprocessed_text___pyx_scope_struct__execute_templates *__pyx_cur_scope;
|
|
struct __pyx_obj_17preprocessed_text___pyx_scope_struct__execute_templates *__pyx_outer_scope;
|
|
PyObject *__pyx_v_buffer = NULL;
|
|
PyObject *__pyx_r = NULL;
|
|
__Pyx_RefNannyDeclarations
|
|
PyObject *__pyx_t_1 = NULL;
|
|
PyObject *__pyx_t_2 = NULL;
|
|
Py_ssize_t __pyx_t_3;
|
|
int __pyx_t_4;
|
|
int __pyx_lineno = 0;
|
|
const char *__pyx_filename = NULL;
|
|
int __pyx_clineno = 0;
|
|
__Pyx_RefNannySetupContext("get_variables");
|
|
__pyx_outer_scope = (struct __pyx_obj_17preprocessed_text___pyx_scope_struct__execute_templates *)__pyx_self;
|
|
__pyx_cur_scope = __pyx_outer_scope;
|
|
__pyx_self = __pyx_self;
|
|
|
|
/* "preprocessed_text.py":247
|
|
*
|
|
* def get_variables(line):
|
|
* buffer = line.text.split('[',1) # <<<<<<<<<<<<<<
|
|
* if len(buffer)<2:
|
|
* fail(line,"Subst","Syntax error")
|
|
*/
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 247; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_n_s__split); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 247; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_1 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_k_tuple_31), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 247; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_v_buffer = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":248
|
|
* def get_variables(line):
|
|
* buffer = line.text.split('[',1)
|
|
* if len(buffer)<2: # <<<<<<<<<<<<<<
|
|
* fail(line,"Subst","Syntax error")
|
|
* buffer = buffer[1].replace(']','')
|
|
*/
|
|
__pyx_t_3 = PyObject_Length(__pyx_v_buffer); if (unlikely(__pyx_t_3 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 248; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__pyx_t_4 = (__pyx_t_3 < 2);
|
|
if (__pyx_t_4) {
|
|
if (unlikely(!__pyx_cur_scope->__pyx_v_fail)) { __Pyx_RaiseClosureNameError("fail"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 249; __pyx_clineno = __LINE__; goto __pyx_L1_error;} }__pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 249; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
|
/* "preprocessed_text.py":249
|
|
* buffer = line.text.split('[',1)
|
|
* if len(buffer)<2:
|
|
* fail(line,"Subst","Syntax error") # <<<<<<<<<<<<<<
|
|
* buffer = buffer[1].replace(']','')
|
|
* buffer = buffer.split(',')
|
|
*/
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
__Pyx_INCREF(((PyObject *)__pyx_n_s__Subst));
|
|
PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_n_s__Subst));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_n_s__Subst));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_32));
|
|
PyTuple_SET_ITEM(__pyx_t_1, 2, ((PyObject *)__pyx_kp_s_32));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_32));
|
|
__pyx_t_2 = PyObject_Call(__pyx_cur_scope->__pyx_v_fail, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 249; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
goto __pyx_L5;
|
|
}
|
|
__pyx_L5:;
|
|
|
|
/* "preprocessed_text.py":250
|
|
* if len(buffer)<2:
|
|
* fail(line,"Subst","Syntax error")
|
|
* buffer = buffer[1].replace(']','') # <<<<<<<<<<<<<<
|
|
* buffer = buffer.split(',')
|
|
* return map(lambda x: '$%s'%(x.strip()), buffer)
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetItemInt(__pyx_v_buffer, 1, sizeof(long), PyInt_FromLong); if (!__pyx_t_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 250; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__replace); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 250; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_k_tuple_34), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 250; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(__pyx_v_buffer);
|
|
__pyx_v_buffer = __pyx_t_2;
|
|
__pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":251
|
|
* fail(line,"Subst","Syntax error")
|
|
* buffer = buffer[1].replace(']','')
|
|
* buffer = buffer.split(',') # <<<<<<<<<<<<<<
|
|
* return map(lambda x: '$%s'%(x.strip()), buffer)
|
|
*
|
|
*/
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_v_buffer, __pyx_n_s__split); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 251; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_1 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_k_tuple_36), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 251; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__Pyx_DECREF(__pyx_v_buffer);
|
|
__pyx_v_buffer = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":252
|
|
* buffer = buffer[1].replace(']','')
|
|
* buffer = buffer.split(',')
|
|
* return map(lambda x: '$%s'%(x.strip()), buffer) # <<<<<<<<<<<<<<
|
|
*
|
|
* TEMPLATE = 1
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__pyx_t_1 = __pyx_binding_PyCFunctionType_NewEx(&__pyx_lambda_methdef_lambda1, NULL, __pyx_n_s__preprocessed_text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 252; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 252; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
|
PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
|
|
__Pyx_GIVEREF(__pyx_t_1);
|
|
__Pyx_INCREF(__pyx_v_buffer);
|
|
PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_buffer);
|
|
__Pyx_GIVEREF(__pyx_v_buffer);
|
|
__pyx_t_1 = 0;
|
|
__pyx_t_1 = PyObject_Call(__pyx_builtin_map, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 252; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
|
__pyx_r = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
goto __pyx_L0;
|
|
|
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
|
goto __pyx_L0;
|
|
__pyx_L1_error:;
|
|
__Pyx_XDECREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_t_2);
|
|
__Pyx_AddTraceback("preprocessed_text.execute_templates.get_variables", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__pyx_r = NULL;
|
|
__pyx_L0:;
|
|
__Pyx_XDECREF(__pyx_v_buffer);
|
|
__Pyx_XGIVEREF(__pyx_r);
|
|
__Pyx_RefNannyFinishContext();
|
|
return __pyx_r;
|
|
}
|
|
|
|
/* "preprocessed_text.py":290
|
|
* subst = subst[:-2]
|
|
* for s in subst.split(';;'):
|
|
* buffer = map(lambda x: x.strip(), s.split(';')) # <<<<<<<<<<<<<<
|
|
* if len(buffer) != len(variables):
|
|
* fail(line,"subst","%d variables defined, and %d substitutions"%(len(variables),len(buffer)))
|
|
*/
|
|
|
|
static PyObject *__pyx_lambda_funcdef_lambda2(PyObject *__pyx_self, PyObject *__pyx_v_x); /*proto*/
|
|
static PyMethodDef __pyx_lambda_methdef_lambda2 = {__Pyx_NAMESTR("lambda2"), (PyCFunction)__pyx_lambda_funcdef_lambda2, METH_O, __Pyx_DOCSTR(0)};
|
|
static PyObject *__pyx_lambda_funcdef_lambda2(PyObject *__pyx_self, PyObject *__pyx_v_x) {
|
|
PyObject *__pyx_r = NULL;
|
|
__Pyx_RefNannyDeclarations
|
|
PyObject *__pyx_t_1 = NULL;
|
|
PyObject *__pyx_t_2 = NULL;
|
|
int __pyx_lineno = 0;
|
|
const char *__pyx_filename = NULL;
|
|
int __pyx_clineno = 0;
|
|
__Pyx_RefNannySetupContext("lambda2");
|
|
__pyx_self = __pyx_self;
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_v_x, __pyx_n_s__strip); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 290; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 290; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_r = __pyx_t_2;
|
|
__pyx_t_2 = 0;
|
|
goto __pyx_L0;
|
|
|
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
|
goto __pyx_L0;
|
|
__pyx_L1_error:;
|
|
__Pyx_XDECREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_t_2);
|
|
__Pyx_AddTraceback("preprocessed_text.execute_templates.lambda2", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__pyx_r = NULL;
|
|
__pyx_L0:;
|
|
__Pyx_XGIVEREF(__pyx_r);
|
|
__Pyx_RefNannyFinishContext();
|
|
return __pyx_r;
|
|
}
|
|
|
|
/* "preprocessed_text.py":242
|
|
*
|
|
* ######################################################################
|
|
* def execute_templates(text): # <<<<<<<<<<<<<<
|
|
* '''Execute the templates'''
|
|
* def fail(l,a,b): error.fail(l,"In %s, %s"%(a,b))
|
|
*/
|
|
|
|
static PyObject *__pyx_pf_17preprocessed_text_3execute_templates(PyObject *__pyx_self, PyObject *__pyx_v_text); /*proto*/
|
|
static char __pyx_doc_17preprocessed_text_3execute_templates[] = "Execute the templates";
|
|
static PyMethodDef __pyx_mdef_17preprocessed_text_3execute_templates = {__Pyx_NAMESTR("execute_templates"), (PyCFunction)__pyx_pf_17preprocessed_text_3execute_templates, METH_O, __Pyx_DOCSTR(__pyx_doc_17preprocessed_text_3execute_templates)};
|
|
static PyObject *__pyx_pf_17preprocessed_text_3execute_templates(PyObject *__pyx_self, PyObject *__pyx_v_text) {
|
|
struct __pyx_obj_17preprocessed_text___pyx_scope_struct__execute_templates *__pyx_cur_scope;
|
|
PyObject *__pyx_v_get_variables = 0;
|
|
long __pyx_v_TEMPLATE;
|
|
long __pyx_v_SUBST;
|
|
long __pyx_v_inside;
|
|
PyObject *__pyx_v_result = NULL;
|
|
PyObject *__pyx_v_line = NULL;
|
|
PyObject *__pyx_v_script = NULL;
|
|
PyObject *__pyx_v_variables = NULL;
|
|
PyObject *__pyx_v_subst = NULL;
|
|
PyObject *__pyx_v_s = NULL;
|
|
PyObject *__pyx_v_buffer = NULL;
|
|
PyObject *__pyx_v_t = NULL;
|
|
PyObject *__pyx_v_v = NULL;
|
|
PyObject *__pyx_v_scriptname = NULL;
|
|
PyObject *__pyx_v_file = NULL;
|
|
PyObject *__pyx_v_os = NULL;
|
|
PyObject *__pyx_v_pipe = NULL;
|
|
PyObject *__pyx_v_lines = NULL;
|
|
PyObject *__pyx_r = NULL;
|
|
__Pyx_RefNannyDeclarations
|
|
PyObject *__pyx_t_1 = NULL;
|
|
Py_ssize_t __pyx_t_2;
|
|
PyObject *(*__pyx_t_3)(PyObject *);
|
|
PyObject *__pyx_t_4 = NULL;
|
|
int __pyx_t_5;
|
|
PyObject *__pyx_t_6 = NULL;
|
|
Py_ssize_t __pyx_t_7;
|
|
PyObject *(*__pyx_t_8)(PyObject *);
|
|
PyObject *__pyx_t_9 = NULL;
|
|
PyObject *__pyx_t_10 = NULL;
|
|
Py_ssize_t __pyx_t_11;
|
|
Py_ssize_t __pyx_t_12;
|
|
PyObject *(*__pyx_t_13)(PyObject *);
|
|
PyObject *__pyx_t_14 = NULL;
|
|
PyObject *__pyx_t_15 = NULL;
|
|
PyObject *(*__pyx_t_16)(PyObject *);
|
|
int __pyx_lineno = 0;
|
|
const char *__pyx_filename = NULL;
|
|
int __pyx_clineno = 0;
|
|
__Pyx_RefNannySetupContext("execute_templates");
|
|
__pyx_cur_scope = (struct __pyx_obj_17preprocessed_text___pyx_scope_struct__execute_templates *)__pyx_ptype_17preprocessed_text___pyx_scope_struct__execute_templates->tp_new(__pyx_ptype_17preprocessed_text___pyx_scope_struct__execute_templates, __pyx_empty_tuple, NULL);
|
|
if (unlikely(!__pyx_cur_scope)) {
|
|
__Pyx_RefNannyFinishContext();
|
|
return NULL;
|
|
}
|
|
__Pyx_GOTREF(__pyx_cur_scope);
|
|
__pyx_self = __pyx_self;
|
|
|
|
/* "preprocessed_text.py":244
|
|
* def execute_templates(text):
|
|
* '''Execute the templates'''
|
|
* def fail(l,a,b): error.fail(l,"In %s, %s"%(a,b)) # <<<<<<<<<<<<<<
|
|
*
|
|
* def get_variables(line):
|
|
*/
|
|
__pyx_t_1 = __pyx_binding_PyCFunctionType_NewEx(&__pyx_mdef_17preprocessed_text_17execute_templates_fail, NULL, __pyx_n_s__preprocessed_text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 244; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_fail);
|
|
__Pyx_XDECREF(__pyx_cur_scope->__pyx_v_fail);
|
|
__Pyx_GIVEREF(__pyx_t_1);
|
|
__pyx_cur_scope->__pyx_v_fail = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":246
|
|
* def fail(l,a,b): error.fail(l,"In %s, %s"%(a,b))
|
|
*
|
|
* def get_variables(line): # <<<<<<<<<<<<<<
|
|
* buffer = line.text.split('[',1)
|
|
* if len(buffer)<2:
|
|
*/
|
|
__pyx_t_1 = __pyx_binding_PyCFunctionType_NewEx(&__pyx_mdef_17preprocessed_text_17execute_templates_1get_variables, ((PyObject*)__pyx_cur_scope), __pyx_n_s__preprocessed_text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 246; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_v_get_variables);
|
|
__pyx_v_get_variables = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":254
|
|
* return map(lambda x: '$%s'%(x.strip()), buffer)
|
|
*
|
|
* TEMPLATE = 1 # <<<<<<<<<<<<<<
|
|
* SUBST = 2
|
|
* inside = 0
|
|
*/
|
|
__pyx_v_TEMPLATE = 1;
|
|
|
|
/* "preprocessed_text.py":255
|
|
*
|
|
* TEMPLATE = 1
|
|
* SUBST = 2 # <<<<<<<<<<<<<<
|
|
* inside = 0
|
|
* result = []
|
|
*/
|
|
__pyx_v_SUBST = 2;
|
|
|
|
/* "preprocessed_text.py":256
|
|
* TEMPLATE = 1
|
|
* SUBST = 2
|
|
* inside = 0 # <<<<<<<<<<<<<<
|
|
* result = []
|
|
* for line in text:
|
|
*/
|
|
__pyx_v_inside = 0;
|
|
|
|
/* "preprocessed_text.py":257
|
|
* SUBST = 2
|
|
* inside = 0
|
|
* result = [] # <<<<<<<<<<<<<<
|
|
* for line in text:
|
|
* if inside == 0:
|
|
*/
|
|
__pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 257; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__pyx_v_result = ((PyObject *)__pyx_t_1);
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":258
|
|
* inside = 0
|
|
* result = []
|
|
* for line in text: # <<<<<<<<<<<<<<
|
|
* if inside == 0:
|
|
* if type(line) == Begin_template:
|
|
*/
|
|
if (PyList_CheckExact(__pyx_v_text) || PyTuple_CheckExact(__pyx_v_text)) {
|
|
__pyx_t_1 = __pyx_v_text; __Pyx_INCREF(__pyx_t_1); __pyx_t_2 = 0;
|
|
__pyx_t_3 = NULL;
|
|
} else {
|
|
__pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 258; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_3 = Py_TYPE(__pyx_t_1)->tp_iternext;
|
|
}
|
|
for (;;) {
|
|
if (PyList_CheckExact(__pyx_t_1)) {
|
|
if (__pyx_t_2 >= PyList_GET_SIZE(__pyx_t_1)) break;
|
|
__pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++;
|
|
} else if (PyTuple_CheckExact(__pyx_t_1)) {
|
|
if (__pyx_t_2 >= PyTuple_GET_SIZE(__pyx_t_1)) break;
|
|
__pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++;
|
|
} else {
|
|
__pyx_t_4 = __pyx_t_3(__pyx_t_1);
|
|
if (unlikely(!__pyx_t_4)) {
|
|
if (PyErr_Occurred()) {
|
|
if (likely(PyErr_ExceptionMatches(PyExc_StopIteration))) PyErr_Clear();
|
|
else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 258; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
break;
|
|
}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
}
|
|
__Pyx_XDECREF(__pyx_v_line);
|
|
__pyx_v_line = __pyx_t_4;
|
|
__pyx_t_4 = 0;
|
|
|
|
/* "preprocessed_text.py":259
|
|
* result = []
|
|
* for line in text:
|
|
* if inside == 0: # <<<<<<<<<<<<<<
|
|
* if type(line) == Begin_template:
|
|
* script = []
|
|
*/
|
|
__pyx_t_5 = (__pyx_v_inside == 0);
|
|
if (__pyx_t_5) {
|
|
|
|
/* "preprocessed_text.py":260
|
|
* for line in text:
|
|
* if inside == 0:
|
|
* if type(line) == Begin_template: # <<<<<<<<<<<<<<
|
|
* script = []
|
|
* inside = TEMPLATE
|
|
*/
|
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__Begin_template); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 260; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_6 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_line)), __pyx_t_4, Py_EQ); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 260; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 260; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
if (__pyx_t_5) {
|
|
|
|
/* "preprocessed_text.py":261
|
|
* if inside == 0:
|
|
* if type(line) == Begin_template:
|
|
* script = [] # <<<<<<<<<<<<<<
|
|
* inside = TEMPLATE
|
|
* script = "template = \"\"\"\n"
|
|
*/
|
|
__pyx_t_6 = PyList_New(0); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 261; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_6));
|
|
__Pyx_XDECREF(__pyx_v_script);
|
|
__pyx_v_script = ((PyObject *)__pyx_t_6);
|
|
__pyx_t_6 = 0;
|
|
|
|
/* "preprocessed_text.py":262
|
|
* if type(line) == Begin_template:
|
|
* script = []
|
|
* inside = TEMPLATE # <<<<<<<<<<<<<<
|
|
* script = "template = \"\"\"\n"
|
|
* else:
|
|
*/
|
|
__pyx_v_inside = __pyx_v_TEMPLATE;
|
|
|
|
/* "preprocessed_text.py":263
|
|
* script = []
|
|
* inside = TEMPLATE
|
|
* script = "template = \"\"\"\n" # <<<<<<<<<<<<<<
|
|
* else:
|
|
* result.append(line)
|
|
*/
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_37));
|
|
__Pyx_DECREF(__pyx_v_script);
|
|
__pyx_v_script = ((PyObject *)__pyx_kp_s_37);
|
|
goto __pyx_L8;
|
|
}
|
|
/*else*/ {
|
|
|
|
/* "preprocessed_text.py":265
|
|
* script = "template = \"\"\"\n"
|
|
* else:
|
|
* result.append(line) # <<<<<<<<<<<<<<
|
|
* elif inside == TEMPLATE:
|
|
* if type(line) == Begin_template:
|
|
*/
|
|
__pyx_t_6 = __Pyx_PyObject_Append(__pyx_v_result, __pyx_v_line); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 265; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
}
|
|
__pyx_L8:;
|
|
goto __pyx_L7;
|
|
}
|
|
|
|
/* "preprocessed_text.py":266
|
|
* else:
|
|
* result.append(line)
|
|
* elif inside == TEMPLATE: # <<<<<<<<<<<<<<
|
|
* if type(line) == Begin_template:
|
|
* fail(line,"template", "Nested Begin_Template")
|
|
*/
|
|
__pyx_t_5 = (__pyx_v_inside == __pyx_v_TEMPLATE);
|
|
if (__pyx_t_5) {
|
|
|
|
/* "preprocessed_text.py":267
|
|
* result.append(line)
|
|
* elif inside == TEMPLATE:
|
|
* if type(line) == Begin_template: # <<<<<<<<<<<<<<
|
|
* fail(line,"template", "Nested Begin_Template")
|
|
* elif type(line) == End_template:
|
|
*/
|
|
__pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__Begin_template); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 267; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_4 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_line)), __pyx_t_6, Py_EQ); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 267; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 267; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
if (__pyx_t_5) {
|
|
|
|
/* "preprocessed_text.py":268
|
|
* elif inside == TEMPLATE:
|
|
* if type(line) == Begin_template:
|
|
* fail(line,"template", "Nested Begin_Template") # <<<<<<<<<<<<<<
|
|
* elif type(line) == End_template:
|
|
* fail(line,"template","Missing Subst")
|
|
*/
|
|
__pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 268; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
__Pyx_INCREF(((PyObject *)__pyx_n_s__template));
|
|
PyTuple_SET_ITEM(__pyx_t_4, 1, ((PyObject *)__pyx_n_s__template));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_n_s__template));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_38));
|
|
PyTuple_SET_ITEM(__pyx_t_4, 2, ((PyObject *)__pyx_kp_s_38));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_38));
|
|
__pyx_t_6 = PyObject_Call(__pyx_cur_scope->__pyx_v_fail, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 268; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
goto __pyx_L9;
|
|
}
|
|
|
|
/* "preprocessed_text.py":269
|
|
* if type(line) == Begin_template:
|
|
* fail(line,"template", "Nested Begin_Template")
|
|
* elif type(line) == End_template: # <<<<<<<<<<<<<<
|
|
* fail(line,"template","Missing Subst")
|
|
* elif type(line) == Subst:
|
|
*/
|
|
__pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__End_template); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 269; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_4 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_line)), __pyx_t_6, Py_EQ); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 269; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 269; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
if (__pyx_t_5) {
|
|
|
|
/* "preprocessed_text.py":270
|
|
* fail(line,"template", "Nested Begin_Template")
|
|
* elif type(line) == End_template:
|
|
* fail(line,"template","Missing Subst") # <<<<<<<<<<<<<<
|
|
* elif type(line) == Subst:
|
|
* inside = SUBST
|
|
*/
|
|
__pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 270; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
__Pyx_INCREF(((PyObject *)__pyx_n_s__template));
|
|
PyTuple_SET_ITEM(__pyx_t_4, 1, ((PyObject *)__pyx_n_s__template));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_n_s__template));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_39));
|
|
PyTuple_SET_ITEM(__pyx_t_4, 2, ((PyObject *)__pyx_kp_s_39));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_39));
|
|
__pyx_t_6 = PyObject_Call(__pyx_cur_scope->__pyx_v_fail, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 270; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
goto __pyx_L9;
|
|
}
|
|
|
|
/* "preprocessed_text.py":271
|
|
* elif type(line) == End_template:
|
|
* fail(line,"template","Missing Subst")
|
|
* elif type(line) == Subst: # <<<<<<<<<<<<<<
|
|
* inside = SUBST
|
|
* script += "\"\"\"\n"
|
|
*/
|
|
__pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__Subst); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 271; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_4 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_line)), __pyx_t_6, Py_EQ); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 271; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 271; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
if (__pyx_t_5) {
|
|
|
|
/* "preprocessed_text.py":272
|
|
* fail(line,"template","Missing Subst")
|
|
* elif type(line) == Subst:
|
|
* inside = SUBST # <<<<<<<<<<<<<<
|
|
* script += "\"\"\"\n"
|
|
* variables = get_variables(line)
|
|
*/
|
|
__pyx_v_inside = __pyx_v_SUBST;
|
|
if (unlikely(!__pyx_v_script)) { __Pyx_RaiseUnboundLocalError("script"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 273; __pyx_clineno = __LINE__; goto __pyx_L1_error;} }__pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_script, ((PyObject *)__pyx_kp_s_40)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 273; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
|
/* "preprocessed_text.py":273
|
|
* elif type(line) == Subst:
|
|
* inside = SUBST
|
|
* script += "\"\"\"\n" # <<<<<<<<<<<<<<
|
|
* variables = get_variables(line)
|
|
* script += "v = []\n"
|
|
*/
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_XDECREF(__pyx_v_script);
|
|
__pyx_v_script = __pyx_t_4;
|
|
__pyx_t_4 = 0;
|
|
|
|
/* "preprocessed_text.py":274
|
|
* inside = SUBST
|
|
* script += "\"\"\"\n"
|
|
* variables = get_variables(line) # <<<<<<<<<<<<<<
|
|
* script += "v = []\n"
|
|
* subst = ""
|
|
*/
|
|
__pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 274; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
__pyx_t_6 = PyObject_Call(__pyx_v_get_variables, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 274; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
|
|
__Pyx_XDECREF(__pyx_v_variables);
|
|
__pyx_v_variables = __pyx_t_6;
|
|
__pyx_t_6 = 0;
|
|
|
|
/* "preprocessed_text.py":275
|
|
* script += "\"\"\"\n"
|
|
* variables = get_variables(line)
|
|
* script += "v = []\n" # <<<<<<<<<<<<<<
|
|
* subst = ""
|
|
* else:
|
|
*/
|
|
__pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_script, ((PyObject *)__pyx_kp_s_41)); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 275; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_v_script);
|
|
__pyx_v_script = __pyx_t_6;
|
|
__pyx_t_6 = 0;
|
|
|
|
/* "preprocessed_text.py":276
|
|
* variables = get_variables(line)
|
|
* script += "v = []\n"
|
|
* subst = "" # <<<<<<<<<<<<<<
|
|
* else:
|
|
* script += line.text+"\n"
|
|
*/
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_33));
|
|
__Pyx_XDECREF(__pyx_v_subst);
|
|
__pyx_v_subst = ((PyObject *)__pyx_kp_s_33);
|
|
goto __pyx_L9;
|
|
}
|
|
/*else*/ {
|
|
if (unlikely(!__pyx_v_script)) { __Pyx_RaiseUnboundLocalError("script"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 278; __pyx_clineno = __LINE__; goto __pyx_L1_error;} }__pyx_t_6 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__text); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 278; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
|
/* "preprocessed_text.py":278
|
|
* subst = ""
|
|
* else:
|
|
* script += line.text+"\n" # <<<<<<<<<<<<<<
|
|
* else: # inside == SUBST
|
|
* if type(line) == Begin_template:
|
|
*/
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_4 = PyNumber_Add(__pyx_t_6, ((PyObject *)__pyx_kp_s_22)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 278; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_script, __pyx_t_4); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 278; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__Pyx_XDECREF(__pyx_v_script);
|
|
__pyx_v_script = __pyx_t_6;
|
|
__pyx_t_6 = 0;
|
|
}
|
|
__pyx_L9:;
|
|
goto __pyx_L7;
|
|
}
|
|
/*else*/ {
|
|
|
|
/* "preprocessed_text.py":280
|
|
* script += line.text+"\n"
|
|
* else: # inside == SUBST
|
|
* if type(line) == Begin_template: # <<<<<<<<<<<<<<
|
|
* fail(line,"subst","Nested Begin_template")
|
|
* elif type(line) == Subst:
|
|
*/
|
|
__pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__Begin_template); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 280; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_4 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_line)), __pyx_t_6, Py_EQ); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 280; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 280; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
if (__pyx_t_5) {
|
|
|
|
/* "preprocessed_text.py":281
|
|
* else: # inside == SUBST
|
|
* if type(line) == Begin_template:
|
|
* fail(line,"subst","Nested Begin_template") # <<<<<<<<<<<<<<
|
|
* elif type(line) == Subst:
|
|
* fail(line,"subst","Subst already defined")
|
|
*/
|
|
__pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 281; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
__Pyx_INCREF(((PyObject *)__pyx_n_s__subst));
|
|
PyTuple_SET_ITEM(__pyx_t_4, 1, ((PyObject *)__pyx_n_s__subst));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_n_s__subst));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_42));
|
|
PyTuple_SET_ITEM(__pyx_t_4, 2, ((PyObject *)__pyx_kp_s_42));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_42));
|
|
__pyx_t_6 = PyObject_Call(__pyx_cur_scope->__pyx_v_fail, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 281; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
goto __pyx_L10;
|
|
}
|
|
|
|
/* "preprocessed_text.py":282
|
|
* if type(line) == Begin_template:
|
|
* fail(line,"subst","Nested Begin_template")
|
|
* elif type(line) == Subst: # <<<<<<<<<<<<<<
|
|
* fail(line,"subst","Subst already defined")
|
|
* elif type(line) == End_template:
|
|
*/
|
|
__pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__Subst); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 282; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_4 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_line)), __pyx_t_6, Py_EQ); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 282; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 282; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
if (__pyx_t_5) {
|
|
|
|
/* "preprocessed_text.py":283
|
|
* fail(line,"subst","Nested Begin_template")
|
|
* elif type(line) == Subst:
|
|
* fail(line,"subst","Subst already defined") # <<<<<<<<<<<<<<
|
|
* elif type(line) == End_template:
|
|
* inside = 0
|
|
*/
|
|
__pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 283; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
__Pyx_INCREF(((PyObject *)__pyx_n_s__subst));
|
|
PyTuple_SET_ITEM(__pyx_t_4, 1, ((PyObject *)__pyx_n_s__subst));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_n_s__subst));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_43));
|
|
PyTuple_SET_ITEM(__pyx_t_4, 2, ((PyObject *)__pyx_kp_s_43));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_43));
|
|
__pyx_t_6 = PyObject_Call(__pyx_cur_scope->__pyx_v_fail, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 283; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
goto __pyx_L10;
|
|
}
|
|
|
|
/* "preprocessed_text.py":284
|
|
* elif type(line) == Subst:
|
|
* fail(line,"subst","Subst already defined")
|
|
* elif type(line) == End_template: # <<<<<<<<<<<<<<
|
|
* inside = 0
|
|
* subst = subst.rstrip()
|
|
*/
|
|
__pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__End_template); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 284; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_4 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_line)), __pyx_t_6, Py_EQ); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 284; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 284; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
if (__pyx_t_5) {
|
|
|
|
/* "preprocessed_text.py":285
|
|
* fail(line,"subst","Subst already defined")
|
|
* elif type(line) == End_template:
|
|
* inside = 0 # <<<<<<<<<<<<<<
|
|
* subst = subst.rstrip()
|
|
* if subst[-2:] == ';;':
|
|
*/
|
|
__pyx_v_inside = 0;
|
|
if (unlikely(!__pyx_v_subst)) { __Pyx_RaiseUnboundLocalError("subst"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 286; __pyx_clineno = __LINE__; goto __pyx_L1_error;} }__pyx_t_4 = PyObject_GetAttr(__pyx_v_subst, __pyx_n_s__rstrip); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 286; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
|
/* "preprocessed_text.py":286
|
|
* elif type(line) == End_template:
|
|
* inside = 0
|
|
* subst = subst.rstrip() # <<<<<<<<<<<<<<
|
|
* if subst[-2:] == ';;':
|
|
* subst = subst[:-2]
|
|
*/
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_6 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 286; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__Pyx_DECREF(__pyx_v_subst);
|
|
__pyx_v_subst = __pyx_t_6;
|
|
__pyx_t_6 = 0;
|
|
|
|
/* "preprocessed_text.py":287
|
|
* inside = 0
|
|
* subst = subst.rstrip()
|
|
* if subst[-2:] == ';;': # <<<<<<<<<<<<<<
|
|
* subst = subst[:-2]
|
|
* for s in subst.split(';;'):
|
|
*/
|
|
__pyx_t_6 = __Pyx_PySequence_GetSlice(__pyx_v_subst, -2, PY_SSIZE_T_MAX); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 287; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_5 = __Pyx_PyString_Equals(__pyx_t_6, ((PyObject *)__pyx_kp_s_44), Py_EQ); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 287; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
if (__pyx_t_5) {
|
|
|
|
/* "preprocessed_text.py":288
|
|
* subst = subst.rstrip()
|
|
* if subst[-2:] == ';;':
|
|
* subst = subst[:-2] # <<<<<<<<<<<<<<
|
|
* for s in subst.split(';;'):
|
|
* buffer = map(lambda x: x.strip(), s.split(';'))
|
|
*/
|
|
__pyx_t_6 = __Pyx_PySequence_GetSlice(__pyx_v_subst, 0, -2); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 288; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_v_subst);
|
|
__pyx_v_subst = __pyx_t_6;
|
|
__pyx_t_6 = 0;
|
|
goto __pyx_L11;
|
|
}
|
|
__pyx_L11:;
|
|
|
|
/* "preprocessed_text.py":289
|
|
* if subst[-2:] == ';;':
|
|
* subst = subst[:-2]
|
|
* for s in subst.split(';;'): # <<<<<<<<<<<<<<
|
|
* buffer = map(lambda x: x.strip(), s.split(';'))
|
|
* if len(buffer) != len(variables):
|
|
*/
|
|
__pyx_t_6 = PyObject_GetAttr(__pyx_v_subst, __pyx_n_s__split); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 289; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_4 = PyObject_Call(__pyx_t_6, ((PyObject *)__pyx_k_tuple_45), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 289; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
if (PyList_CheckExact(__pyx_t_4) || PyTuple_CheckExact(__pyx_t_4)) {
|
|
__pyx_t_6 = __pyx_t_4; __Pyx_INCREF(__pyx_t_6); __pyx_t_7 = 0;
|
|
__pyx_t_8 = NULL;
|
|
} else {
|
|
__pyx_t_7 = -1; __pyx_t_6 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 289; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_8 = Py_TYPE(__pyx_t_6)->tp_iternext;
|
|
}
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
for (;;) {
|
|
if (PyList_CheckExact(__pyx_t_6)) {
|
|
if (__pyx_t_7 >= PyList_GET_SIZE(__pyx_t_6)) break;
|
|
__pyx_t_4 = PyList_GET_ITEM(__pyx_t_6, __pyx_t_7); __Pyx_INCREF(__pyx_t_4); __pyx_t_7++;
|
|
} else if (PyTuple_CheckExact(__pyx_t_6)) {
|
|
if (__pyx_t_7 >= PyTuple_GET_SIZE(__pyx_t_6)) break;
|
|
__pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_6, __pyx_t_7); __Pyx_INCREF(__pyx_t_4); __pyx_t_7++;
|
|
} else {
|
|
__pyx_t_4 = __pyx_t_8(__pyx_t_6);
|
|
if (unlikely(!__pyx_t_4)) {
|
|
if (PyErr_Occurred()) {
|
|
if (likely(PyErr_ExceptionMatches(PyExc_StopIteration))) PyErr_Clear();
|
|
else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 289; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
break;
|
|
}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
}
|
|
__Pyx_XDECREF(__pyx_v_s);
|
|
__pyx_v_s = __pyx_t_4;
|
|
__pyx_t_4 = 0;
|
|
|
|
/* "preprocessed_text.py":290
|
|
* subst = subst[:-2]
|
|
* for s in subst.split(';;'):
|
|
* buffer = map(lambda x: x.strip(), s.split(';')) # <<<<<<<<<<<<<<
|
|
* if len(buffer) != len(variables):
|
|
* fail(line,"subst","%d variables defined, and %d substitutions"%(len(variables),len(buffer)))
|
|
*/
|
|
__pyx_t_4 = __pyx_binding_PyCFunctionType_NewEx(&__pyx_lambda_methdef_lambda2, NULL, __pyx_n_s__preprocessed_text); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 290; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_9 = PyObject_GetAttr(__pyx_v_s, __pyx_n_s__split); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 290; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_9);
|
|
__pyx_t_10 = PyObject_Call(__pyx_t_9, ((PyObject *)__pyx_k_tuple_47), NULL); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 290; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_10);
|
|
__Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
|
|
__pyx_t_9 = PyTuple_New(2); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 290; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_9));
|
|
PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_4);
|
|
__Pyx_GIVEREF(__pyx_t_4);
|
|
PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_10);
|
|
__Pyx_GIVEREF(__pyx_t_10);
|
|
__pyx_t_4 = 0;
|
|
__pyx_t_10 = 0;
|
|
__pyx_t_10 = PyObject_Call(__pyx_builtin_map, ((PyObject *)__pyx_t_9), NULL); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 290; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_10);
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_9)); __pyx_t_9 = 0;
|
|
__Pyx_XDECREF(__pyx_v_buffer);
|
|
__pyx_v_buffer = __pyx_t_10;
|
|
__pyx_t_10 = 0;
|
|
|
|
/* "preprocessed_text.py":291
|
|
* for s in subst.split(';;'):
|
|
* buffer = map(lambda x: x.strip(), s.split(';'))
|
|
* if len(buffer) != len(variables): # <<<<<<<<<<<<<<
|
|
* fail(line,"subst","%d variables defined, and %d substitutions"%(len(variables),len(buffer)))
|
|
* script += "v.append( { \\\n"
|
|
*/
|
|
__pyx_t_11 = PyObject_Length(__pyx_v_buffer); if (unlikely(__pyx_t_11 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 291; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
if (unlikely(!__pyx_v_variables)) { __Pyx_RaiseUnboundLocalError("variables"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 291; __pyx_clineno = __LINE__; goto __pyx_L1_error;} }__pyx_t_12 = PyObject_Length(__pyx_v_variables); if (unlikely(__pyx_t_12 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 291; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__pyx_t_5 = (__pyx_t_11 != __pyx_t_12);
|
|
if (__pyx_t_5) {
|
|
|
|
/* "preprocessed_text.py":292
|
|
* buffer = map(lambda x: x.strip(), s.split(';'))
|
|
* if len(buffer) != len(variables):
|
|
* fail(line,"subst","%d variables defined, and %d substitutions"%(len(variables),len(buffer))) # <<<<<<<<<<<<<<
|
|
* script += "v.append( { \\\n"
|
|
* for t,v in zip(variables,buffer):
|
|
*/
|
|
__pyx_t_12 = PyObject_Length(__pyx_v_variables); if (unlikely(__pyx_t_12 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 292; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__pyx_t_10 = PyInt_FromSsize_t(__pyx_t_12); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 292; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_10);
|
|
__pyx_t_12 = PyObject_Length(__pyx_v_buffer); if (unlikely(__pyx_t_12 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 292; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__pyx_t_9 = PyInt_FromSsize_t(__pyx_t_12); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 292; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_9);
|
|
__pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 292; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_10);
|
|
__Pyx_GIVEREF(__pyx_t_10);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_9);
|
|
__Pyx_GIVEREF(__pyx_t_9);
|
|
__pyx_t_10 = 0;
|
|
__pyx_t_9 = 0;
|
|
__pyx_t_9 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_48), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 292; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_9));
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
|
|
__pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 292; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
__Pyx_INCREF(((PyObject *)__pyx_n_s__subst));
|
|
PyTuple_SET_ITEM(__pyx_t_4, 1, ((PyObject *)__pyx_n_s__subst));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_n_s__subst));
|
|
PyTuple_SET_ITEM(__pyx_t_4, 2, ((PyObject *)__pyx_t_9));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_t_9));
|
|
__pyx_t_9 = 0;
|
|
__pyx_t_9 = PyObject_Call(__pyx_cur_scope->__pyx_v_fail, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 292; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_9);
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
|
|
__Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
|
|
goto __pyx_L14;
|
|
}
|
|
__pyx_L14:;
|
|
if (unlikely(!__pyx_v_script)) { __Pyx_RaiseUnboundLocalError("script"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 293; __pyx_clineno = __LINE__; goto __pyx_L1_error;} }__pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_script, ((PyObject *)__pyx_kp_s_49)); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 293; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
|
/* "preprocessed_text.py":293
|
|
* if len(buffer) != len(variables):
|
|
* fail(line,"subst","%d variables defined, and %d substitutions"%(len(variables),len(buffer)))
|
|
* script += "v.append( { \\\n" # <<<<<<<<<<<<<<
|
|
* for t,v in zip(variables,buffer):
|
|
* script += ' "%s": """%s""" ,\n'%(t,v)
|
|
*/
|
|
__Pyx_GOTREF(__pyx_t_9);
|
|
__Pyx_XDECREF(__pyx_v_script);
|
|
__pyx_v_script = __pyx_t_9;
|
|
__pyx_t_9 = 0;
|
|
|
|
/* "preprocessed_text.py":294
|
|
* fail(line,"subst","%d variables defined, and %d substitutions"%(len(variables),len(buffer)))
|
|
* script += "v.append( { \\\n"
|
|
* for t,v in zip(variables,buffer): # <<<<<<<<<<<<<<
|
|
* script += ' "%s": """%s""" ,\n'%(t,v)
|
|
* script += "} )\n"
|
|
*/
|
|
__pyx_t_9 = PyTuple_New(2); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 294; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_9));
|
|
__Pyx_INCREF(__pyx_v_variables);
|
|
PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_v_variables);
|
|
__Pyx_GIVEREF(__pyx_v_variables);
|
|
__Pyx_INCREF(__pyx_v_buffer);
|
|
PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_v_buffer);
|
|
__Pyx_GIVEREF(__pyx_v_buffer);
|
|
__pyx_t_4 = PyObject_Call(__pyx_builtin_zip, ((PyObject *)__pyx_t_9), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 294; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_9)); __pyx_t_9 = 0;
|
|
if (PyList_CheckExact(__pyx_t_4) || PyTuple_CheckExact(__pyx_t_4)) {
|
|
__pyx_t_9 = __pyx_t_4; __Pyx_INCREF(__pyx_t_9); __pyx_t_12 = 0;
|
|
__pyx_t_13 = NULL;
|
|
} else {
|
|
__pyx_t_12 = -1; __pyx_t_9 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 294; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_9);
|
|
__pyx_t_13 = Py_TYPE(__pyx_t_9)->tp_iternext;
|
|
}
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
for (;;) {
|
|
if (PyList_CheckExact(__pyx_t_9)) {
|
|
if (__pyx_t_12 >= PyList_GET_SIZE(__pyx_t_9)) break;
|
|
__pyx_t_4 = PyList_GET_ITEM(__pyx_t_9, __pyx_t_12); __Pyx_INCREF(__pyx_t_4); __pyx_t_12++;
|
|
} else if (PyTuple_CheckExact(__pyx_t_9)) {
|
|
if (__pyx_t_12 >= PyTuple_GET_SIZE(__pyx_t_9)) break;
|
|
__pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_9, __pyx_t_12); __Pyx_INCREF(__pyx_t_4); __pyx_t_12++;
|
|
} else {
|
|
__pyx_t_4 = __pyx_t_13(__pyx_t_9);
|
|
if (unlikely(!__pyx_t_4)) {
|
|
if (PyErr_Occurred()) {
|
|
if (likely(PyErr_ExceptionMatches(PyExc_StopIteration))) PyErr_Clear();
|
|
else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 294; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
break;
|
|
}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
}
|
|
if ((likely(PyTuple_CheckExact(__pyx_t_4))) || (PyList_CheckExact(__pyx_t_4))) {
|
|
PyObject* sequence = __pyx_t_4;
|
|
if (likely(PyTuple_CheckExact(sequence))) {
|
|
if (unlikely(PyTuple_GET_SIZE(sequence) != 2)) {
|
|
if (PyTuple_GET_SIZE(sequence) > 2) __Pyx_RaiseTooManyValuesError(2);
|
|
else __Pyx_RaiseNeedMoreValuesError(PyTuple_GET_SIZE(sequence));
|
|
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 294; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
__pyx_t_10 = PyTuple_GET_ITEM(sequence, 0);
|
|
__pyx_t_14 = PyTuple_GET_ITEM(sequence, 1);
|
|
} else {
|
|
if (unlikely(PyList_GET_SIZE(sequence) != 2)) {
|
|
if (PyList_GET_SIZE(sequence) > 2) __Pyx_RaiseTooManyValuesError(2);
|
|
else __Pyx_RaiseNeedMoreValuesError(PyList_GET_SIZE(sequence));
|
|
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 294; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
__pyx_t_10 = PyList_GET_ITEM(sequence, 0);
|
|
__pyx_t_14 = PyList_GET_ITEM(sequence, 1);
|
|
}
|
|
__Pyx_INCREF(__pyx_t_10);
|
|
__Pyx_INCREF(__pyx_t_14);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
} else {
|
|
Py_ssize_t index = -1;
|
|
__pyx_t_15 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_15)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 294; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_15);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__pyx_t_16 = Py_TYPE(__pyx_t_15)->tp_iternext;
|
|
index = 0; __pyx_t_10 = __pyx_t_16(__pyx_t_15); if (unlikely(!__pyx_t_10)) goto __pyx_L17_unpacking_failed;
|
|
__Pyx_GOTREF(__pyx_t_10);
|
|
index = 1; __pyx_t_14 = __pyx_t_16(__pyx_t_15); if (unlikely(!__pyx_t_14)) goto __pyx_L17_unpacking_failed;
|
|
__Pyx_GOTREF(__pyx_t_14);
|
|
if (__Pyx_IternextUnpackEndCheck(__pyx_t_16(__pyx_t_15), 2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 294; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
|
|
goto __pyx_L18_unpacking_done;
|
|
__pyx_L17_unpacking_failed:;
|
|
__Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
|
|
if (PyErr_Occurred() && PyErr_ExceptionMatches(PyExc_StopIteration)) PyErr_Clear();
|
|
if (!PyErr_Occurred()) __Pyx_RaiseNeedMoreValuesError(index);
|
|
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 294; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__pyx_L18_unpacking_done:;
|
|
}
|
|
__Pyx_XDECREF(__pyx_v_t);
|
|
__pyx_v_t = __pyx_t_10;
|
|
__pyx_t_10 = 0;
|
|
__Pyx_XDECREF(__pyx_v_v);
|
|
__pyx_v_v = __pyx_t_14;
|
|
__pyx_t_14 = 0;
|
|
|
|
/* "preprocessed_text.py":295
|
|
* script += "v.append( { \\\n"
|
|
* for t,v in zip(variables,buffer):
|
|
* script += ' "%s": """%s""" ,\n'%(t,v) # <<<<<<<<<<<<<<
|
|
* script += "} )\n"
|
|
* script += "for d in v:\n t0 = str(template)\n"
|
|
*/
|
|
__pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 295; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
__Pyx_INCREF(__pyx_v_t);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_t);
|
|
__Pyx_GIVEREF(__pyx_v_t);
|
|
__Pyx_INCREF(__pyx_v_v);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_v);
|
|
__Pyx_GIVEREF(__pyx_v_v);
|
|
__pyx_t_14 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_50), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_14)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 295; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_14));
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
|
|
__pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_script, ((PyObject *)__pyx_t_14)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 295; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_14)); __pyx_t_14 = 0;
|
|
__Pyx_DECREF(__pyx_v_script);
|
|
__pyx_v_script = __pyx_t_4;
|
|
__pyx_t_4 = 0;
|
|
}
|
|
__Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
|
|
|
|
/* "preprocessed_text.py":296
|
|
* for t,v in zip(variables,buffer):
|
|
* script += ' "%s": """%s""" ,\n'%(t,v)
|
|
* script += "} )\n" # <<<<<<<<<<<<<<
|
|
* script += "for d in v:\n t0 = str(template)\n"
|
|
* for v in variables:
|
|
*/
|
|
__pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_script, ((PyObject *)__pyx_kp_s_51)); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 296; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_9);
|
|
__Pyx_DECREF(__pyx_v_script);
|
|
__pyx_v_script = __pyx_t_9;
|
|
__pyx_t_9 = 0;
|
|
}
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
if (unlikely(!__pyx_v_script)) { __Pyx_RaiseUnboundLocalError("script"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 297; __pyx_clineno = __LINE__; goto __pyx_L1_error;} }__pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_script, ((PyObject *)__pyx_kp_s_52)); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 297; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
|
/* "preprocessed_text.py":297
|
|
* script += ' "%s": """%s""" ,\n'%(t,v)
|
|
* script += "} )\n"
|
|
* script += "for d in v:\n t0 = str(template)\n" # <<<<<<<<<<<<<<
|
|
* for v in variables:
|
|
* script += " t0 = t0.replace('%s',d['%s'])\n"%(v,v)
|
|
*/
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_XDECREF(__pyx_v_script);
|
|
__pyx_v_script = __pyx_t_6;
|
|
__pyx_t_6 = 0;
|
|
if (unlikely(!__pyx_v_variables)) { __Pyx_RaiseUnboundLocalError("variables"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 298; __pyx_clineno = __LINE__; goto __pyx_L1_error;} }if (PyList_CheckExact(__pyx_v_variables) || PyTuple_CheckExact(__pyx_v_variables)) {
|
|
|
|
/* "preprocessed_text.py":298
|
|
* script += "} )\n"
|
|
* script += "for d in v:\n t0 = str(template)\n"
|
|
* for v in variables: # <<<<<<<<<<<<<<
|
|
* script += " t0 = t0.replace('%s',d['%s'])\n"%(v,v)
|
|
* script += " print t0\n"
|
|
*/
|
|
__pyx_t_6 = __pyx_v_variables; __Pyx_INCREF(__pyx_t_6); __pyx_t_7 = 0;
|
|
__pyx_t_8 = NULL;
|
|
} else {
|
|
__pyx_t_7 = -1; __pyx_t_6 = PyObject_GetIter(__pyx_v_variables); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 298; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_8 = Py_TYPE(__pyx_t_6)->tp_iternext;
|
|
}
|
|
for (;;) {
|
|
if (PyList_CheckExact(__pyx_t_6)) {
|
|
if (__pyx_t_7 >= PyList_GET_SIZE(__pyx_t_6)) break;
|
|
__pyx_t_9 = PyList_GET_ITEM(__pyx_t_6, __pyx_t_7); __Pyx_INCREF(__pyx_t_9); __pyx_t_7++;
|
|
} else if (PyTuple_CheckExact(__pyx_t_6)) {
|
|
if (__pyx_t_7 >= PyTuple_GET_SIZE(__pyx_t_6)) break;
|
|
__pyx_t_9 = PyTuple_GET_ITEM(__pyx_t_6, __pyx_t_7); __Pyx_INCREF(__pyx_t_9); __pyx_t_7++;
|
|
} else {
|
|
__pyx_t_9 = __pyx_t_8(__pyx_t_6);
|
|
if (unlikely(!__pyx_t_9)) {
|
|
if (PyErr_Occurred()) {
|
|
if (likely(PyErr_ExceptionMatches(PyExc_StopIteration))) PyErr_Clear();
|
|
else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 298; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
break;
|
|
}
|
|
__Pyx_GOTREF(__pyx_t_9);
|
|
}
|
|
__Pyx_XDECREF(__pyx_v_v);
|
|
__pyx_v_v = __pyx_t_9;
|
|
__pyx_t_9 = 0;
|
|
|
|
/* "preprocessed_text.py":299
|
|
* script += "for d in v:\n t0 = str(template)\n"
|
|
* for v in variables:
|
|
* script += " t0 = t0.replace('%s',d['%s'])\n"%(v,v) # <<<<<<<<<<<<<<
|
|
* script += " print t0\n"
|
|
* # Write script file
|
|
*/
|
|
__pyx_t_9 = PyTuple_New(2); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 299; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_9));
|
|
__Pyx_INCREF(__pyx_v_v);
|
|
PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_v_v);
|
|
__Pyx_GIVEREF(__pyx_v_v);
|
|
__Pyx_INCREF(__pyx_v_v);
|
|
PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_v_v);
|
|
__Pyx_GIVEREF(__pyx_v_v);
|
|
__pyx_t_4 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_53), ((PyObject *)__pyx_t_9)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 299; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_9)); __pyx_t_9 = 0;
|
|
__pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_script, ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 299; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_9);
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
|
|
__Pyx_DECREF(__pyx_v_script);
|
|
__pyx_v_script = __pyx_t_9;
|
|
__pyx_t_9 = 0;
|
|
}
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
|
|
/* "preprocessed_text.py":300
|
|
* for v in variables:
|
|
* script += " t0 = t0.replace('%s',d['%s'])\n"%(v,v)
|
|
* script += " print t0\n" # <<<<<<<<<<<<<<
|
|
* # Write script file
|
|
* scriptname = "%s%s_template_%d"%(irpdir,line.filename,line.i)
|
|
*/
|
|
__pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_script, ((PyObject *)__pyx_kp_s_54)); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 300; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_v_script);
|
|
__pyx_v_script = __pyx_t_6;
|
|
__pyx_t_6 = 0;
|
|
|
|
/* "preprocessed_text.py":302
|
|
* script += " print t0\n"
|
|
* # Write script file
|
|
* scriptname = "%s%s_template_%d"%(irpdir,line.filename,line.i) # <<<<<<<<<<<<<<
|
|
* file = open(scriptname,'w')
|
|
* file.writelines(script)
|
|
*/
|
|
__pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__irpdir); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 302; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_9 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__filename); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 302; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_9);
|
|
__pyx_t_4 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__i); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 302; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_14 = PyTuple_New(3); if (unlikely(!__pyx_t_14)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 302; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_14));
|
|
PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_6);
|
|
__Pyx_GIVEREF(__pyx_t_6);
|
|
PyTuple_SET_ITEM(__pyx_t_14, 1, __pyx_t_9);
|
|
__Pyx_GIVEREF(__pyx_t_9);
|
|
PyTuple_SET_ITEM(__pyx_t_14, 2, __pyx_t_4);
|
|
__Pyx_GIVEREF(__pyx_t_4);
|
|
__pyx_t_6 = 0;
|
|
__pyx_t_9 = 0;
|
|
__pyx_t_4 = 0;
|
|
__pyx_t_4 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_55), ((PyObject *)__pyx_t_14)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 302; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_14)); __pyx_t_14 = 0;
|
|
__Pyx_XDECREF(__pyx_v_scriptname);
|
|
__pyx_v_scriptname = ((PyObject *)__pyx_t_4);
|
|
__pyx_t_4 = 0;
|
|
|
|
/* "preprocessed_text.py":303
|
|
* # Write script file
|
|
* scriptname = "%s%s_template_%d"%(irpdir,line.filename,line.i)
|
|
* file = open(scriptname,'w') # <<<<<<<<<<<<<<
|
|
* file.writelines(script)
|
|
* file.close()
|
|
*/
|
|
__pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 303; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
__Pyx_INCREF(__pyx_v_scriptname);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_scriptname);
|
|
__Pyx_GIVEREF(__pyx_v_scriptname);
|
|
__Pyx_INCREF(((PyObject *)__pyx_n_s__w));
|
|
PyTuple_SET_ITEM(__pyx_t_4, 1, ((PyObject *)__pyx_n_s__w));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_n_s__w));
|
|
__pyx_t_14 = PyObject_Call(__pyx_builtin_open, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_14)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 303; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_14);
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
|
|
__Pyx_XDECREF(__pyx_v_file);
|
|
__pyx_v_file = __pyx_t_14;
|
|
__pyx_t_14 = 0;
|
|
|
|
/* "preprocessed_text.py":304
|
|
* scriptname = "%s%s_template_%d"%(irpdir,line.filename,line.i)
|
|
* file = open(scriptname,'w')
|
|
* file.writelines(script) # <<<<<<<<<<<<<<
|
|
* file.close()
|
|
* scriptname = "%s_template_%d"%(line.filename,line.i)
|
|
*/
|
|
__pyx_t_14 = PyObject_GetAttr(__pyx_v_file, __pyx_n_s__writelines); if (unlikely(!__pyx_t_14)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 304; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_14);
|
|
__pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 304; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
__Pyx_INCREF(__pyx_v_script);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_script);
|
|
__Pyx_GIVEREF(__pyx_v_script);
|
|
__pyx_t_9 = PyObject_Call(__pyx_t_14, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 304; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_9);
|
|
__Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
|
|
__Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
|
|
|
|
/* "preprocessed_text.py":305
|
|
* file = open(scriptname,'w')
|
|
* file.writelines(script)
|
|
* file.close() # <<<<<<<<<<<<<<
|
|
* scriptname = "%s_template_%d"%(line.filename,line.i)
|
|
* file = open(scriptname,'w')
|
|
*/
|
|
__pyx_t_9 = PyObject_GetAttr(__pyx_v_file, __pyx_n_s__close); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 305; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_9);
|
|
__pyx_t_4 = PyObject_Call(__pyx_t_9, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 305; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
|
|
/* "preprocessed_text.py":306
|
|
* file.writelines(script)
|
|
* file.close()
|
|
* scriptname = "%s_template_%d"%(line.filename,line.i) # <<<<<<<<<<<<<<
|
|
* file = open(scriptname,'w')
|
|
* file.writelines(script)
|
|
*/
|
|
__pyx_t_4 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__filename); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 306; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_9 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__i); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 306; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_9);
|
|
__pyx_t_14 = PyTuple_New(2); if (unlikely(!__pyx_t_14)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 306; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_14));
|
|
PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_4);
|
|
__Pyx_GIVEREF(__pyx_t_4);
|
|
PyTuple_SET_ITEM(__pyx_t_14, 1, __pyx_t_9);
|
|
__Pyx_GIVEREF(__pyx_t_9);
|
|
__pyx_t_4 = 0;
|
|
__pyx_t_9 = 0;
|
|
__pyx_t_9 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_56), ((PyObject *)__pyx_t_14)); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 306; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_9));
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_14)); __pyx_t_14 = 0;
|
|
__Pyx_DECREF(__pyx_v_scriptname);
|
|
__pyx_v_scriptname = ((PyObject *)__pyx_t_9);
|
|
__pyx_t_9 = 0;
|
|
|
|
/* "preprocessed_text.py":307
|
|
* file.close()
|
|
* scriptname = "%s_template_%d"%(line.filename,line.i)
|
|
* file = open(scriptname,'w') # <<<<<<<<<<<<<<
|
|
* file.writelines(script)
|
|
* file.close()
|
|
*/
|
|
__pyx_t_9 = PyTuple_New(2); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 307; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_9));
|
|
__Pyx_INCREF(__pyx_v_scriptname);
|
|
PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_v_scriptname);
|
|
__Pyx_GIVEREF(__pyx_v_scriptname);
|
|
__Pyx_INCREF(((PyObject *)__pyx_n_s__w));
|
|
PyTuple_SET_ITEM(__pyx_t_9, 1, ((PyObject *)__pyx_n_s__w));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_n_s__w));
|
|
__pyx_t_14 = PyObject_Call(__pyx_builtin_open, ((PyObject *)__pyx_t_9), NULL); if (unlikely(!__pyx_t_14)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 307; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_14);
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_9)); __pyx_t_9 = 0;
|
|
__Pyx_DECREF(__pyx_v_file);
|
|
__pyx_v_file = __pyx_t_14;
|
|
__pyx_t_14 = 0;
|
|
|
|
/* "preprocessed_text.py":308
|
|
* scriptname = "%s_template_%d"%(line.filename,line.i)
|
|
* file = open(scriptname,'w')
|
|
* file.writelines(script) # <<<<<<<<<<<<<<
|
|
* file.close()
|
|
* # Execute shell
|
|
*/
|
|
__pyx_t_14 = PyObject_GetAttr(__pyx_v_file, __pyx_n_s__writelines); if (unlikely(!__pyx_t_14)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 308; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_14);
|
|
__pyx_t_9 = PyTuple_New(1); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 308; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_9));
|
|
__Pyx_INCREF(__pyx_v_script);
|
|
PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_v_script);
|
|
__Pyx_GIVEREF(__pyx_v_script);
|
|
__pyx_t_4 = PyObject_Call(__pyx_t_14, ((PyObject *)__pyx_t_9), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 308; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_9)); __pyx_t_9 = 0;
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
|
|
/* "preprocessed_text.py":309
|
|
* file = open(scriptname,'w')
|
|
* file.writelines(script)
|
|
* file.close() # <<<<<<<<<<<<<<
|
|
* # Execute shell
|
|
* import os
|
|
*/
|
|
__pyx_t_4 = PyObject_GetAttr(__pyx_v_file, __pyx_n_s__close); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 309; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_9 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 309; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_9);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
|
|
|
|
/* "preprocessed_text.py":311
|
|
* file.close()
|
|
* # Execute shell
|
|
* import os # <<<<<<<<<<<<<<
|
|
* pipe = os.popen("python < %s"%(scriptname),'r')
|
|
* lines = pipe.readlines()
|
|
*/
|
|
__pyx_t_9 = __Pyx_Import(((PyObject *)__pyx_n_s__os), 0, -1); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 311; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_9);
|
|
__Pyx_XDECREF(__pyx_v_os);
|
|
__pyx_v_os = __pyx_t_9;
|
|
__pyx_t_9 = 0;
|
|
|
|
/* "preprocessed_text.py":312
|
|
* # Execute shell
|
|
* import os
|
|
* pipe = os.popen("python < %s"%(scriptname),'r') # <<<<<<<<<<<<<<
|
|
* lines = pipe.readlines()
|
|
* pipe.close()
|
|
*/
|
|
__pyx_t_9 = PyObject_GetAttr(__pyx_v_os, __pyx_n_s__popen); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 312; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_9);
|
|
__pyx_t_4 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_57), __pyx_v_scriptname); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 312; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
__pyx_t_14 = PyTuple_New(2); if (unlikely(!__pyx_t_14)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 312; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_14));
|
|
PyTuple_SET_ITEM(__pyx_t_14, 0, ((PyObject *)__pyx_t_4));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_t_4));
|
|
__Pyx_INCREF(((PyObject *)__pyx_n_s__r));
|
|
PyTuple_SET_ITEM(__pyx_t_14, 1, ((PyObject *)__pyx_n_s__r));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_n_s__r));
|
|
__pyx_t_4 = 0;
|
|
__pyx_t_4 = PyObject_Call(__pyx_t_9, ((PyObject *)__pyx_t_14), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 312; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_14)); __pyx_t_14 = 0;
|
|
__Pyx_XDECREF(__pyx_v_pipe);
|
|
__pyx_v_pipe = __pyx_t_4;
|
|
__pyx_t_4 = 0;
|
|
|
|
/* "preprocessed_text.py":313
|
|
* import os
|
|
* pipe = os.popen("python < %s"%(scriptname),'r')
|
|
* lines = pipe.readlines() # <<<<<<<<<<<<<<
|
|
* pipe.close()
|
|
* result += get_text(lines,scriptname)
|
|
*/
|
|
__pyx_t_4 = PyObject_GetAttr(__pyx_v_pipe, __pyx_n_s__readlines); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 313; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_14 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_14)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 313; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_14);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__Pyx_XDECREF(__pyx_v_lines);
|
|
__pyx_v_lines = __pyx_t_14;
|
|
__pyx_t_14 = 0;
|
|
|
|
/* "preprocessed_text.py":314
|
|
* pipe = os.popen("python < %s"%(scriptname),'r')
|
|
* lines = pipe.readlines()
|
|
* pipe.close() # <<<<<<<<<<<<<<
|
|
* result += get_text(lines,scriptname)
|
|
* os.remove(scriptname)
|
|
*/
|
|
__pyx_t_14 = PyObject_GetAttr(__pyx_v_pipe, __pyx_n_s__close); if (unlikely(!__pyx_t_14)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 314; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_14);
|
|
__pyx_t_4 = PyObject_Call(__pyx_t_14, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 314; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
|
|
/* "preprocessed_text.py":315
|
|
* lines = pipe.readlines()
|
|
* pipe.close()
|
|
* result += get_text(lines,scriptname) # <<<<<<<<<<<<<<
|
|
* os.remove(scriptname)
|
|
* else:
|
|
*/
|
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__get_text); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 315; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_14 = PyTuple_New(2); if (unlikely(!__pyx_t_14)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 315; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_14));
|
|
__Pyx_INCREF(__pyx_v_lines);
|
|
PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_v_lines);
|
|
__Pyx_GIVEREF(__pyx_v_lines);
|
|
__Pyx_INCREF(__pyx_v_scriptname);
|
|
PyTuple_SET_ITEM(__pyx_t_14, 1, __pyx_v_scriptname);
|
|
__Pyx_GIVEREF(__pyx_v_scriptname);
|
|
__pyx_t_9 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_t_14), NULL); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 315; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_9);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_14)); __pyx_t_14 = 0;
|
|
__pyx_t_14 = PyNumber_InPlaceAdd(__pyx_v_result, __pyx_t_9); if (unlikely(!__pyx_t_14)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 315; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_14);
|
|
__Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
|
|
__Pyx_DECREF(__pyx_v_result);
|
|
__pyx_v_result = __pyx_t_14;
|
|
__pyx_t_14 = 0;
|
|
|
|
/* "preprocessed_text.py":316
|
|
* pipe.close()
|
|
* result += get_text(lines,scriptname)
|
|
* os.remove(scriptname) # <<<<<<<<<<<<<<
|
|
* else:
|
|
* subst += line.text+'\n'
|
|
*/
|
|
__pyx_t_14 = PyObject_GetAttr(__pyx_v_os, __pyx_n_s__remove); if (unlikely(!__pyx_t_14)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 316; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_14);
|
|
__pyx_t_9 = PyTuple_New(1); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 316; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_9));
|
|
__Pyx_INCREF(__pyx_v_scriptname);
|
|
PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_v_scriptname);
|
|
__Pyx_GIVEREF(__pyx_v_scriptname);
|
|
__pyx_t_4 = PyObject_Call(__pyx_t_14, ((PyObject *)__pyx_t_9), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 316; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_9)); __pyx_t_9 = 0;
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
goto __pyx_L10;
|
|
}
|
|
/*else*/ {
|
|
if (unlikely(!__pyx_v_subst)) { __Pyx_RaiseUnboundLocalError("subst"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 318; __pyx_clineno = __LINE__; goto __pyx_L1_error;} }__pyx_t_4 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__text); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 318; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
|
/* "preprocessed_text.py":318
|
|
* os.remove(scriptname)
|
|
* else:
|
|
* subst += line.text+'\n' # <<<<<<<<<<<<<<
|
|
*
|
|
* return result
|
|
*/
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_9 = PyNumber_Add(__pyx_t_4, ((PyObject *)__pyx_kp_s_22)); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 318; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_9);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_subst, __pyx_t_9); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 318; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
|
|
__Pyx_XDECREF(__pyx_v_subst);
|
|
__pyx_v_subst = __pyx_t_4;
|
|
__pyx_t_4 = 0;
|
|
}
|
|
__pyx_L10:;
|
|
}
|
|
__pyx_L7:;
|
|
}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":320
|
|
* subst += line.text+'\n'
|
|
*
|
|
* return result # <<<<<<<<<<<<<<
|
|
*
|
|
* ######################################################################
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__Pyx_INCREF(__pyx_v_result);
|
|
__pyx_r = __pyx_v_result;
|
|
goto __pyx_L0;
|
|
|
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
|
goto __pyx_L0;
|
|
__pyx_L1_error:;
|
|
__Pyx_XDECREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_t_4);
|
|
__Pyx_XDECREF(__pyx_t_6);
|
|
__Pyx_XDECREF(__pyx_t_9);
|
|
__Pyx_XDECREF(__pyx_t_10);
|
|
__Pyx_XDECREF(__pyx_t_14);
|
|
__Pyx_XDECREF(__pyx_t_15);
|
|
__Pyx_AddTraceback("preprocessed_text.execute_templates", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__pyx_r = NULL;
|
|
__pyx_L0:;
|
|
__Pyx_XDECREF(__pyx_v_get_variables);
|
|
__Pyx_XDECREF(__pyx_v_result);
|
|
__Pyx_XDECREF(__pyx_v_line);
|
|
__Pyx_XDECREF(__pyx_v_script);
|
|
__Pyx_XDECREF(__pyx_v_variables);
|
|
__Pyx_XDECREF(__pyx_v_subst);
|
|
__Pyx_XDECREF(__pyx_v_s);
|
|
__Pyx_XDECREF(__pyx_v_buffer);
|
|
__Pyx_XDECREF(__pyx_v_t);
|
|
__Pyx_XDECREF(__pyx_v_v);
|
|
__Pyx_XDECREF(__pyx_v_scriptname);
|
|
__Pyx_XDECREF(__pyx_v_file);
|
|
__Pyx_XDECREF(__pyx_v_os);
|
|
__Pyx_XDECREF(__pyx_v_pipe);
|
|
__Pyx_XDECREF(__pyx_v_lines);
|
|
__Pyx_DECREF(((PyObject *)__pyx_cur_scope));
|
|
__Pyx_XGIVEREF(__pyx_r);
|
|
__Pyx_RefNannyFinishContext();
|
|
return __pyx_r;
|
|
}
|
|
|
|
/* "preprocessed_text.py":323
|
|
*
|
|
* ######################################################################
|
|
* def form(text): # <<<<<<<<<<<<<<
|
|
* '''Find if the text is in fixed form or in free form'''
|
|
* assert type(text) == list
|
|
*/
|
|
|
|
static PyObject *__pyx_pf_17preprocessed_text_4form(PyObject *__pyx_self, PyObject *__pyx_v_text); /*proto*/
|
|
static char __pyx_doc_17preprocessed_text_4form[] = "Find if the text is in fixed form or in free form";
|
|
static PyMethodDef __pyx_mdef_17preprocessed_text_4form = {__Pyx_NAMESTR("form"), (PyCFunction)__pyx_pf_17preprocessed_text_4form, METH_O, __Pyx_DOCSTR(__pyx_doc_17preprocessed_text_4form)};
|
|
static PyObject *__pyx_pf_17preprocessed_text_4form(PyObject *__pyx_self, PyObject *__pyx_v_text) {
|
|
PyObject *__pyx_v_re2 = NULL;
|
|
PyObject *__pyx_v_re3 = NULL;
|
|
PyObject *__pyx_v_line = NULL;
|
|
PyObject *__pyx_v_test = NULL;
|
|
PyObject *__pyx_r = NULL;
|
|
__Pyx_RefNannyDeclarations
|
|
PyObject *__pyx_t_1 = NULL;
|
|
int __pyx_t_2;
|
|
Py_ssize_t __pyx_t_3;
|
|
PyObject *__pyx_t_4 = NULL;
|
|
PyObject *(*__pyx_t_5)(PyObject *);
|
|
PyObject *__pyx_t_6 = NULL;
|
|
PyObject *__pyx_t_7 = NULL;
|
|
int __pyx_t_8;
|
|
int __pyx_t_9;
|
|
Py_ssize_t __pyx_t_10;
|
|
int __pyx_lineno = 0;
|
|
const char *__pyx_filename = NULL;
|
|
int __pyx_clineno = 0;
|
|
__Pyx_RefNannySetupContext("form");
|
|
__pyx_self = __pyx_self;
|
|
|
|
/* "preprocessed_text.py":325
|
|
* def form(text):
|
|
* '''Find if the text is in fixed form or in free form'''
|
|
* assert type(text) == list # <<<<<<<<<<<<<<
|
|
* if len(text) == 0:
|
|
* return Free_form
|
|
*/
|
|
#ifndef CYTHON_WITHOUT_ASSERTIONS
|
|
__pyx_t_1 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_text)), ((PyObject *)((PyObject*)(&PyList_Type))), Py_EQ); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 325; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 325; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
if (unlikely(!__pyx_t_2)) {
|
|
PyErr_SetNone(PyExc_AssertionError);
|
|
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 325; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
#endif
|
|
|
|
/* "preprocessed_text.py":326
|
|
* '''Find if the text is in fixed form or in free form'''
|
|
* assert type(text) == list
|
|
* if len(text) == 0: # <<<<<<<<<<<<<<
|
|
* return Free_form
|
|
* assert isinstance(text[0],Line)
|
|
*/
|
|
__pyx_t_3 = PyObject_Length(__pyx_v_text); if (unlikely(__pyx_t_3 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 326; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__pyx_t_2 = (__pyx_t_3 == 0);
|
|
if (__pyx_t_2) {
|
|
|
|
/* "preprocessed_text.py":327
|
|
* assert type(text) == list
|
|
* if len(text) == 0:
|
|
* return Free_form # <<<<<<<<<<<<<<
|
|
* assert isinstance(text[0],Line)
|
|
*
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__Free_form); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 327; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_r = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
goto __pyx_L0;
|
|
goto __pyx_L5;
|
|
}
|
|
__pyx_L5:;
|
|
|
|
/* "preprocessed_text.py":328
|
|
* if len(text) == 0:
|
|
* return Free_form
|
|
* assert isinstance(text[0],Line) # <<<<<<<<<<<<<<
|
|
*
|
|
* re2 = re.compile(r"^\s*[!#]")
|
|
*/
|
|
#ifndef CYTHON_WITHOUT_ASSERTIONS
|
|
__pyx_t_1 = __Pyx_GetItemInt(__pyx_v_text, 0, sizeof(long), PyInt_FromLong); if (!__pyx_t_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 328; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__Line); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 328; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_2 = PyObject_IsInstance(__pyx_t_1, __pyx_t_4); if (unlikely(__pyx_t_2 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 328; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
if (unlikely(!__pyx_t_2)) {
|
|
PyErr_SetNone(PyExc_AssertionError);
|
|
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 328; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
#endif
|
|
|
|
/* "preprocessed_text.py":330
|
|
* assert isinstance(text[0],Line)
|
|
*
|
|
* re2 = re.compile(r"^\s*[!#]") # <<<<<<<<<<<<<<
|
|
* re3 = re.compile(r"^\s*[^ 0-9]+")
|
|
* for line in text:
|
|
*/
|
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__re); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 330; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_t_4, __pyx_n_s__compile); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 330; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__pyx_t_4 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_k_tuple_59), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 330; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_v_re2 = __pyx_t_4;
|
|
__pyx_t_4 = 0;
|
|
|
|
/* "preprocessed_text.py":331
|
|
*
|
|
* re2 = re.compile(r"^\s*[!#]")
|
|
* re3 = re.compile(r"^\s*[^ 0-9]+") # <<<<<<<<<<<<<<
|
|
* for line in text:
|
|
* if type(line) in [ Empty_line, Doc, Openmp, Directive ]:
|
|
*/
|
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__re); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 331; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_t_4, __pyx_n_s__compile); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 331; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__pyx_t_4 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_k_tuple_61), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 331; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_v_re3 = __pyx_t_4;
|
|
__pyx_t_4 = 0;
|
|
|
|
/* "preprocessed_text.py":332
|
|
* re2 = re.compile(r"^\s*[!#]")
|
|
* re3 = re.compile(r"^\s*[^ 0-9]+")
|
|
* for line in text: # <<<<<<<<<<<<<<
|
|
* if type(line) in [ Empty_line, Doc, Openmp, Directive ]:
|
|
* pass
|
|
*/
|
|
if (PyList_CheckExact(__pyx_v_text) || PyTuple_CheckExact(__pyx_v_text)) {
|
|
__pyx_t_4 = __pyx_v_text; __Pyx_INCREF(__pyx_t_4); __pyx_t_3 = 0;
|
|
__pyx_t_5 = NULL;
|
|
} else {
|
|
__pyx_t_3 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_v_text); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 332; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_5 = Py_TYPE(__pyx_t_4)->tp_iternext;
|
|
}
|
|
for (;;) {
|
|
if (PyList_CheckExact(__pyx_t_4)) {
|
|
if (__pyx_t_3 >= PyList_GET_SIZE(__pyx_t_4)) break;
|
|
__pyx_t_1 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_3); __Pyx_INCREF(__pyx_t_1); __pyx_t_3++;
|
|
} else if (PyTuple_CheckExact(__pyx_t_4)) {
|
|
if (__pyx_t_3 >= PyTuple_GET_SIZE(__pyx_t_4)) break;
|
|
__pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_3); __Pyx_INCREF(__pyx_t_1); __pyx_t_3++;
|
|
} else {
|
|
__pyx_t_1 = __pyx_t_5(__pyx_t_4);
|
|
if (unlikely(!__pyx_t_1)) {
|
|
if (PyErr_Occurred()) {
|
|
if (likely(PyErr_ExceptionMatches(PyExc_StopIteration))) PyErr_Clear();
|
|
else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 332; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
break;
|
|
}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
}
|
|
__Pyx_XDECREF(__pyx_v_line);
|
|
__pyx_v_line = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":333
|
|
* re3 = re.compile(r"^\s*[^ 0-9]+")
|
|
* for line in text:
|
|
* if type(line) in [ Empty_line, Doc, Openmp, Directive ]: # <<<<<<<<<<<<<<
|
|
* pass
|
|
* else:
|
|
*/
|
|
__Pyx_INCREF(((PyObject *)Py_TYPE(__pyx_v_line)));
|
|
__pyx_t_1 = ((PyObject *)Py_TYPE(__pyx_v_line));
|
|
__pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__Empty_line); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_7 = PyObject_RichCompare(((PyObject *)__pyx_t_1), __pyx_t_6, Py_EQ); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
if (!((int)__pyx_t_2)) {
|
|
__pyx_t_7 = __Pyx_GetName(__pyx_m, __pyx_n_s__Doc); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__pyx_t_6 = PyObject_RichCompare(((PyObject *)__pyx_t_1), __pyx_t_7, Py_EQ); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
__pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_8 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__pyx_t_9 = ((int)__pyx_t_8);
|
|
} else {
|
|
__pyx_t_9 = ((int)__pyx_t_2);
|
|
}
|
|
if (!__pyx_t_9) {
|
|
__pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__Openmp); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_7 = PyObject_RichCompare(((PyObject *)__pyx_t_1), __pyx_t_6, Py_EQ); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
__pyx_t_8 = ((int)__pyx_t_2);
|
|
} else {
|
|
__pyx_t_8 = __pyx_t_9;
|
|
}
|
|
if (!__pyx_t_8) {
|
|
__pyx_t_7 = __Pyx_GetName(__pyx_m, __pyx_n_s__Directive); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__pyx_t_6 = PyObject_RichCompare(((PyObject *)__pyx_t_1), __pyx_t_7, Py_EQ); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
__pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_9 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__pyx_t_2 = ((int)__pyx_t_9);
|
|
} else {
|
|
__pyx_t_2 = __pyx_t_8;
|
|
}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_8 = __pyx_t_2;
|
|
if (__pyx_t_8) {
|
|
goto __pyx_L8;
|
|
}
|
|
/*else*/ {
|
|
|
|
/* "preprocessed_text.py":336
|
|
* pass
|
|
* else:
|
|
* if len(line.text) > 5: # <<<<<<<<<<<<<<
|
|
* test = line.text[0:5]
|
|
* if test[0] in "Cc#!*":
|
|
*/
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 336; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_10 = PyObject_Length(__pyx_t_1); if (unlikely(__pyx_t_10 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 336; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_8 = (__pyx_t_10 > 5);
|
|
if (__pyx_t_8) {
|
|
|
|
/* "preprocessed_text.py":337
|
|
* else:
|
|
* if len(line.text) > 5:
|
|
* test = line.text[0:5] # <<<<<<<<<<<<<<
|
|
* if test[0] in "Cc#!*":
|
|
* pass
|
|
*/
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 337; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_6 = __Pyx_PySequence_GetSlice(__pyx_t_1, 0, 5); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 337; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__Pyx_XDECREF(__pyx_v_test);
|
|
__pyx_v_test = __pyx_t_6;
|
|
__pyx_t_6 = 0;
|
|
|
|
/* "preprocessed_text.py":338
|
|
* if len(line.text) > 5:
|
|
* test = line.text[0:5]
|
|
* if test[0] in "Cc#!*": # <<<<<<<<<<<<<<
|
|
* pass
|
|
* else:
|
|
*/
|
|
__pyx_t_6 = __Pyx_GetItemInt(__pyx_v_test, 0, sizeof(long), PyInt_FromLong); if (!__pyx_t_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 338; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_8 = ((PySequence_Contains(((PyObject *)__pyx_kp_s_62), __pyx_t_6))); if (unlikely(__pyx_t_8 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 338; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
if (__pyx_t_8) {
|
|
goto __pyx_L10;
|
|
}
|
|
/*else*/ {
|
|
|
|
/* "preprocessed_text.py":341
|
|
* pass
|
|
* else:
|
|
* if re2.match(test) is None and \ # <<<<<<<<<<<<<<
|
|
* re3.match(test) is not None:
|
|
* return Free_form
|
|
*/
|
|
__pyx_t_6 = PyObject_GetAttr(__pyx_v_re2, __pyx_n_s__match); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 341; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 341; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(__pyx_v_test);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_test);
|
|
__Pyx_GIVEREF(__pyx_v_test);
|
|
__pyx_t_7 = PyObject_Call(__pyx_t_6, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 341; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
__pyx_t_8 = (__pyx_t_7 == Py_None);
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
if (__pyx_t_8) {
|
|
|
|
/* "preprocessed_text.py":342
|
|
* else:
|
|
* if re2.match(test) is None and \
|
|
* re3.match(test) is not None: # <<<<<<<<<<<<<<
|
|
* return Free_form
|
|
* if line.text.rstrip()[-1] == '&':
|
|
*/
|
|
__pyx_t_7 = PyObject_GetAttr(__pyx_v_re3, __pyx_n_s__match); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 342; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 342; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(__pyx_v_test);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_test);
|
|
__Pyx_GIVEREF(__pyx_v_test);
|
|
__pyx_t_6 = PyObject_Call(__pyx_t_7, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 342; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
__pyx_t_2 = (__pyx_t_6 != Py_None);
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__pyx_t_9 = __pyx_t_2;
|
|
} else {
|
|
__pyx_t_9 = __pyx_t_8;
|
|
}
|
|
if (__pyx_t_9) {
|
|
|
|
/* "preprocessed_text.py":343
|
|
* if re2.match(test) is None and \
|
|
* re3.match(test) is not None:
|
|
* return Free_form # <<<<<<<<<<<<<<
|
|
* if line.text.rstrip()[-1] == '&':
|
|
* return Free_form
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__Free_form); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_r = __pyx_t_6;
|
|
__pyx_t_6 = 0;
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
goto __pyx_L0;
|
|
goto __pyx_L11;
|
|
}
|
|
__pyx_L11:;
|
|
|
|
/* "preprocessed_text.py":344
|
|
* re3.match(test) is not None:
|
|
* return Free_form
|
|
* if line.text.rstrip()[-1] == '&': # <<<<<<<<<<<<<<
|
|
* return Free_form
|
|
* return Fixed_form
|
|
*/
|
|
__pyx_t_6 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__text); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 344; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_t_6, __pyx_n_s__rstrip); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 344; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__pyx_t_6 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 344; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_1 = __Pyx_GetItemInt(__pyx_t_6, -1, sizeof(long), PyInt_FromLong); if (!__pyx_t_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 344; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__pyx_t_9 = __Pyx_PyString_Equals(__pyx_t_1, ((PyObject *)__pyx_kp_s_63), Py_EQ); if (unlikely(__pyx_t_9 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 344; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
if (__pyx_t_9) {
|
|
|
|
/* "preprocessed_text.py":345
|
|
* return Free_form
|
|
* if line.text.rstrip()[-1] == '&':
|
|
* return Free_form # <<<<<<<<<<<<<<
|
|
* return Fixed_form
|
|
*
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__Free_form); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 345; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_r = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
goto __pyx_L0;
|
|
goto __pyx_L12;
|
|
}
|
|
__pyx_L12:;
|
|
}
|
|
__pyx_L10:;
|
|
goto __pyx_L9;
|
|
}
|
|
__pyx_L9:;
|
|
}
|
|
__pyx_L8:;
|
|
}
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
|
|
/* "preprocessed_text.py":346
|
|
* if line.text.rstrip()[-1] == '&':
|
|
* return Free_form
|
|
* return Fixed_form # <<<<<<<<<<<<<<
|
|
*
|
|
* ######################################################################
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__Fixed_form); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 346; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_r = __pyx_t_4;
|
|
__pyx_t_4 = 0;
|
|
goto __pyx_L0;
|
|
|
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
|
goto __pyx_L0;
|
|
__pyx_L1_error:;
|
|
__Pyx_XDECREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_t_4);
|
|
__Pyx_XDECREF(__pyx_t_6);
|
|
__Pyx_XDECREF(__pyx_t_7);
|
|
__Pyx_AddTraceback("preprocessed_text.form", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__pyx_r = NULL;
|
|
__pyx_L0:;
|
|
__Pyx_XDECREF(__pyx_v_re2);
|
|
__Pyx_XDECREF(__pyx_v_re3);
|
|
__Pyx_XDECREF(__pyx_v_line);
|
|
__Pyx_XDECREF(__pyx_v_test);
|
|
__Pyx_XGIVEREF(__pyx_r);
|
|
__Pyx_RefNannyFinishContext();
|
|
return __pyx_r;
|
|
}
|
|
|
|
/* "preprocessed_text.py":349
|
|
*
|
|
* ######################################################################
|
|
* def add_operators(text): # <<<<<<<<<<<<<<
|
|
* re_incr = re.compile(r"(\s*)(.*)(\+=)(.*$)",re.S)
|
|
* re_decr = re.compile(r"(\s*)(.*)(-=)(.*$)",re.S)
|
|
*/
|
|
|
|
static PyObject *__pyx_pf_17preprocessed_text_5add_operators(PyObject *__pyx_self, PyObject *__pyx_v_text); /*proto*/
|
|
static PyMethodDef __pyx_mdef_17preprocessed_text_5add_operators = {__Pyx_NAMESTR("add_operators"), (PyCFunction)__pyx_pf_17preprocessed_text_5add_operators, METH_O, __Pyx_DOCSTR(0)};
|
|
static PyObject *__pyx_pf_17preprocessed_text_5add_operators(PyObject *__pyx_self, PyObject *__pyx_v_text) {
|
|
PyObject *__pyx_v_re_incr = NULL;
|
|
PyObject *__pyx_v_re_decr = NULL;
|
|
PyObject *__pyx_v_re_mult = NULL;
|
|
PyObject *__pyx_v_result = NULL;
|
|
PyObject *__pyx_v_line = NULL;
|
|
PyObject *__pyx_v_buffer = NULL;
|
|
PyObject *__pyx_r = NULL;
|
|
__Pyx_RefNannyDeclarations
|
|
PyObject *__pyx_t_1 = NULL;
|
|
PyObject *__pyx_t_2 = NULL;
|
|
PyObject *__pyx_t_3 = NULL;
|
|
Py_ssize_t __pyx_t_4;
|
|
PyObject *(*__pyx_t_5)(PyObject *);
|
|
int __pyx_t_6;
|
|
PyObject *__pyx_t_7 = NULL;
|
|
int __pyx_t_8;
|
|
int __pyx_lineno = 0;
|
|
const char *__pyx_filename = NULL;
|
|
int __pyx_clineno = 0;
|
|
__Pyx_RefNannySetupContext("add_operators");
|
|
__pyx_self = __pyx_self;
|
|
|
|
/* "preprocessed_text.py":350
|
|
* ######################################################################
|
|
* def add_operators(text):
|
|
* re_incr = re.compile(r"(\s*)(.*)(\+=)(.*$)",re.S) # <<<<<<<<<<<<<<
|
|
* re_decr = re.compile(r"(\s*)(.*)(-=)(.*$)",re.S)
|
|
* re_mult = re.compile(r"(\s*)(.*)(\*=)(.*$)",re.S)
|
|
*/
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__re); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 350; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_n_s__compile); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 350; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__re); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 350; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_3 = PyObject_GetAttr(__pyx_t_1, __pyx_n_s__S); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 350; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 350; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_64));
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_kp_s_64));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_64));
|
|
PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_3);
|
|
__Pyx_GIVEREF(__pyx_t_3);
|
|
__pyx_t_3 = 0;
|
|
__pyx_t_3 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 350; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
__pyx_v_re_incr = __pyx_t_3;
|
|
__pyx_t_3 = 0;
|
|
|
|
/* "preprocessed_text.py":351
|
|
* def add_operators(text):
|
|
* re_incr = re.compile(r"(\s*)(.*)(\+=)(.*$)",re.S)
|
|
* re_decr = re.compile(r"(\s*)(.*)(-=)(.*$)",re.S) # <<<<<<<<<<<<<<
|
|
* re_mult = re.compile(r"(\s*)(.*)(\*=)(.*$)",re.S)
|
|
* '''Change additional operators'''
|
|
*/
|
|
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__re); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 351; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_t_3, __pyx_n_s__compile); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 351; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__re); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 351; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_t_3, __pyx_n_s__S); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 351; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
__pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 351; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_3));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_65));
|
|
PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_s_65));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_65));
|
|
PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
|
|
__Pyx_GIVEREF(__pyx_t_2);
|
|
__pyx_t_2 = 0;
|
|
__pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 351; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
|
|
__pyx_v_re_decr = __pyx_t_2;
|
|
__pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":352
|
|
* re_incr = re.compile(r"(\s*)(.*)(\+=)(.*$)",re.S)
|
|
* re_decr = re.compile(r"(\s*)(.*)(-=)(.*$)",re.S)
|
|
* re_mult = re.compile(r"(\s*)(.*)(\*=)(.*$)",re.S) # <<<<<<<<<<<<<<
|
|
* '''Change additional operators'''
|
|
* result = []
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__re); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 352; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_3 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__compile); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 352; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__re); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 352; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__S); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 352; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 352; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_66));
|
|
PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_66));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_66));
|
|
PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
|
|
__Pyx_GIVEREF(__pyx_t_1);
|
|
__pyx_t_1 = 0;
|
|
__pyx_t_1 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 352; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
|
__pyx_v_re_mult = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":354
|
|
* re_mult = re.compile(r"(\s*)(.*)(\*=)(.*$)",re.S)
|
|
* '''Change additional operators'''
|
|
* result = [] # <<<<<<<<<<<<<<
|
|
* for line in text:
|
|
* buffer = line.text
|
|
*/
|
|
__pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 354; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__pyx_v_result = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":355
|
|
* '''Change additional operators'''
|
|
* result = []
|
|
* for line in text: # <<<<<<<<<<<<<<
|
|
* buffer = line.text
|
|
* if "+=" in buffer:
|
|
*/
|
|
if (PyList_CheckExact(__pyx_v_text) || PyTuple_CheckExact(__pyx_v_text)) {
|
|
__pyx_t_1 = __pyx_v_text; __Pyx_INCREF(__pyx_t_1); __pyx_t_4 = 0;
|
|
__pyx_t_5 = NULL;
|
|
} else {
|
|
__pyx_t_4 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 355; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_5 = Py_TYPE(__pyx_t_1)->tp_iternext;
|
|
}
|
|
for (;;) {
|
|
if (PyList_CheckExact(__pyx_t_1)) {
|
|
if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_1)) break;
|
|
__pyx_t_2 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_4); __Pyx_INCREF(__pyx_t_2); __pyx_t_4++;
|
|
} else if (PyTuple_CheckExact(__pyx_t_1)) {
|
|
if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_1)) break;
|
|
__pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_4); __Pyx_INCREF(__pyx_t_2); __pyx_t_4++;
|
|
} else {
|
|
__pyx_t_2 = __pyx_t_5(__pyx_t_1);
|
|
if (unlikely(!__pyx_t_2)) {
|
|
if (PyErr_Occurred()) {
|
|
if (likely(PyErr_ExceptionMatches(PyExc_StopIteration))) PyErr_Clear();
|
|
else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 355; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
break;
|
|
}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
}
|
|
__Pyx_XDECREF(__pyx_v_line);
|
|
__pyx_v_line = __pyx_t_2;
|
|
__pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":356
|
|
* result = []
|
|
* for line in text:
|
|
* buffer = line.text # <<<<<<<<<<<<<<
|
|
* if "+=" in buffer:
|
|
* if "if" in buffer:
|
|
*/
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__text); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 356; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_XDECREF(__pyx_v_buffer);
|
|
__pyx_v_buffer = __pyx_t_2;
|
|
__pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":357
|
|
* for line in text:
|
|
* buffer = line.text
|
|
* if "+=" in buffer: # <<<<<<<<<<<<<<
|
|
* if "if" in buffer:
|
|
* re_incr = re.compile(r"(.*)(\))(\s*)(.*)(\+=)(.*$)",re.S)
|
|
*/
|
|
__pyx_t_6 = ((PySequence_Contains(__pyx_v_buffer, ((PyObject *)__pyx_kp_s_67)))); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 357; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
if (__pyx_t_6) {
|
|
|
|
/* "preprocessed_text.py":358
|
|
* buffer = line.text
|
|
* if "+=" in buffer:
|
|
* if "if" in buffer: # <<<<<<<<<<<<<<
|
|
* re_incr = re.compile(r"(.*)(\))(\s*)(.*)(\+=)(.*$)",re.S)
|
|
* line.text = re.sub(re_incr,r'\1\2\4=\4+(\6)', buffer)
|
|
*/
|
|
__pyx_t_6 = ((PySequence_Contains(__pyx_v_buffer, ((PyObject *)__pyx_n_s__if)))); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 358; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
if (__pyx_t_6) {
|
|
|
|
/* "preprocessed_text.py":359
|
|
* if "+=" in buffer:
|
|
* if "if" in buffer:
|
|
* re_incr = re.compile(r"(.*)(\))(\s*)(.*)(\+=)(.*$)",re.S) # <<<<<<<<<<<<<<
|
|
* line.text = re.sub(re_incr,r'\1\2\4=\4+(\6)', buffer)
|
|
* else:
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__re); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 359; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_3 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__compile); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 359; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__re); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 359; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_7 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__S); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 359; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 359; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_68));
|
|
PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_68));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_68));
|
|
PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_7);
|
|
__Pyx_GIVEREF(__pyx_t_7);
|
|
__pyx_t_7 = 0;
|
|
__pyx_t_7 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 359; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
|
__Pyx_DECREF(__pyx_v_re_incr);
|
|
__pyx_v_re_incr = __pyx_t_7;
|
|
__pyx_t_7 = 0;
|
|
|
|
/* "preprocessed_text.py":360
|
|
* if "if" in buffer:
|
|
* re_incr = re.compile(r"(.*)(\))(\s*)(.*)(\+=)(.*$)",re.S)
|
|
* line.text = re.sub(re_incr,r'\1\2\4=\4+(\6)', buffer) # <<<<<<<<<<<<<<
|
|
* else:
|
|
* line.text = re.sub(re_incr,r'\1\2=\2+(\4)', buffer)
|
|
*/
|
|
__pyx_t_7 = __Pyx_GetName(__pyx_m, __pyx_n_s__re); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 360; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_t_7, __pyx_n_s__sub); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 360; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
__pyx_t_7 = PyTuple_New(3); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 360; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_7));
|
|
__Pyx_INCREF(__pyx_v_re_incr);
|
|
PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_v_re_incr);
|
|
__Pyx_GIVEREF(__pyx_v_re_incr);
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_69));
|
|
PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_kp_s_69));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_69));
|
|
__Pyx_INCREF(__pyx_v_buffer);
|
|
PyTuple_SET_ITEM(__pyx_t_7, 2, __pyx_v_buffer);
|
|
__Pyx_GIVEREF(__pyx_v_buffer);
|
|
__pyx_t_3 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_t_7), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 360; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0;
|
|
if (PyObject_SetAttr(__pyx_v_line, __pyx_n_s__text, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 360; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
goto __pyx_L8;
|
|
}
|
|
/*else*/ {
|
|
|
|
/* "preprocessed_text.py":362
|
|
* line.text = re.sub(re_incr,r'\1\2\4=\4+(\6)', buffer)
|
|
* else:
|
|
* line.text = re.sub(re_incr,r'\1\2=\2+(\4)', buffer) # <<<<<<<<<<<<<<
|
|
* elif "-=" in buffer:
|
|
* line.text = re.sub(re_decr,r'\1\2=\2-(\4)', buffer)
|
|
*/
|
|
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__re); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 362; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__pyx_t_7 = PyObject_GetAttr(__pyx_t_3, __pyx_n_s__sub); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 362; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
__pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 362; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_3));
|
|
__Pyx_INCREF(__pyx_v_re_incr);
|
|
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_re_incr);
|
|
__Pyx_GIVEREF(__pyx_v_re_incr);
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_70));
|
|
PyTuple_SET_ITEM(__pyx_t_3, 1, ((PyObject *)__pyx_kp_s_70));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_70));
|
|
__Pyx_INCREF(__pyx_v_buffer);
|
|
PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_buffer);
|
|
__Pyx_GIVEREF(__pyx_v_buffer);
|
|
__pyx_t_2 = PyObject_Call(__pyx_t_7, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 362; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
|
|
if (PyObject_SetAttr(__pyx_v_line, __pyx_n_s__text, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 362; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
}
|
|
__pyx_L8:;
|
|
goto __pyx_L7;
|
|
}
|
|
|
|
/* "preprocessed_text.py":363
|
|
* else:
|
|
* line.text = re.sub(re_incr,r'\1\2=\2+(\4)', buffer)
|
|
* elif "-=" in buffer: # <<<<<<<<<<<<<<
|
|
* line.text = re.sub(re_decr,r'\1\2=\2-(\4)', buffer)
|
|
* elif "*=" in buffer:
|
|
*/
|
|
__pyx_t_6 = ((PySequence_Contains(__pyx_v_buffer, ((PyObject *)__pyx_kp_s_71)))); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 363; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
if (__pyx_t_6) {
|
|
|
|
/* "preprocessed_text.py":364
|
|
* line.text = re.sub(re_incr,r'\1\2=\2+(\4)', buffer)
|
|
* elif "-=" in buffer:
|
|
* line.text = re.sub(re_decr,r'\1\2=\2-(\4)', buffer) # <<<<<<<<<<<<<<
|
|
* elif "*=" in buffer:
|
|
* line.text = re.sub(re_mult,r'\1\2=\2*(\4)', buffer)
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__re); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 364; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_3 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__sub); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 364; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 364; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
|
__Pyx_INCREF(__pyx_v_re_decr);
|
|
PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_re_decr);
|
|
__Pyx_GIVEREF(__pyx_v_re_decr);
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_72));
|
|
PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_kp_s_72));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_72));
|
|
__Pyx_INCREF(__pyx_v_buffer);
|
|
PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_buffer);
|
|
__Pyx_GIVEREF(__pyx_v_buffer);
|
|
__pyx_t_7 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 364; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
|
if (PyObject_SetAttr(__pyx_v_line, __pyx_n_s__text, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 364; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
goto __pyx_L7;
|
|
}
|
|
|
|
/* "preprocessed_text.py":365
|
|
* elif "-=" in buffer:
|
|
* line.text = re.sub(re_decr,r'\1\2=\2-(\4)', buffer)
|
|
* elif "*=" in buffer: # <<<<<<<<<<<<<<
|
|
* line.text = re.sub(re_mult,r'\1\2=\2*(\4)', buffer)
|
|
* result.append(line)
|
|
*/
|
|
__pyx_t_6 = ((PySequence_Contains(__pyx_v_buffer, ((PyObject *)__pyx_kp_s_73)))); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 365; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
if (__pyx_t_6) {
|
|
|
|
/* "preprocessed_text.py":366
|
|
* line.text = re.sub(re_decr,r'\1\2=\2-(\4)', buffer)
|
|
* elif "*=" in buffer:
|
|
* line.text = re.sub(re_mult,r'\1\2=\2*(\4)', buffer) # <<<<<<<<<<<<<<
|
|
* result.append(line)
|
|
* return result
|
|
*/
|
|
__pyx_t_7 = __Pyx_GetName(__pyx_m, __pyx_n_s__re); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 366; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_t_7, __pyx_n_s__sub); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 366; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
__pyx_t_7 = PyTuple_New(3); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 366; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_7));
|
|
__Pyx_INCREF(__pyx_v_re_mult);
|
|
PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_v_re_mult);
|
|
__Pyx_GIVEREF(__pyx_v_re_mult);
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_74));
|
|
PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_kp_s_74));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_74));
|
|
__Pyx_INCREF(__pyx_v_buffer);
|
|
PyTuple_SET_ITEM(__pyx_t_7, 2, __pyx_v_buffer);
|
|
__Pyx_GIVEREF(__pyx_v_buffer);
|
|
__pyx_t_3 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_t_7), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 366; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0;
|
|
if (PyObject_SetAttr(__pyx_v_line, __pyx_n_s__text, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 366; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
goto __pyx_L7;
|
|
}
|
|
__pyx_L7:;
|
|
|
|
/* "preprocessed_text.py":367
|
|
* elif "*=" in buffer:
|
|
* line.text = re.sub(re_mult,r'\1\2=\2*(\4)', buffer)
|
|
* result.append(line) # <<<<<<<<<<<<<<
|
|
* return result
|
|
*
|
|
*/
|
|
if (unlikely(((PyObject *)__pyx_v_result) == Py_None)) {
|
|
PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%s'", "append"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 367; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
__pyx_t_8 = PyList_Append(__pyx_v_result, __pyx_v_line); if (unlikely(__pyx_t_8 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 367; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":368
|
|
* line.text = re.sub(re_mult,r'\1\2=\2*(\4)', buffer)
|
|
* result.append(line)
|
|
* return result # <<<<<<<<<<<<<<
|
|
*
|
|
* ######################################################################
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__Pyx_INCREF(((PyObject *)__pyx_v_result));
|
|
__pyx_r = ((PyObject *)__pyx_v_result);
|
|
goto __pyx_L0;
|
|
|
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
|
goto __pyx_L0;
|
|
__pyx_L1_error:;
|
|
__Pyx_XDECREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_t_2);
|
|
__Pyx_XDECREF(__pyx_t_3);
|
|
__Pyx_XDECREF(__pyx_t_7);
|
|
__Pyx_AddTraceback("preprocessed_text.add_operators", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__pyx_r = NULL;
|
|
__pyx_L0:;
|
|
__Pyx_XDECREF(__pyx_v_re_incr);
|
|
__Pyx_XDECREF(__pyx_v_re_decr);
|
|
__Pyx_XDECREF(__pyx_v_re_mult);
|
|
__Pyx_XDECREF(__pyx_v_result);
|
|
__Pyx_XDECREF(__pyx_v_line);
|
|
__Pyx_XDECREF(__pyx_v_buffer);
|
|
__Pyx_XGIVEREF(__pyx_r);
|
|
__Pyx_RefNannyFinishContext();
|
|
return __pyx_r;
|
|
}
|
|
|
|
/* "preprocessed_text.py":375
|
|
* result = []
|
|
*
|
|
* def remove_after_bang(line): # <<<<<<<<<<<<<<
|
|
* match = re_comment.match(line)
|
|
* if match is None:
|
|
*/
|
|
|
|
static PyObject *__pyx_pf_17preprocessed_text_15remove_comments_remove_after_bang(PyObject *__pyx_self, PyObject *__pyx_v_line); /*proto*/
|
|
static PyMethodDef __pyx_mdef_17preprocessed_text_15remove_comments_remove_after_bang = {__Pyx_NAMESTR("remove_after_bang"), (PyCFunction)__pyx_pf_17preprocessed_text_15remove_comments_remove_after_bang, METH_O, __Pyx_DOCSTR(0)};
|
|
static PyObject *__pyx_pf_17preprocessed_text_15remove_comments_remove_after_bang(PyObject *__pyx_self, PyObject *__pyx_v_line) {
|
|
PyObject *__pyx_v_match = NULL;
|
|
PyObject *__pyx_r = NULL;
|
|
__Pyx_RefNannyDeclarations
|
|
PyObject *__pyx_t_1 = NULL;
|
|
PyObject *__pyx_t_2 = NULL;
|
|
PyObject *__pyx_t_3 = NULL;
|
|
int __pyx_t_4;
|
|
int __pyx_lineno = 0;
|
|
const char *__pyx_filename = NULL;
|
|
int __pyx_clineno = 0;
|
|
__Pyx_RefNannySetupContext("remove_after_bang");
|
|
__pyx_self = __pyx_self;
|
|
|
|
/* "preprocessed_text.py":376
|
|
*
|
|
* def remove_after_bang(line):
|
|
* match = re_comment.match(line) # <<<<<<<<<<<<<<
|
|
* if match is None:
|
|
* return line
|
|
*/
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__re_comment); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 376; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_n_s__match); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 376; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 376; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
__pyx_t_3 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 376; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
__pyx_v_match = __pyx_t_3;
|
|
__pyx_t_3 = 0;
|
|
|
|
/* "preprocessed_text.py":377
|
|
* def remove_after_bang(line):
|
|
* match = re_comment.match(line)
|
|
* if match is None: # <<<<<<<<<<<<<<
|
|
* return line
|
|
* else:
|
|
*/
|
|
__pyx_t_4 = (__pyx_v_match == Py_None);
|
|
if (__pyx_t_4) {
|
|
|
|
/* "preprocessed_text.py":378
|
|
* match = re_comment.match(line)
|
|
* if match is None:
|
|
* return line # <<<<<<<<<<<<<<
|
|
* else:
|
|
* return re_comment.split(line)[1].rstrip()
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
__pyx_r = __pyx_v_line;
|
|
goto __pyx_L0;
|
|
goto __pyx_L5;
|
|
}
|
|
/*else*/ {
|
|
|
|
/* "preprocessed_text.py":380
|
|
* return line
|
|
* else:
|
|
* return re_comment.split(line)[1].rstrip() # <<<<<<<<<<<<<<
|
|
*
|
|
* if form == Free_form:
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__re_comment); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 380; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_t_3, __pyx_n_s__split); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 380; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
__pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 380; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_3));
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
__pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 380; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
|
|
__pyx_t_3 = __Pyx_GetItemInt(__pyx_t_2, 1, sizeof(long), PyInt_FromLong); if (!__pyx_t_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 380; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_t_3, __pyx_n_s__rstrip); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 380; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
__pyx_t_3 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 380; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_r = __pyx_t_3;
|
|
__pyx_t_3 = 0;
|
|
goto __pyx_L0;
|
|
}
|
|
__pyx_L5:;
|
|
|
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
|
goto __pyx_L0;
|
|
__pyx_L1_error:;
|
|
__Pyx_XDECREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_t_2);
|
|
__Pyx_XDECREF(__pyx_t_3);
|
|
__Pyx_AddTraceback("preprocessed_text.remove_comments.remove_after_bang", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__pyx_r = NULL;
|
|
__pyx_L0:;
|
|
__Pyx_XDECREF(__pyx_v_match);
|
|
__Pyx_XGIVEREF(__pyx_r);
|
|
__Pyx_RefNannyFinishContext();
|
|
return __pyx_r;
|
|
}
|
|
|
|
/* "preprocessed_text.py":371
|
|
*
|
|
* ######################################################################
|
|
* def remove_comments(text,form): # <<<<<<<<<<<<<<
|
|
* '''Remove all comments'''
|
|
* result = []
|
|
*/
|
|
|
|
static PyObject *__pyx_pf_17preprocessed_text_6remove_comments(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
|
|
static char __pyx_doc_17preprocessed_text_6remove_comments[] = "Remove all comments";
|
|
static PyMethodDef __pyx_mdef_17preprocessed_text_6remove_comments = {__Pyx_NAMESTR("remove_comments"), (PyCFunction)__pyx_pf_17preprocessed_text_6remove_comments, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(__pyx_doc_17preprocessed_text_6remove_comments)};
|
|
static PyObject *__pyx_pf_17preprocessed_text_6remove_comments(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
|
|
PyObject *__pyx_v_text = 0;
|
|
PyObject *__pyx_v_form = 0;
|
|
PyObject *__pyx_v_result = NULL;
|
|
PyObject *__pyx_v_remove_after_bang = 0;
|
|
PyObject *__pyx_v_line = NULL;
|
|
PyObject *__pyx_v_newline = NULL;
|
|
PyObject *__pyx_r = NULL;
|
|
__Pyx_RefNannyDeclarations
|
|
PyObject *__pyx_t_1 = NULL;
|
|
PyObject *__pyx_t_2 = NULL;
|
|
int __pyx_t_3;
|
|
Py_ssize_t __pyx_t_4;
|
|
PyObject *(*__pyx_t_5)(PyObject *);
|
|
PyObject *__pyx_t_6 = NULL;
|
|
PyObject *__pyx_t_7 = NULL;
|
|
int __pyx_t_8;
|
|
int __pyx_t_9;
|
|
int __pyx_t_10;
|
|
int __pyx_lineno = 0;
|
|
const char *__pyx_filename = NULL;
|
|
int __pyx_clineno = 0;
|
|
static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__text,&__pyx_n_s__form,0};
|
|
__Pyx_RefNannySetupContext("remove_comments");
|
|
__pyx_self = __pyx_self;
|
|
{
|
|
PyObject* values[2] = {0,0};
|
|
if (unlikely(__pyx_kwds)) {
|
|
Py_ssize_t kw_args;
|
|
switch (PyTuple_GET_SIZE(__pyx_args)) {
|
|
case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
|
|
case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
|
|
case 0: break;
|
|
default: goto __pyx_L5_argtuple_error;
|
|
}
|
|
kw_args = PyDict_Size(__pyx_kwds);
|
|
switch (PyTuple_GET_SIZE(__pyx_args)) {
|
|
case 0:
|
|
values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__text);
|
|
if (likely(values[0])) kw_args--;
|
|
else goto __pyx_L5_argtuple_error;
|
|
case 1:
|
|
values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__form);
|
|
if (likely(values[1])) kw_args--;
|
|
else {
|
|
__Pyx_RaiseArgtupleInvalid("remove_comments", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 371; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
|
|
}
|
|
}
|
|
if (unlikely(kw_args > 0)) {
|
|
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "remove_comments") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 371; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
|
|
}
|
|
} else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
|
|
goto __pyx_L5_argtuple_error;
|
|
} else {
|
|
values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
|
|
values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
|
|
}
|
|
__pyx_v_text = values[0];
|
|
__pyx_v_form = values[1];
|
|
}
|
|
goto __pyx_L4_argument_unpacking_done;
|
|
__pyx_L5_argtuple_error:;
|
|
__Pyx_RaiseArgtupleInvalid("remove_comments", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 371; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
|
|
__pyx_L3_error:;
|
|
__Pyx_AddTraceback("preprocessed_text.remove_comments", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__Pyx_RefNannyFinishContext();
|
|
return NULL;
|
|
__pyx_L4_argument_unpacking_done:;
|
|
|
|
/* "preprocessed_text.py":373
|
|
* def remove_comments(text,form):
|
|
* '''Remove all comments'''
|
|
* result = [] # <<<<<<<<<<<<<<
|
|
*
|
|
* def remove_after_bang(line):
|
|
*/
|
|
__pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 373; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__pyx_v_result = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":375
|
|
* result = []
|
|
*
|
|
* def remove_after_bang(line): # <<<<<<<<<<<<<<
|
|
* match = re_comment.match(line)
|
|
* if match is None:
|
|
*/
|
|
__pyx_t_1 = __pyx_binding_PyCFunctionType_NewEx(&__pyx_mdef_17preprocessed_text_15remove_comments_remove_after_bang, NULL, __pyx_n_s__preprocessed_text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 375; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_v_remove_after_bang);
|
|
__pyx_v_remove_after_bang = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":382
|
|
* return re_comment.split(line)[1].rstrip()
|
|
*
|
|
* if form == Free_form: # <<<<<<<<<<<<<<
|
|
* for line in text:
|
|
* if type(line) in [ Openmp, Doc, Directive] :
|
|
*/
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__Free_form); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 382; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = PyObject_RichCompare(__pyx_v_form, __pyx_t_1, Py_EQ); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 382; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 382; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
if (__pyx_t_3) {
|
|
|
|
/* "preprocessed_text.py":383
|
|
*
|
|
* if form == Free_form:
|
|
* for line in text: # <<<<<<<<<<<<<<
|
|
* if type(line) in [ Openmp, Doc, Directive] :
|
|
* result.append(line)
|
|
*/
|
|
if (PyList_CheckExact(__pyx_v_text) || PyTuple_CheckExact(__pyx_v_text)) {
|
|
__pyx_t_2 = __pyx_v_text; __Pyx_INCREF(__pyx_t_2); __pyx_t_4 = 0;
|
|
__pyx_t_5 = NULL;
|
|
} else {
|
|
__pyx_t_4 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_v_text); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 383; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_5 = Py_TYPE(__pyx_t_2)->tp_iternext;
|
|
}
|
|
for (;;) {
|
|
if (PyList_CheckExact(__pyx_t_2)) {
|
|
if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_2)) break;
|
|
__pyx_t_1 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_1); __pyx_t_4++;
|
|
} else if (PyTuple_CheckExact(__pyx_t_2)) {
|
|
if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_2)) break;
|
|
__pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_1); __pyx_t_4++;
|
|
} else {
|
|
__pyx_t_1 = __pyx_t_5(__pyx_t_2);
|
|
if (unlikely(!__pyx_t_1)) {
|
|
if (PyErr_Occurred()) {
|
|
if (likely(PyErr_ExceptionMatches(PyExc_StopIteration))) PyErr_Clear();
|
|
else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 383; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
break;
|
|
}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
}
|
|
__Pyx_XDECREF(__pyx_v_line);
|
|
__pyx_v_line = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":384
|
|
* if form == Free_form:
|
|
* for line in text:
|
|
* if type(line) in [ Openmp, Doc, Directive] : # <<<<<<<<<<<<<<
|
|
* result.append(line)
|
|
* elif type(line) == Empty_line:
|
|
*/
|
|
__Pyx_INCREF(((PyObject *)Py_TYPE(__pyx_v_line)));
|
|
__pyx_t_1 = ((PyObject *)Py_TYPE(__pyx_v_line));
|
|
__pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__Openmp); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 384; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_7 = PyObject_RichCompare(((PyObject *)__pyx_t_1), __pyx_t_6, Py_EQ); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 384; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 384; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
if (!((int)__pyx_t_3)) {
|
|
__pyx_t_7 = __Pyx_GetName(__pyx_m, __pyx_n_s__Doc); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 384; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__pyx_t_6 = PyObject_RichCompare(((PyObject *)__pyx_t_1), __pyx_t_7, Py_EQ); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 384; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
__pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_8 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 384; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__pyx_t_9 = ((int)__pyx_t_8);
|
|
} else {
|
|
__pyx_t_9 = ((int)__pyx_t_3);
|
|
}
|
|
if (!__pyx_t_9) {
|
|
__pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__Directive); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 384; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_7 = PyObject_RichCompare(((PyObject *)__pyx_t_1), __pyx_t_6, Py_EQ); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 384; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 384; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
__pyx_t_8 = ((int)__pyx_t_3);
|
|
} else {
|
|
__pyx_t_8 = __pyx_t_9;
|
|
}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_9 = __pyx_t_8;
|
|
if (__pyx_t_9) {
|
|
|
|
/* "preprocessed_text.py":385
|
|
* for line in text:
|
|
* if type(line) in [ Openmp, Doc, Directive] :
|
|
* result.append(line) # <<<<<<<<<<<<<<
|
|
* elif type(line) == Empty_line:
|
|
* pass
|
|
*/
|
|
if (unlikely(((PyObject *)__pyx_v_result) == Py_None)) {
|
|
PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%s'", "append"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 385; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
__pyx_t_10 = PyList_Append(__pyx_v_result, __pyx_v_line); if (unlikely(__pyx_t_10 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 385; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
goto __pyx_L9;
|
|
}
|
|
|
|
/* "preprocessed_text.py":386
|
|
* if type(line) in [ Openmp, Doc, Directive] :
|
|
* result.append(line)
|
|
* elif type(line) == Empty_line: # <<<<<<<<<<<<<<
|
|
* pass
|
|
* else:
|
|
*/
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__Empty_line); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 386; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_7 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_line)), __pyx_t_1, Py_EQ); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 386; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely(__pyx_t_9 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 386; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
if (__pyx_t_9) {
|
|
goto __pyx_L9;
|
|
}
|
|
/*else*/ {
|
|
|
|
/* "preprocessed_text.py":389
|
|
* pass
|
|
* else:
|
|
* newline = line.text.lstrip() # <<<<<<<<<<<<<<
|
|
* if newline == "" or newline[0] == "!":
|
|
* pass
|
|
*/
|
|
__pyx_t_7 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__text); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 389; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_t_7, __pyx_n_s__lstrip); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 389; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
__pyx_t_7 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 389; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__Pyx_XDECREF(__pyx_v_newline);
|
|
__pyx_v_newline = __pyx_t_7;
|
|
__pyx_t_7 = 0;
|
|
|
|
/* "preprocessed_text.py":390
|
|
* else:
|
|
* newline = line.text.lstrip()
|
|
* if newline == "" or newline[0] == "!": # <<<<<<<<<<<<<<
|
|
* pass
|
|
* else:
|
|
*/
|
|
__pyx_t_9 = __Pyx_PyString_Equals(__pyx_v_newline, ((PyObject *)__pyx_kp_s_33), Py_EQ); if (unlikely(__pyx_t_9 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 390; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
if (!__pyx_t_9) {
|
|
__pyx_t_7 = __Pyx_GetItemInt(__pyx_v_newline, 0, sizeof(long), PyInt_FromLong); if (!__pyx_t_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 390; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__pyx_t_8 = __Pyx_PyString_Equals(__pyx_t_7, ((PyObject *)__pyx_kp_s_3), Py_EQ); if (unlikely(__pyx_t_8 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 390; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
__pyx_t_3 = __pyx_t_8;
|
|
} else {
|
|
__pyx_t_3 = __pyx_t_9;
|
|
}
|
|
if (__pyx_t_3) {
|
|
goto __pyx_L10;
|
|
}
|
|
/*else*/ {
|
|
|
|
/* "preprocessed_text.py":393
|
|
* pass
|
|
* else:
|
|
* line.text = remove_after_bang(line.text) # <<<<<<<<<<<<<<
|
|
* result.append(line)
|
|
* return result
|
|
*/
|
|
__pyx_t_7 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__text); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 393; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 393; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_7);
|
|
__Pyx_GIVEREF(__pyx_t_7);
|
|
__pyx_t_7 = 0;
|
|
__pyx_t_7 = PyObject_Call(__pyx_v_remove_after_bang, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 393; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
if (PyObject_SetAttr(__pyx_v_line, __pyx_n_s__text, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 393; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
|
|
/* "preprocessed_text.py":394
|
|
* else:
|
|
* line.text = remove_after_bang(line.text)
|
|
* result.append(line) # <<<<<<<<<<<<<<
|
|
* return result
|
|
* else:
|
|
*/
|
|
if (unlikely(((PyObject *)__pyx_v_result) == Py_None)) {
|
|
PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%s'", "append"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 394; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
__pyx_t_10 = PyList_Append(__pyx_v_result, __pyx_v_line); if (unlikely(__pyx_t_10 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 394; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
__pyx_L10:;
|
|
}
|
|
__pyx_L9:;
|
|
}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":395
|
|
* line.text = remove_after_bang(line.text)
|
|
* result.append(line)
|
|
* return result # <<<<<<<<<<<<<<
|
|
* else:
|
|
* for line in text:
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__Pyx_INCREF(((PyObject *)__pyx_v_result));
|
|
__pyx_r = ((PyObject *)__pyx_v_result);
|
|
goto __pyx_L0;
|
|
goto __pyx_L6;
|
|
}
|
|
/*else*/ {
|
|
|
|
/* "preprocessed_text.py":397
|
|
* return result
|
|
* else:
|
|
* for line in text: # <<<<<<<<<<<<<<
|
|
* if type(line) in [ Openmp, Doc, Directive ]:
|
|
* result.append(line)
|
|
*/
|
|
if (PyList_CheckExact(__pyx_v_text) || PyTuple_CheckExact(__pyx_v_text)) {
|
|
__pyx_t_2 = __pyx_v_text; __Pyx_INCREF(__pyx_t_2); __pyx_t_4 = 0;
|
|
__pyx_t_5 = NULL;
|
|
} else {
|
|
__pyx_t_4 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_v_text); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_5 = Py_TYPE(__pyx_t_2)->tp_iternext;
|
|
}
|
|
for (;;) {
|
|
if (PyList_CheckExact(__pyx_t_2)) {
|
|
if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_2)) break;
|
|
__pyx_t_7 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_7); __pyx_t_4++;
|
|
} else if (PyTuple_CheckExact(__pyx_t_2)) {
|
|
if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_2)) break;
|
|
__pyx_t_7 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_7); __pyx_t_4++;
|
|
} else {
|
|
__pyx_t_7 = __pyx_t_5(__pyx_t_2);
|
|
if (unlikely(!__pyx_t_7)) {
|
|
if (PyErr_Occurred()) {
|
|
if (likely(PyErr_ExceptionMatches(PyExc_StopIteration))) PyErr_Clear();
|
|
else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
break;
|
|
}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
}
|
|
__Pyx_XDECREF(__pyx_v_line);
|
|
__pyx_v_line = __pyx_t_7;
|
|
__pyx_t_7 = 0;
|
|
|
|
/* "preprocessed_text.py":398
|
|
* else:
|
|
* for line in text:
|
|
* if type(line) in [ Openmp, Doc, Directive ]: # <<<<<<<<<<<<<<
|
|
* result.append(line)
|
|
* elif type(line) == Empty_line:
|
|
*/
|
|
__Pyx_INCREF(((PyObject *)Py_TYPE(__pyx_v_line)));
|
|
__pyx_t_7 = ((PyObject *)Py_TYPE(__pyx_v_line));
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__Openmp); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 398; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_6 = PyObject_RichCompare(((PyObject *)__pyx_t_7), __pyx_t_1, Py_EQ); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 398; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 398; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
if (!((int)__pyx_t_3)) {
|
|
__pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__Doc); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 398; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_1 = PyObject_RichCompare(((PyObject *)__pyx_t_7), __pyx_t_6, Py_EQ); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 398; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_9 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 398; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_8 = ((int)__pyx_t_9);
|
|
} else {
|
|
__pyx_t_8 = ((int)__pyx_t_3);
|
|
}
|
|
if (!__pyx_t_8) {
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__Directive); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 398; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_6 = PyObject_RichCompare(((PyObject *)__pyx_t_7), __pyx_t_1, Py_EQ); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 398; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 398; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__pyx_t_9 = ((int)__pyx_t_3);
|
|
} else {
|
|
__pyx_t_9 = __pyx_t_8;
|
|
}
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
__pyx_t_8 = __pyx_t_9;
|
|
if (__pyx_t_8) {
|
|
|
|
/* "preprocessed_text.py":399
|
|
* for line in text:
|
|
* if type(line) in [ Openmp, Doc, Directive ]:
|
|
* result.append(line) # <<<<<<<<<<<<<<
|
|
* elif type(line) == Empty_line:
|
|
* pass
|
|
*/
|
|
if (unlikely(((PyObject *)__pyx_v_result) == Py_None)) {
|
|
PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%s'", "append"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 399; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
__pyx_t_10 = PyList_Append(__pyx_v_result, __pyx_v_line); if (unlikely(__pyx_t_10 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 399; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
goto __pyx_L13;
|
|
}
|
|
|
|
/* "preprocessed_text.py":400
|
|
* if type(line) in [ Openmp, Doc, Directive ]:
|
|
* result.append(line)
|
|
* elif type(line) == Empty_line: # <<<<<<<<<<<<<<
|
|
* pass
|
|
* else:
|
|
*/
|
|
__pyx_t_7 = __Pyx_GetName(__pyx_m, __pyx_n_s__Empty_line); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 400; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__pyx_t_6 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_line)), __pyx_t_7, Py_EQ); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 400; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
__pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely(__pyx_t_8 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 400; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
if (__pyx_t_8) {
|
|
goto __pyx_L13;
|
|
}
|
|
/*else*/ {
|
|
|
|
/* "preprocessed_text.py":403
|
|
* pass
|
|
* else:
|
|
* newline = line.text.lstrip() # <<<<<<<<<<<<<<
|
|
* if newline == "" or newline[0] == "!":
|
|
* pass
|
|
*/
|
|
__pyx_t_6 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__text); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 403; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_7 = PyObject_GetAttr(__pyx_t_6, __pyx_n_s__lstrip); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 403; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__pyx_t_6 = PyObject_Call(__pyx_t_7, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 403; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
__Pyx_XDECREF(__pyx_v_newline);
|
|
__pyx_v_newline = __pyx_t_6;
|
|
__pyx_t_6 = 0;
|
|
|
|
/* "preprocessed_text.py":404
|
|
* else:
|
|
* newline = line.text.lstrip()
|
|
* if newline == "" or newline[0] == "!": # <<<<<<<<<<<<<<
|
|
* pass
|
|
* else:
|
|
*/
|
|
__pyx_t_8 = __Pyx_PyString_Equals(__pyx_v_newline, ((PyObject *)__pyx_kp_s_33), Py_EQ); if (unlikely(__pyx_t_8 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 404; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
if (!__pyx_t_8) {
|
|
__pyx_t_6 = __Pyx_GetItemInt(__pyx_v_newline, 0, sizeof(long), PyInt_FromLong); if (!__pyx_t_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 404; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_9 = __Pyx_PyString_Equals(__pyx_t_6, ((PyObject *)__pyx_kp_s_3), Py_EQ); if (unlikely(__pyx_t_9 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 404; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__pyx_t_3 = __pyx_t_9;
|
|
} else {
|
|
__pyx_t_3 = __pyx_t_8;
|
|
}
|
|
if (__pyx_t_3) {
|
|
goto __pyx_L14;
|
|
}
|
|
/*else*/ {
|
|
|
|
/* "preprocessed_text.py":407
|
|
* pass
|
|
* else:
|
|
* line.text = remove_after_bang(line.text) # <<<<<<<<<<<<<<
|
|
* if line.text[0] in "#123456789 ":
|
|
* result.append(line)
|
|
*/
|
|
__pyx_t_6 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__text); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 407; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 407; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_7));
|
|
PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6);
|
|
__Pyx_GIVEREF(__pyx_t_6);
|
|
__pyx_t_6 = 0;
|
|
__pyx_t_6 = PyObject_Call(__pyx_v_remove_after_bang, ((PyObject *)__pyx_t_7), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 407; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0;
|
|
if (PyObject_SetAttr(__pyx_v_line, __pyx_n_s__text, __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 407; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
|
|
/* "preprocessed_text.py":408
|
|
* else:
|
|
* line.text = remove_after_bang(line.text)
|
|
* if line.text[0] in "#123456789 ": # <<<<<<<<<<<<<<
|
|
* result.append(line)
|
|
* return result
|
|
*/
|
|
__pyx_t_6 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__text); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 408; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_7 = __Pyx_GetItemInt(__pyx_t_6, 0, sizeof(long), PyInt_FromLong); if (!__pyx_t_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 408; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__pyx_t_3 = ((PySequence_Contains(((PyObject *)__pyx_kp_s_75), __pyx_t_7))); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 408; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
if (__pyx_t_3) {
|
|
|
|
/* "preprocessed_text.py":409
|
|
* line.text = remove_after_bang(line.text)
|
|
* if line.text[0] in "#123456789 ":
|
|
* result.append(line) # <<<<<<<<<<<<<<
|
|
* return result
|
|
*
|
|
*/
|
|
if (unlikely(((PyObject *)__pyx_v_result) == Py_None)) {
|
|
PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%s'", "append"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 409; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
__pyx_t_10 = PyList_Append(__pyx_v_result, __pyx_v_line); if (unlikely(__pyx_t_10 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 409; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
goto __pyx_L15;
|
|
}
|
|
__pyx_L15:;
|
|
}
|
|
__pyx_L14:;
|
|
}
|
|
__pyx_L13:;
|
|
}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":410
|
|
* if line.text[0] in "#123456789 ":
|
|
* result.append(line)
|
|
* return result # <<<<<<<<<<<<<<
|
|
*
|
|
* ######################################################################
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__Pyx_INCREF(((PyObject *)__pyx_v_result));
|
|
__pyx_r = ((PyObject *)__pyx_v_result);
|
|
goto __pyx_L0;
|
|
}
|
|
__pyx_L6:;
|
|
|
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
|
goto __pyx_L0;
|
|
__pyx_L1_error:;
|
|
__Pyx_XDECREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_t_2);
|
|
__Pyx_XDECREF(__pyx_t_6);
|
|
__Pyx_XDECREF(__pyx_t_7);
|
|
__Pyx_AddTraceback("preprocessed_text.remove_comments", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__pyx_r = NULL;
|
|
__pyx_L0:;
|
|
__Pyx_XDECREF(__pyx_v_result);
|
|
__Pyx_XDECREF(__pyx_v_remove_after_bang);
|
|
__Pyx_XDECREF(__pyx_v_line);
|
|
__Pyx_XDECREF(__pyx_v_newline);
|
|
__Pyx_XGIVEREF(__pyx_r);
|
|
__Pyx_RefNannyFinishContext();
|
|
return __pyx_r;
|
|
}
|
|
|
|
/* "preprocessed_text.py":413
|
|
*
|
|
* ######################################################################
|
|
* def remove_continuation(text,form): # <<<<<<<<<<<<<<
|
|
* '''Removes continuation lines'''
|
|
* result = []
|
|
*/
|
|
|
|
static PyObject *__pyx_pf_17preprocessed_text_7remove_continuation(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
|
|
static char __pyx_doc_17preprocessed_text_7remove_continuation[] = "Removes continuation lines";
|
|
static PyMethodDef __pyx_mdef_17preprocessed_text_7remove_continuation = {__Pyx_NAMESTR("remove_continuation"), (PyCFunction)__pyx_pf_17preprocessed_text_7remove_continuation, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(__pyx_doc_17preprocessed_text_7remove_continuation)};
|
|
static PyObject *__pyx_pf_17preprocessed_text_7remove_continuation(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
|
|
PyObject *__pyx_v_text = 0;
|
|
PyObject *__pyx_v_form = 0;
|
|
PyObject *__pyx_v_result = NULL;
|
|
PyObject *__pyx_v_buffer = NULL;
|
|
PyObject *__pyx_v_number = NULL;
|
|
PyObject *__pyx_v_t = NULL;
|
|
PyObject *__pyx_v_line = NULL;
|
|
PyObject *__pyx_v_newline = NULL;
|
|
PyObject *__pyx_v_rev_text = NULL;
|
|
int __pyx_v_is_continuation;
|
|
PyObject *__pyx_r = NULL;
|
|
__Pyx_RefNannyDeclarations
|
|
PyObject *__pyx_t_1 = NULL;
|
|
PyObject *__pyx_t_2 = NULL;
|
|
int __pyx_t_3;
|
|
Py_ssize_t __pyx_t_4;
|
|
PyObject *(*__pyx_t_5)(PyObject *);
|
|
PyObject *__pyx_t_6 = NULL;
|
|
PyObject *__pyx_t_7 = NULL;
|
|
int __pyx_t_8;
|
|
Py_ssize_t __pyx_t_9;
|
|
int __pyx_lineno = 0;
|
|
const char *__pyx_filename = NULL;
|
|
int __pyx_clineno = 0;
|
|
static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__text,&__pyx_n_s__form,0};
|
|
__Pyx_RefNannySetupContext("remove_continuation");
|
|
__pyx_self = __pyx_self;
|
|
{
|
|
PyObject* values[2] = {0,0};
|
|
if (unlikely(__pyx_kwds)) {
|
|
Py_ssize_t kw_args;
|
|
switch (PyTuple_GET_SIZE(__pyx_args)) {
|
|
case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
|
|
case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
|
|
case 0: break;
|
|
default: goto __pyx_L5_argtuple_error;
|
|
}
|
|
kw_args = PyDict_Size(__pyx_kwds);
|
|
switch (PyTuple_GET_SIZE(__pyx_args)) {
|
|
case 0:
|
|
values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__text);
|
|
if (likely(values[0])) kw_args--;
|
|
else goto __pyx_L5_argtuple_error;
|
|
case 1:
|
|
values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__form);
|
|
if (likely(values[1])) kw_args--;
|
|
else {
|
|
__Pyx_RaiseArgtupleInvalid("remove_continuation", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 413; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
|
|
}
|
|
}
|
|
if (unlikely(kw_args > 0)) {
|
|
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "remove_continuation") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 413; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
|
|
}
|
|
} else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
|
|
goto __pyx_L5_argtuple_error;
|
|
} else {
|
|
values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
|
|
values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
|
|
}
|
|
__pyx_v_text = values[0];
|
|
__pyx_v_form = values[1];
|
|
}
|
|
goto __pyx_L4_argument_unpacking_done;
|
|
__pyx_L5_argtuple_error:;
|
|
__Pyx_RaiseArgtupleInvalid("remove_continuation", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 413; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
|
|
__pyx_L3_error:;
|
|
__Pyx_AddTraceback("preprocessed_text.remove_continuation", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__Pyx_RefNannyFinishContext();
|
|
return NULL;
|
|
__pyx_L4_argument_unpacking_done:;
|
|
|
|
/* "preprocessed_text.py":415
|
|
* def remove_continuation(text,form):
|
|
* '''Removes continuation lines'''
|
|
* result = [] # <<<<<<<<<<<<<<
|
|
* buffer = ""
|
|
* number = 0
|
|
*/
|
|
__pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 415; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__pyx_v_result = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":416
|
|
* '''Removes continuation lines'''
|
|
* result = []
|
|
* buffer = "" # <<<<<<<<<<<<<<
|
|
* number = 0
|
|
* t = None
|
|
*/
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_33));
|
|
__pyx_v_buffer = ((PyObject *)__pyx_kp_s_33);
|
|
|
|
/* "preprocessed_text.py":417
|
|
* result = []
|
|
* buffer = ""
|
|
* number = 0 # <<<<<<<<<<<<<<
|
|
* t = None
|
|
* if form == Free_form:
|
|
*/
|
|
__Pyx_INCREF(__pyx_int_0);
|
|
__pyx_v_number = __pyx_int_0;
|
|
|
|
/* "preprocessed_text.py":418
|
|
* buffer = ""
|
|
* number = 0
|
|
* t = None # <<<<<<<<<<<<<<
|
|
* if form == Free_form:
|
|
* for line in text:
|
|
*/
|
|
__Pyx_INCREF(Py_None);
|
|
__pyx_v_t = Py_None;
|
|
|
|
/* "preprocessed_text.py":419
|
|
* number = 0
|
|
* t = None
|
|
* if form == Free_form: # <<<<<<<<<<<<<<
|
|
* for line in text:
|
|
* if line.text[-1] == '&':
|
|
*/
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__Free_form); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 419; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = PyObject_RichCompare(__pyx_v_form, __pyx_t_1, Py_EQ); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 419; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 419; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
if (__pyx_t_3) {
|
|
|
|
/* "preprocessed_text.py":420
|
|
* t = None
|
|
* if form == Free_form:
|
|
* for line in text: # <<<<<<<<<<<<<<
|
|
* if line.text[-1] == '&':
|
|
* buffer = "%s%s\n"%(buffer,line.text)
|
|
*/
|
|
if (PyList_CheckExact(__pyx_v_text) || PyTuple_CheckExact(__pyx_v_text)) {
|
|
__pyx_t_2 = __pyx_v_text; __Pyx_INCREF(__pyx_t_2); __pyx_t_4 = 0;
|
|
__pyx_t_5 = NULL;
|
|
} else {
|
|
__pyx_t_4 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_v_text); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 420; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_5 = Py_TYPE(__pyx_t_2)->tp_iternext;
|
|
}
|
|
for (;;) {
|
|
if (PyList_CheckExact(__pyx_t_2)) {
|
|
if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_2)) break;
|
|
__pyx_t_1 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_1); __pyx_t_4++;
|
|
} else if (PyTuple_CheckExact(__pyx_t_2)) {
|
|
if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_2)) break;
|
|
__pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_1); __pyx_t_4++;
|
|
} else {
|
|
__pyx_t_1 = __pyx_t_5(__pyx_t_2);
|
|
if (unlikely(!__pyx_t_1)) {
|
|
if (PyErr_Occurred()) {
|
|
if (likely(PyErr_ExceptionMatches(PyExc_StopIteration))) PyErr_Clear();
|
|
else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 420; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
break;
|
|
}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
}
|
|
__Pyx_XDECREF(__pyx_v_line);
|
|
__pyx_v_line = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":421
|
|
* if form == Free_form:
|
|
* for line in text:
|
|
* if line.text[-1] == '&': # <<<<<<<<<<<<<<
|
|
* buffer = "%s%s\n"%(buffer,line.text)
|
|
* if number == 0:
|
|
*/
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 421; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_6 = __Pyx_GetItemInt(__pyx_t_1, -1, sizeof(long), PyInt_FromLong); if (!__pyx_t_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 421; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_3 = __Pyx_PyString_Equals(__pyx_t_6, ((PyObject *)__pyx_kp_s_63), Py_EQ); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 421; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
if (__pyx_t_3) {
|
|
|
|
/* "preprocessed_text.py":422
|
|
* for line in text:
|
|
* if line.text[-1] == '&':
|
|
* buffer = "%s%s\n"%(buffer,line.text) # <<<<<<<<<<<<<<
|
|
* if number == 0:
|
|
* t = type(line)
|
|
*/
|
|
__pyx_t_6 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__text); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 422; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 422; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(__pyx_v_buffer);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_buffer);
|
|
__Pyx_GIVEREF(__pyx_v_buffer);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_6);
|
|
__Pyx_GIVEREF(__pyx_t_6);
|
|
__pyx_t_6 = 0;
|
|
__pyx_t_6 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_76), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 422; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_6));
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(__pyx_v_buffer);
|
|
__pyx_v_buffer = ((PyObject *)__pyx_t_6);
|
|
__pyx_t_6 = 0;
|
|
|
|
/* "preprocessed_text.py":423
|
|
* if line.text[-1] == '&':
|
|
* buffer = "%s%s\n"%(buffer,line.text)
|
|
* if number == 0: # <<<<<<<<<<<<<<
|
|
* t = type(line)
|
|
* number = line.i
|
|
*/
|
|
__pyx_t_6 = PyObject_RichCompare(__pyx_v_number, __pyx_int_0, Py_EQ); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 423; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 423; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
if (__pyx_t_3) {
|
|
|
|
/* "preprocessed_text.py":424
|
|
* buffer = "%s%s\n"%(buffer,line.text)
|
|
* if number == 0:
|
|
* t = type(line) # <<<<<<<<<<<<<<
|
|
* number = line.i
|
|
* else:
|
|
*/
|
|
__Pyx_INCREF(((PyObject *)Py_TYPE(__pyx_v_line)));
|
|
__Pyx_DECREF(__pyx_v_t);
|
|
__pyx_v_t = ((PyObject *)Py_TYPE(__pyx_v_line));
|
|
|
|
/* "preprocessed_text.py":425
|
|
* if number == 0:
|
|
* t = type(line)
|
|
* number = line.i # <<<<<<<<<<<<<<
|
|
* else:
|
|
* if number != 0:
|
|
*/
|
|
__pyx_t_6 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__i); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 425; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_v_number);
|
|
__pyx_v_number = __pyx_t_6;
|
|
__pyx_t_6 = 0;
|
|
goto __pyx_L10;
|
|
}
|
|
__pyx_L10:;
|
|
goto __pyx_L9;
|
|
}
|
|
/*else*/ {
|
|
|
|
/* "preprocessed_text.py":427
|
|
* number = line.i
|
|
* else:
|
|
* if number != 0: # <<<<<<<<<<<<<<
|
|
* newline = t(number, \
|
|
* "%s%s"%(buffer,line.text), \
|
|
*/
|
|
__pyx_t_6 = PyObject_RichCompare(__pyx_v_number, __pyx_int_0, Py_NE); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 427; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 427; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
if (__pyx_t_3) {
|
|
|
|
/* "preprocessed_text.py":429
|
|
* if number != 0:
|
|
* newline = t(number, \
|
|
* "%s%s"%(buffer,line.text), \ # <<<<<<<<<<<<<<
|
|
* line.filename)
|
|
* line = newline
|
|
*/
|
|
__pyx_t_6 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__text); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 429; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 429; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(__pyx_v_buffer);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_buffer);
|
|
__Pyx_GIVEREF(__pyx_v_buffer);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_6);
|
|
__Pyx_GIVEREF(__pyx_t_6);
|
|
__pyx_t_6 = 0;
|
|
__pyx_t_6 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_77), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 429; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_6));
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":430
|
|
* newline = t(number, \
|
|
* "%s%s"%(buffer,line.text), \
|
|
* line.filename) # <<<<<<<<<<<<<<
|
|
* line = newline
|
|
* number = 0
|
|
*/
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__filename); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 430; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_7 = PyTuple_New(3); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 428; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_7));
|
|
__Pyx_INCREF(__pyx_v_number);
|
|
PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_v_number);
|
|
__Pyx_GIVEREF(__pyx_v_number);
|
|
PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_t_6));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_t_6));
|
|
PyTuple_SET_ITEM(__pyx_t_7, 2, __pyx_t_1);
|
|
__Pyx_GIVEREF(__pyx_t_1);
|
|
__pyx_t_6 = 0;
|
|
__pyx_t_1 = 0;
|
|
__pyx_t_1 = PyObject_Call(__pyx_v_t, ((PyObject *)__pyx_t_7), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 428; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0;
|
|
__Pyx_XDECREF(__pyx_v_newline);
|
|
__pyx_v_newline = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":431
|
|
* "%s%s"%(buffer,line.text), \
|
|
* line.filename)
|
|
* line = newline # <<<<<<<<<<<<<<
|
|
* number = 0
|
|
* buffer = ""
|
|
*/
|
|
__Pyx_INCREF(__pyx_v_newline);
|
|
__Pyx_DECREF(__pyx_v_line);
|
|
__pyx_v_line = __pyx_v_newline;
|
|
|
|
/* "preprocessed_text.py":432
|
|
* line.filename)
|
|
* line = newline
|
|
* number = 0 # <<<<<<<<<<<<<<
|
|
* buffer = ""
|
|
* result.append(line)
|
|
*/
|
|
__Pyx_INCREF(__pyx_int_0);
|
|
__Pyx_DECREF(__pyx_v_number);
|
|
__pyx_v_number = __pyx_int_0;
|
|
|
|
/* "preprocessed_text.py":433
|
|
* line = newline
|
|
* number = 0
|
|
* buffer = "" # <<<<<<<<<<<<<<
|
|
* result.append(line)
|
|
* else:
|
|
*/
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_33));
|
|
__Pyx_DECREF(__pyx_v_buffer);
|
|
__pyx_v_buffer = ((PyObject *)__pyx_kp_s_33);
|
|
goto __pyx_L11;
|
|
}
|
|
__pyx_L11:;
|
|
|
|
/* "preprocessed_text.py":434
|
|
* number = 0
|
|
* buffer = ""
|
|
* result.append(line) # <<<<<<<<<<<<<<
|
|
* else:
|
|
* rev_text = list(text)
|
|
*/
|
|
if (unlikely(((PyObject *)__pyx_v_result) == Py_None)) {
|
|
PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%s'", "append"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 434; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
__pyx_t_8 = PyList_Append(__pyx_v_result, __pyx_v_line); if (unlikely(__pyx_t_8 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 434; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
__pyx_L9:;
|
|
}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
goto __pyx_L6;
|
|
}
|
|
/*else*/ {
|
|
|
|
/* "preprocessed_text.py":436
|
|
* result.append(line)
|
|
* else:
|
|
* rev_text = list(text) # <<<<<<<<<<<<<<
|
|
* rev_text.reverse()
|
|
* for line in rev_text:
|
|
*/
|
|
__pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 436; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
|
__Pyx_INCREF(__pyx_v_text);
|
|
PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_text);
|
|
__Pyx_GIVEREF(__pyx_v_text);
|
|
__pyx_t_1 = PyObject_Call(((PyObject *)((PyObject*)(&PyList_Type))), ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 436; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
|
__pyx_v_rev_text = ((PyObject*)__pyx_t_1);
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":437
|
|
* else:
|
|
* rev_text = list(text)
|
|
* rev_text.reverse() # <<<<<<<<<<<<<<
|
|
* for line in rev_text:
|
|
* is_continuation = False
|
|
*/
|
|
if (unlikely(((PyObject *)__pyx_v_rev_text) == Py_None)) {
|
|
PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%s'", "reverse"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 437; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
__pyx_t_8 = PyList_Reverse(__pyx_v_rev_text); if (unlikely(__pyx_t_8 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 437; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
|
/* "preprocessed_text.py":438
|
|
* rev_text = list(text)
|
|
* rev_text.reverse()
|
|
* for line in rev_text: # <<<<<<<<<<<<<<
|
|
* is_continuation = False
|
|
* if type(line) == Simple_line:
|
|
*/
|
|
if (unlikely(((PyObject *)__pyx_v_rev_text) == Py_None)) {
|
|
PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 438; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
__pyx_t_1 = ((PyObject *)__pyx_v_rev_text); __Pyx_INCREF(__pyx_t_1); __pyx_t_4 = 0;
|
|
for (;;) {
|
|
if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_1)) break;
|
|
__pyx_t_2 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_4); __Pyx_INCREF(__pyx_t_2); __pyx_t_4++;
|
|
__Pyx_XDECREF(__pyx_v_line);
|
|
__pyx_v_line = __pyx_t_2;
|
|
__pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":439
|
|
* rev_text.reverse()
|
|
* for line in rev_text:
|
|
* is_continuation = False # <<<<<<<<<<<<<<
|
|
* if type(line) == Simple_line:
|
|
* if len(line.text) >= 6:
|
|
*/
|
|
__pyx_v_is_continuation = 0;
|
|
|
|
/* "preprocessed_text.py":440
|
|
* for line in rev_text:
|
|
* is_continuation = False
|
|
* if type(line) == Simple_line: # <<<<<<<<<<<<<<
|
|
* if len(line.text) >= 6:
|
|
* if line.text[5] != ' ':
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Simple_line); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 440; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_7 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_line)), __pyx_t_2, Py_EQ); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 440; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 440; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
if (__pyx_t_3) {
|
|
|
|
/* "preprocessed_text.py":441
|
|
* is_continuation = False
|
|
* if type(line) == Simple_line:
|
|
* if len(line.text) >= 6: # <<<<<<<<<<<<<<
|
|
* if line.text[5] != ' ':
|
|
* is_continuation = True
|
|
*/
|
|
__pyx_t_7 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__text); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 441; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__pyx_t_9 = PyObject_Length(__pyx_t_7); if (unlikely(__pyx_t_9 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 441; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
__pyx_t_3 = (__pyx_t_9 >= 6);
|
|
if (__pyx_t_3) {
|
|
|
|
/* "preprocessed_text.py":442
|
|
* if type(line) == Simple_line:
|
|
* if len(line.text) >= 6:
|
|
* if line.text[5] != ' ': # <<<<<<<<<<<<<<
|
|
* is_continuation = True
|
|
* if is_continuation:
|
|
*/
|
|
__pyx_t_7 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__text); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 442; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__pyx_t_2 = __Pyx_GetItemInt(__pyx_t_7, 5, sizeof(long), PyInt_FromLong); if (!__pyx_t_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 442; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
__pyx_t_3 = __Pyx_PyString_Equals(__pyx_t_2, ((PyObject *)__pyx_kp_s_7), Py_NE); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 442; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
if (__pyx_t_3) {
|
|
|
|
/* "preprocessed_text.py":443
|
|
* if len(line.text) >= 6:
|
|
* if line.text[5] != ' ':
|
|
* is_continuation = True # <<<<<<<<<<<<<<
|
|
* if is_continuation:
|
|
* buffer = "&\n%s %s %s"%(line.text[:5],line.text[6:],buffer)
|
|
*/
|
|
__pyx_v_is_continuation = 1;
|
|
goto __pyx_L16;
|
|
}
|
|
__pyx_L16:;
|
|
goto __pyx_L15;
|
|
}
|
|
__pyx_L15:;
|
|
goto __pyx_L14;
|
|
}
|
|
__pyx_L14:;
|
|
|
|
/* "preprocessed_text.py":444
|
|
* if line.text[5] != ' ':
|
|
* is_continuation = True
|
|
* if is_continuation: # <<<<<<<<<<<<<<
|
|
* buffer = "&\n%s %s %s"%(line.text[:5],line.text[6:],buffer)
|
|
* else:
|
|
*/
|
|
if (__pyx_v_is_continuation) {
|
|
|
|
/* "preprocessed_text.py":445
|
|
* is_continuation = True
|
|
* if is_continuation:
|
|
* buffer = "&\n%s %s %s"%(line.text[:5],line.text[6:],buffer) # <<<<<<<<<<<<<<
|
|
* else:
|
|
* line.text = line.text+buffer
|
|
*/
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__text); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 445; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_7 = __Pyx_PySequence_GetSlice(__pyx_t_2, 0, 5); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 445; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__text); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 445; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_6 = __Pyx_PySequence_GetSlice(__pyx_t_2, 6, PY_SSIZE_T_MAX); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 445; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 445; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
|
PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7);
|
|
__Pyx_GIVEREF(__pyx_t_7);
|
|
PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_6);
|
|
__Pyx_GIVEREF(__pyx_t_6);
|
|
__Pyx_INCREF(__pyx_v_buffer);
|
|
PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_buffer);
|
|
__Pyx_GIVEREF(__pyx_v_buffer);
|
|
__pyx_t_7 = 0;
|
|
__pyx_t_6 = 0;
|
|
__pyx_t_6 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_78), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 445; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_6));
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
|
__Pyx_DECREF(__pyx_v_buffer);
|
|
__pyx_v_buffer = ((PyObject *)__pyx_t_6);
|
|
__pyx_t_6 = 0;
|
|
goto __pyx_L17;
|
|
}
|
|
/*else*/ {
|
|
|
|
/* "preprocessed_text.py":447
|
|
* buffer = "&\n%s %s %s"%(line.text[:5],line.text[6:],buffer)
|
|
* else:
|
|
* line.text = line.text+buffer # <<<<<<<<<<<<<<
|
|
* result.insert(0,line)
|
|
* buffer = ""
|
|
*/
|
|
__pyx_t_6 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__text); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 447; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_2 = PyNumber_Add(__pyx_t_6, __pyx_v_buffer); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 447; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
if (PyObject_SetAttr(__pyx_v_line, __pyx_n_s__text, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 447; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":448
|
|
* else:
|
|
* line.text = line.text+buffer
|
|
* result.insert(0,line) # <<<<<<<<<<<<<<
|
|
* buffer = ""
|
|
* return result
|
|
*/
|
|
if (unlikely(((PyObject *)__pyx_v_result) == Py_None)) {
|
|
PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%s'", "insert"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 448; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
__pyx_t_8 = PyList_Insert(__pyx_v_result, 0, __pyx_v_line); if (unlikely(__pyx_t_8 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 448; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
|
/* "preprocessed_text.py":449
|
|
* line.text = line.text+buffer
|
|
* result.insert(0,line)
|
|
* buffer = "" # <<<<<<<<<<<<<<
|
|
* return result
|
|
*
|
|
*/
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_33));
|
|
__Pyx_DECREF(__pyx_v_buffer);
|
|
__pyx_v_buffer = ((PyObject *)__pyx_kp_s_33);
|
|
}
|
|
__pyx_L17:;
|
|
}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
}
|
|
__pyx_L6:;
|
|
|
|
/* "preprocessed_text.py":450
|
|
* result.insert(0,line)
|
|
* buffer = ""
|
|
* return result # <<<<<<<<<<<<<<
|
|
*
|
|
*
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__Pyx_INCREF(((PyObject *)__pyx_v_result));
|
|
__pyx_r = ((PyObject *)__pyx_v_result);
|
|
goto __pyx_L0;
|
|
|
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
|
goto __pyx_L0;
|
|
__pyx_L1_error:;
|
|
__Pyx_XDECREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_t_2);
|
|
__Pyx_XDECREF(__pyx_t_6);
|
|
__Pyx_XDECREF(__pyx_t_7);
|
|
__Pyx_AddTraceback("preprocessed_text.remove_continuation", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__pyx_r = NULL;
|
|
__pyx_L0:;
|
|
__Pyx_XDECREF(__pyx_v_result);
|
|
__Pyx_XDECREF(__pyx_v_buffer);
|
|
__Pyx_XDECREF(__pyx_v_number);
|
|
__Pyx_XDECREF(__pyx_v_t);
|
|
__Pyx_XDECREF(__pyx_v_line);
|
|
__Pyx_XDECREF(__pyx_v_newline);
|
|
__Pyx_XDECREF(__pyx_v_rev_text);
|
|
__Pyx_XGIVEREF(__pyx_r);
|
|
__Pyx_RefNannyFinishContext();
|
|
return __pyx_r;
|
|
}
|
|
|
|
/* "preprocessed_text.py":457
|
|
* '''Processes simple statements'''
|
|
*
|
|
* def process_irp_rw(line,rw,t): # <<<<<<<<<<<<<<
|
|
* assert type(line) == t
|
|
* buffer = line.text.split()
|
|
*/
|
|
|
|
static PyObject *__pyx_pf_17preprocessed_text_21irp_simple_statements_process_irp_rw(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
|
|
static PyMethodDef __pyx_mdef_17preprocessed_text_21irp_simple_statements_process_irp_rw = {__Pyx_NAMESTR("process_irp_rw"), (PyCFunction)__pyx_pf_17preprocessed_text_21irp_simple_statements_process_irp_rw, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(0)};
|
|
static PyObject *__pyx_pf_17preprocessed_text_21irp_simple_statements_process_irp_rw(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
|
|
PyObject *__pyx_v_line = 0;
|
|
PyObject *__pyx_v_rw = 0;
|
|
PyObject *__pyx_v_t = 0;
|
|
PyObject *__pyx_v_buffer = NULL;
|
|
PyObject *__pyx_v_dummy = NULL;
|
|
PyObject *__pyx_v_variable = NULL;
|
|
PyObject *__pyx_v_num = NULL;
|
|
PyObject *__pyx_v_i = NULL;
|
|
PyObject *__pyx_v_f = NULL;
|
|
PyObject *__pyx_v_txt = NULL;
|
|
PyObject *__pyx_v_result = NULL;
|
|
PyObject *__pyx_r = NULL;
|
|
__Pyx_RefNannyDeclarations
|
|
PyObject *__pyx_t_1 = NULL;
|
|
int __pyx_t_2;
|
|
PyObject *__pyx_t_3 = NULL;
|
|
Py_ssize_t __pyx_t_4;
|
|
PyObject *__pyx_t_5 = NULL;
|
|
PyObject *(*__pyx_t_6)(PyObject *);
|
|
PyObject *__pyx_t_7 = NULL;
|
|
PyObject *__pyx_t_8 = NULL;
|
|
PyObject *__pyx_t_9 = NULL;
|
|
PyObject *__pyx_t_10 = NULL;
|
|
int __pyx_lineno = 0;
|
|
const char *__pyx_filename = NULL;
|
|
int __pyx_clineno = 0;
|
|
static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__line,&__pyx_n_s__rw,&__pyx_n_s__t,0};
|
|
__Pyx_RefNannySetupContext("process_irp_rw");
|
|
__pyx_self = __pyx_self;
|
|
{
|
|
PyObject* values[3] = {0,0,0};
|
|
if (unlikely(__pyx_kwds)) {
|
|
Py_ssize_t kw_args;
|
|
switch (PyTuple_GET_SIZE(__pyx_args)) {
|
|
case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
|
|
case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
|
|
case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
|
|
case 0: break;
|
|
default: goto __pyx_L5_argtuple_error;
|
|
}
|
|
kw_args = PyDict_Size(__pyx_kwds);
|
|
switch (PyTuple_GET_SIZE(__pyx_args)) {
|
|
case 0:
|
|
values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__line);
|
|
if (likely(values[0])) kw_args--;
|
|
else goto __pyx_L5_argtuple_error;
|
|
case 1:
|
|
values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__rw);
|
|
if (likely(values[1])) kw_args--;
|
|
else {
|
|
__Pyx_RaiseArgtupleInvalid("process_irp_rw", 1, 3, 3, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 457; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
|
|
}
|
|
case 2:
|
|
values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__t);
|
|
if (likely(values[2])) kw_args--;
|
|
else {
|
|
__Pyx_RaiseArgtupleInvalid("process_irp_rw", 1, 3, 3, 2); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 457; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
|
|
}
|
|
}
|
|
if (unlikely(kw_args > 0)) {
|
|
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "process_irp_rw") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 457; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
|
|
}
|
|
} else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
|
|
goto __pyx_L5_argtuple_error;
|
|
} else {
|
|
values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
|
|
values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
|
|
values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
|
|
}
|
|
__pyx_v_line = values[0];
|
|
__pyx_v_rw = values[1];
|
|
__pyx_v_t = values[2];
|
|
}
|
|
goto __pyx_L4_argument_unpacking_done;
|
|
__pyx_L5_argtuple_error:;
|
|
__Pyx_RaiseArgtupleInvalid("process_irp_rw", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 457; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
|
|
__pyx_L3_error:;
|
|
__Pyx_AddTraceback("preprocessed_text.irp_simple_statements.process_irp_rw", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__Pyx_RefNannyFinishContext();
|
|
return NULL;
|
|
__pyx_L4_argument_unpacking_done:;
|
|
|
|
/* "preprocessed_text.py":458
|
|
*
|
|
* def process_irp_rw(line,rw,t):
|
|
* assert type(line) == t # <<<<<<<<<<<<<<
|
|
* buffer = line.text.split()
|
|
* if len(buffer) == 2:
|
|
*/
|
|
#ifndef CYTHON_WITHOUT_ASSERTIONS
|
|
__pyx_t_1 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_line)), __pyx_v_t, Py_EQ); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 458; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 458; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
if (unlikely(!__pyx_t_2)) {
|
|
PyErr_SetNone(PyExc_AssertionError);
|
|
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 458; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
#endif
|
|
|
|
/* "preprocessed_text.py":459
|
|
* def process_irp_rw(line,rw,t):
|
|
* assert type(line) == t
|
|
* buffer = line.text.split() # <<<<<<<<<<<<<<
|
|
* if len(buffer) == 2:
|
|
* dummy, variable = buffer
|
|
*/
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 459; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_3 = PyObject_GetAttr(__pyx_t_1, __pyx_n_s__split); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 459; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_1 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 459; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
__pyx_v_buffer = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":460
|
|
* assert type(line) == t
|
|
* buffer = line.text.split()
|
|
* if len(buffer) == 2: # <<<<<<<<<<<<<<
|
|
* dummy, variable = buffer
|
|
* num = "0"
|
|
*/
|
|
__pyx_t_4 = PyObject_Length(__pyx_v_buffer); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 460; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__pyx_t_2 = (__pyx_t_4 == 2);
|
|
if (__pyx_t_2) {
|
|
|
|
/* "preprocessed_text.py":461
|
|
* buffer = line.text.split()
|
|
* if len(buffer) == 2:
|
|
* dummy, variable = buffer # <<<<<<<<<<<<<<
|
|
* num = "0"
|
|
* elif len(buffer) == 3:
|
|
*/
|
|
if ((likely(PyTuple_CheckExact(__pyx_v_buffer))) || (PyList_CheckExact(__pyx_v_buffer))) {
|
|
PyObject* sequence = __pyx_v_buffer;
|
|
if (likely(PyTuple_CheckExact(sequence))) {
|
|
if (unlikely(PyTuple_GET_SIZE(sequence) != 2)) {
|
|
if (PyTuple_GET_SIZE(sequence) > 2) __Pyx_RaiseTooManyValuesError(2);
|
|
else __Pyx_RaiseNeedMoreValuesError(PyTuple_GET_SIZE(sequence));
|
|
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 461; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
__pyx_t_1 = PyTuple_GET_ITEM(sequence, 0);
|
|
__pyx_t_3 = PyTuple_GET_ITEM(sequence, 1);
|
|
} else {
|
|
if (unlikely(PyList_GET_SIZE(sequence) != 2)) {
|
|
if (PyList_GET_SIZE(sequence) > 2) __Pyx_RaiseTooManyValuesError(2);
|
|
else __Pyx_RaiseNeedMoreValuesError(PyList_GET_SIZE(sequence));
|
|
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 461; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
__pyx_t_1 = PyList_GET_ITEM(sequence, 0);
|
|
__pyx_t_3 = PyList_GET_ITEM(sequence, 1);
|
|
}
|
|
__Pyx_INCREF(__pyx_t_1);
|
|
__Pyx_INCREF(__pyx_t_3);
|
|
} else {
|
|
Py_ssize_t index = -1;
|
|
__pyx_t_5 = PyObject_GetIter(__pyx_v_buffer); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 461; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__pyx_t_6 = Py_TYPE(__pyx_t_5)->tp_iternext;
|
|
index = 0; __pyx_t_1 = __pyx_t_6(__pyx_t_5); if (unlikely(!__pyx_t_1)) goto __pyx_L7_unpacking_failed;
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
index = 1; __pyx_t_3 = __pyx_t_6(__pyx_t_5); if (unlikely(!__pyx_t_3)) goto __pyx_L7_unpacking_failed;
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
if (__Pyx_IternextUnpackEndCheck(__pyx_t_6(__pyx_t_5), 2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 461; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
goto __pyx_L8_unpacking_done;
|
|
__pyx_L7_unpacking_failed:;
|
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
if (PyErr_Occurred() && PyErr_ExceptionMatches(PyExc_StopIteration)) PyErr_Clear();
|
|
if (!PyErr_Occurred()) __Pyx_RaiseNeedMoreValuesError(index);
|
|
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 461; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__pyx_L8_unpacking_done:;
|
|
}
|
|
__pyx_v_dummy = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
__pyx_v_variable = __pyx_t_3;
|
|
__pyx_t_3 = 0;
|
|
|
|
/* "preprocessed_text.py":462
|
|
* if len(buffer) == 2:
|
|
* dummy, variable = buffer
|
|
* num = "0" # <<<<<<<<<<<<<<
|
|
* elif len(buffer) == 3:
|
|
* dummy, variable, num = buffer
|
|
*/
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s__0));
|
|
__pyx_v_num = ((PyObject *)__pyx_kp_s__0);
|
|
goto __pyx_L6;
|
|
}
|
|
|
|
/* "preprocessed_text.py":463
|
|
* dummy, variable = buffer
|
|
* num = "0"
|
|
* elif len(buffer) == 3: # <<<<<<<<<<<<<<
|
|
* dummy, variable, num = buffer
|
|
* else:
|
|
*/
|
|
__pyx_t_4 = PyObject_Length(__pyx_v_buffer); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 463; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__pyx_t_2 = (__pyx_t_4 == 3);
|
|
if (__pyx_t_2) {
|
|
|
|
/* "preprocessed_text.py":464
|
|
* num = "0"
|
|
* elif len(buffer) == 3:
|
|
* dummy, variable, num = buffer # <<<<<<<<<<<<<<
|
|
* else:
|
|
* error.fail(line,"Error in IRP_%s statement"%(rw,))
|
|
*/
|
|
if ((likely(PyTuple_CheckExact(__pyx_v_buffer))) || (PyList_CheckExact(__pyx_v_buffer))) {
|
|
PyObject* sequence = __pyx_v_buffer;
|
|
if (likely(PyTuple_CheckExact(sequence))) {
|
|
if (unlikely(PyTuple_GET_SIZE(sequence) != 3)) {
|
|
if (PyTuple_GET_SIZE(sequence) > 3) __Pyx_RaiseTooManyValuesError(3);
|
|
else __Pyx_RaiseNeedMoreValuesError(PyTuple_GET_SIZE(sequence));
|
|
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 464; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
__pyx_t_3 = PyTuple_GET_ITEM(sequence, 0);
|
|
__pyx_t_1 = PyTuple_GET_ITEM(sequence, 1);
|
|
__pyx_t_5 = PyTuple_GET_ITEM(sequence, 2);
|
|
} else {
|
|
if (unlikely(PyList_GET_SIZE(sequence) != 3)) {
|
|
if (PyList_GET_SIZE(sequence) > 3) __Pyx_RaiseTooManyValuesError(3);
|
|
else __Pyx_RaiseNeedMoreValuesError(PyList_GET_SIZE(sequence));
|
|
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 464; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
__pyx_t_3 = PyList_GET_ITEM(sequence, 0);
|
|
__pyx_t_1 = PyList_GET_ITEM(sequence, 1);
|
|
__pyx_t_5 = PyList_GET_ITEM(sequence, 2);
|
|
}
|
|
__Pyx_INCREF(__pyx_t_3);
|
|
__Pyx_INCREF(__pyx_t_1);
|
|
__Pyx_INCREF(__pyx_t_5);
|
|
} else {
|
|
Py_ssize_t index = -1;
|
|
__pyx_t_7 = PyObject_GetIter(__pyx_v_buffer); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 464; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__pyx_t_6 = Py_TYPE(__pyx_t_7)->tp_iternext;
|
|
index = 0; __pyx_t_3 = __pyx_t_6(__pyx_t_7); if (unlikely(!__pyx_t_3)) goto __pyx_L9_unpacking_failed;
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
index = 1; __pyx_t_1 = __pyx_t_6(__pyx_t_7); if (unlikely(!__pyx_t_1)) goto __pyx_L9_unpacking_failed;
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
index = 2; __pyx_t_5 = __pyx_t_6(__pyx_t_7); if (unlikely(!__pyx_t_5)) goto __pyx_L9_unpacking_failed;
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
if (__Pyx_IternextUnpackEndCheck(__pyx_t_6(__pyx_t_7), 3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 464; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
goto __pyx_L10_unpacking_done;
|
|
__pyx_L9_unpacking_failed:;
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
if (PyErr_Occurred() && PyErr_ExceptionMatches(PyExc_StopIteration)) PyErr_Clear();
|
|
if (!PyErr_Occurred()) __Pyx_RaiseNeedMoreValuesError(index);
|
|
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 464; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__pyx_L10_unpacking_done:;
|
|
}
|
|
__pyx_v_dummy = __pyx_t_3;
|
|
__pyx_t_3 = 0;
|
|
__pyx_v_variable = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
__pyx_v_num = __pyx_t_5;
|
|
__pyx_t_5 = 0;
|
|
goto __pyx_L6;
|
|
}
|
|
/*else*/ {
|
|
|
|
/* "preprocessed_text.py":466
|
|
* dummy, variable, num = buffer
|
|
* else:
|
|
* error.fail(line,"Error in IRP_%s statement"%(rw,)) # <<<<<<<<<<<<<<
|
|
* variable = variable.lower()
|
|
* i = line.i
|
|
*/
|
|
__pyx_t_5 = __Pyx_GetName(__pyx_m, __pyx_n_s__error); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 466; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_t_5, __pyx_n_s__fail); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 466; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
__pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 466; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_5));
|
|
__Pyx_INCREF(__pyx_v_rw);
|
|
PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_rw);
|
|
__Pyx_GIVEREF(__pyx_v_rw);
|
|
__pyx_t_3 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_79), ((PyObject *)__pyx_t_5)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 466; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_3));
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
|
|
__pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 466; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_5));
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
PyTuple_SET_ITEM(__pyx_t_5, 1, ((PyObject *)__pyx_t_3));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_t_3));
|
|
__pyx_t_3 = 0;
|
|
__pyx_t_3 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_5), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 466; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
}
|
|
__pyx_L6:;
|
|
if (unlikely(!__pyx_v_variable)) { __Pyx_RaiseUnboundLocalError("variable"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 467; __pyx_clineno = __LINE__; goto __pyx_L1_error;} }__pyx_t_3 = PyObject_GetAttr(__pyx_v_variable, __pyx_n_s__lower); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 467; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
|
/* "preprocessed_text.py":467
|
|
* else:
|
|
* error.fail(line,"Error in IRP_%s statement"%(rw,))
|
|
* variable = variable.lower() # <<<<<<<<<<<<<<
|
|
* i = line.i
|
|
* f = line.filename
|
|
*/
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__pyx_t_5 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 467; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
__Pyx_DECREF(__pyx_v_variable);
|
|
__pyx_v_variable = __pyx_t_5;
|
|
__pyx_t_5 = 0;
|
|
|
|
/* "preprocessed_text.py":468
|
|
* error.fail(line,"Error in IRP_%s statement"%(rw,))
|
|
* variable = variable.lower()
|
|
* i = line.i # <<<<<<<<<<<<<<
|
|
* f = line.filename
|
|
* txt = line.text.lstrip()
|
|
*/
|
|
__pyx_t_5 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__i); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 468; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__pyx_v_i = __pyx_t_5;
|
|
__pyx_t_5 = 0;
|
|
|
|
/* "preprocessed_text.py":469
|
|
* variable = variable.lower()
|
|
* i = line.i
|
|
* f = line.filename # <<<<<<<<<<<<<<
|
|
* txt = line.text.lstrip()
|
|
* result = [
|
|
*/
|
|
__pyx_t_5 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__filename); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 469; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__pyx_v_f = __pyx_t_5;
|
|
__pyx_t_5 = 0;
|
|
|
|
/* "preprocessed_text.py":470
|
|
* i = line.i
|
|
* f = line.filename
|
|
* txt = line.text.lstrip() # <<<<<<<<<<<<<<
|
|
* result = [
|
|
* Empty_line(i,"!",f),
|
|
*/
|
|
__pyx_t_5 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__text); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 470; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__pyx_t_3 = PyObject_GetAttr(__pyx_t_5, __pyx_n_s__lstrip); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 470; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
__pyx_t_5 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 470; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
__pyx_v_txt = __pyx_t_5;
|
|
__pyx_t_5 = 0;
|
|
|
|
/* "preprocessed_text.py":472
|
|
* txt = line.text.lstrip()
|
|
* result = [
|
|
* Empty_line(i,"!",f), # <<<<<<<<<<<<<<
|
|
* t(i,"! >>> %s"%(txt,),variable ),
|
|
* Provide_all(i," call %ser_%s('%s')"%(rw,variable,num),f),
|
|
*/
|
|
__pyx_t_5 = __Pyx_GetName(__pyx_m, __pyx_n_s__Empty_line); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 472; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 472; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_3));
|
|
__Pyx_INCREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_i);
|
|
__Pyx_GIVEREF(__pyx_v_i);
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_3));
|
|
PyTuple_SET_ITEM(__pyx_t_3, 1, ((PyObject *)__pyx_kp_s_3));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_3));
|
|
__Pyx_INCREF(__pyx_v_f);
|
|
PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_f);
|
|
__Pyx_GIVEREF(__pyx_v_f);
|
|
__pyx_t_1 = PyObject_Call(__pyx_t_5, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 472; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
|
|
|
|
/* "preprocessed_text.py":473
|
|
* result = [
|
|
* Empty_line(i,"!",f),
|
|
* t(i,"! >>> %s"%(txt,),variable ), # <<<<<<<<<<<<<<
|
|
* Provide_all(i," call %ser_%s('%s')"%(rw,variable,num),f),
|
|
* Empty_line(i,"! >>> END %s "%(txt,),f ),
|
|
*/
|
|
__pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 473; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_3));
|
|
__Pyx_INCREF(__pyx_v_txt);
|
|
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_txt);
|
|
__Pyx_GIVEREF(__pyx_v_txt);
|
|
__pyx_t_5 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_80), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 473; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_5));
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
|
|
__pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 473; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_3));
|
|
__Pyx_INCREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_i);
|
|
__Pyx_GIVEREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_3, 1, ((PyObject *)__pyx_t_5));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_t_5));
|
|
__Pyx_INCREF(__pyx_v_variable);
|
|
PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_variable);
|
|
__Pyx_GIVEREF(__pyx_v_variable);
|
|
__pyx_t_5 = 0;
|
|
__pyx_t_5 = PyObject_Call(__pyx_v_t, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 473; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
|
|
|
|
/* "preprocessed_text.py":474
|
|
* Empty_line(i,"!",f),
|
|
* t(i,"! >>> %s"%(txt,),variable ),
|
|
* Provide_all(i," call %ser_%s('%s')"%(rw,variable,num),f), # <<<<<<<<<<<<<<
|
|
* Empty_line(i,"! >>> END %s "%(txt,),f ),
|
|
* Empty_line(line.i,"!",f),
|
|
*/
|
|
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__Provide_all); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 474; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
if (unlikely(!__pyx_v_num)) { __Pyx_RaiseUnboundLocalError("num"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 474; __pyx_clineno = __LINE__; goto __pyx_L1_error;} }__pyx_t_7 = PyTuple_New(3); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 474; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_7));
|
|
__Pyx_INCREF(__pyx_v_rw);
|
|
PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_v_rw);
|
|
__Pyx_GIVEREF(__pyx_v_rw);
|
|
__Pyx_INCREF(__pyx_v_variable);
|
|
PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_v_variable);
|
|
__Pyx_GIVEREF(__pyx_v_variable);
|
|
__Pyx_INCREF(__pyx_v_num);
|
|
PyTuple_SET_ITEM(__pyx_t_7, 2, __pyx_v_num);
|
|
__Pyx_GIVEREF(__pyx_v_num);
|
|
__pyx_t_8 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_81), ((PyObject *)__pyx_t_7)); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 474; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_8));
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0;
|
|
__pyx_t_7 = PyTuple_New(3); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 474; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_7));
|
|
__Pyx_INCREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_v_i);
|
|
__Pyx_GIVEREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_t_8));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_t_8));
|
|
__Pyx_INCREF(__pyx_v_f);
|
|
PyTuple_SET_ITEM(__pyx_t_7, 2, __pyx_v_f);
|
|
__Pyx_GIVEREF(__pyx_v_f);
|
|
__pyx_t_8 = 0;
|
|
__pyx_t_8 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_t_7), NULL); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 474; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_8);
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0;
|
|
|
|
/* "preprocessed_text.py":475
|
|
* t(i,"! >>> %s"%(txt,),variable ),
|
|
* Provide_all(i," call %ser_%s('%s')"%(rw,variable,num),f),
|
|
* Empty_line(i,"! >>> END %s "%(txt,),f ), # <<<<<<<<<<<<<<
|
|
* Empty_line(line.i,"!",f),
|
|
* ]
|
|
*/
|
|
__pyx_t_7 = __Pyx_GetName(__pyx_m, __pyx_n_s__Empty_line); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 475; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 475; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_3));
|
|
__Pyx_INCREF(__pyx_v_txt);
|
|
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_txt);
|
|
__Pyx_GIVEREF(__pyx_v_txt);
|
|
__pyx_t_9 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_82), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 475; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_9));
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
|
|
__pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 475; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_3));
|
|
__Pyx_INCREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_i);
|
|
__Pyx_GIVEREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_3, 1, ((PyObject *)__pyx_t_9));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_t_9));
|
|
__Pyx_INCREF(__pyx_v_f);
|
|
PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_f);
|
|
__Pyx_GIVEREF(__pyx_v_f);
|
|
__pyx_t_9 = 0;
|
|
__pyx_t_9 = PyObject_Call(__pyx_t_7, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 475; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_9);
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
|
|
|
|
/* "preprocessed_text.py":476
|
|
* Provide_all(i," call %ser_%s('%s')"%(rw,variable,num),f),
|
|
* Empty_line(i,"! >>> END %s "%(txt,),f ),
|
|
* Empty_line(line.i,"!",f), # <<<<<<<<<<<<<<
|
|
* ]
|
|
* return result
|
|
*/
|
|
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__Empty_line); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 476; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__pyx_t_7 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__i); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 476; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__pyx_t_10 = PyTuple_New(3); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 476; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_10));
|
|
PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_7);
|
|
__Pyx_GIVEREF(__pyx_t_7);
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_3));
|
|
PyTuple_SET_ITEM(__pyx_t_10, 1, ((PyObject *)__pyx_kp_s_3));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_3));
|
|
__Pyx_INCREF(__pyx_v_f);
|
|
PyTuple_SET_ITEM(__pyx_t_10, 2, __pyx_v_f);
|
|
__Pyx_GIVEREF(__pyx_v_f);
|
|
__pyx_t_7 = 0;
|
|
__pyx_t_7 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_t_10), NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 476; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_10)); __pyx_t_10 = 0;
|
|
__pyx_t_10 = PyList_New(5); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 471; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_10));
|
|
PyList_SET_ITEM(__pyx_t_10, 0, __pyx_t_1);
|
|
__Pyx_GIVEREF(__pyx_t_1);
|
|
PyList_SET_ITEM(__pyx_t_10, 1, __pyx_t_5);
|
|
__Pyx_GIVEREF(__pyx_t_5);
|
|
PyList_SET_ITEM(__pyx_t_10, 2, __pyx_t_8);
|
|
__Pyx_GIVEREF(__pyx_t_8);
|
|
PyList_SET_ITEM(__pyx_t_10, 3, __pyx_t_9);
|
|
__Pyx_GIVEREF(__pyx_t_9);
|
|
PyList_SET_ITEM(__pyx_t_10, 4, __pyx_t_7);
|
|
__Pyx_GIVEREF(__pyx_t_7);
|
|
__pyx_t_1 = 0;
|
|
__pyx_t_5 = 0;
|
|
__pyx_t_8 = 0;
|
|
__pyx_t_9 = 0;
|
|
__pyx_t_7 = 0;
|
|
__pyx_v_result = __pyx_t_10;
|
|
__pyx_t_10 = 0;
|
|
|
|
/* "preprocessed_text.py":478
|
|
* Empty_line(line.i,"!",f),
|
|
* ]
|
|
* return result # <<<<<<<<<<<<<<
|
|
*
|
|
* def process_irp_read (line):
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__Pyx_INCREF(((PyObject *)__pyx_v_result));
|
|
__pyx_r = ((PyObject *)__pyx_v_result);
|
|
goto __pyx_L0;
|
|
|
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
|
goto __pyx_L0;
|
|
__pyx_L1_error:;
|
|
__Pyx_XDECREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_t_3);
|
|
__Pyx_XDECREF(__pyx_t_5);
|
|
__Pyx_XDECREF(__pyx_t_7);
|
|
__Pyx_XDECREF(__pyx_t_8);
|
|
__Pyx_XDECREF(__pyx_t_9);
|
|
__Pyx_XDECREF(__pyx_t_10);
|
|
__Pyx_AddTraceback("preprocessed_text.irp_simple_statements.process_irp_rw", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__pyx_r = NULL;
|
|
__pyx_L0:;
|
|
__Pyx_XDECREF(__pyx_v_buffer);
|
|
__Pyx_XDECREF(__pyx_v_dummy);
|
|
__Pyx_XDECREF(__pyx_v_variable);
|
|
__Pyx_XDECREF(__pyx_v_num);
|
|
__Pyx_XDECREF(__pyx_v_i);
|
|
__Pyx_XDECREF(__pyx_v_f);
|
|
__Pyx_XDECREF(__pyx_v_txt);
|
|
__Pyx_XDECREF(__pyx_v_result);
|
|
__Pyx_XGIVEREF(__pyx_r);
|
|
__Pyx_RefNannyFinishContext();
|
|
return __pyx_r;
|
|
}
|
|
|
|
/* "preprocessed_text.py":480
|
|
* return result
|
|
*
|
|
* def process_irp_read (line): # <<<<<<<<<<<<<<
|
|
* assert type(line) == Irp_read
|
|
* return process_irp_rw(line,'read' ,Irp_read )
|
|
*/
|
|
|
|
static PyObject *__pyx_pf_17preprocessed_text_21irp_simple_statements_1process_irp_read(PyObject *__pyx_self, PyObject *__pyx_v_line); /*proto*/
|
|
static PyMethodDef __pyx_mdef_17preprocessed_text_21irp_simple_statements_1process_irp_read = {__Pyx_NAMESTR("process_irp_read"), (PyCFunction)__pyx_pf_17preprocessed_text_21irp_simple_statements_1process_irp_read, METH_O, __Pyx_DOCSTR(0)};
|
|
static PyObject *__pyx_pf_17preprocessed_text_21irp_simple_statements_1process_irp_read(PyObject *__pyx_self, PyObject *__pyx_v_line) {
|
|
struct __pyx_obj_17preprocessed_text___pyx_scope_struct_1_irp_simple_statements *__pyx_cur_scope;
|
|
struct __pyx_obj_17preprocessed_text___pyx_scope_struct_1_irp_simple_statements *__pyx_outer_scope;
|
|
PyObject *__pyx_r = NULL;
|
|
__Pyx_RefNannyDeclarations
|
|
PyObject *__pyx_t_1 = NULL;
|
|
PyObject *__pyx_t_2 = NULL;
|
|
int __pyx_t_3;
|
|
int __pyx_lineno = 0;
|
|
const char *__pyx_filename = NULL;
|
|
int __pyx_clineno = 0;
|
|
__Pyx_RefNannySetupContext("process_irp_read");
|
|
__pyx_outer_scope = (struct __pyx_obj_17preprocessed_text___pyx_scope_struct_1_irp_simple_statements *)__pyx_self;
|
|
__pyx_cur_scope = __pyx_outer_scope;
|
|
__pyx_self = __pyx_self;
|
|
|
|
/* "preprocessed_text.py":481
|
|
*
|
|
* def process_irp_read (line):
|
|
* assert type(line) == Irp_read # <<<<<<<<<<<<<<
|
|
* return process_irp_rw(line,'read' ,Irp_read )
|
|
*
|
|
*/
|
|
#ifndef CYTHON_WITHOUT_ASSERTIONS
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__Irp_read); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 481; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_line)), __pyx_t_1, Py_EQ); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 481; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 481; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
if (unlikely(!__pyx_t_3)) {
|
|
PyErr_SetNone(PyExc_AssertionError);
|
|
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 481; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
#endif
|
|
|
|
/* "preprocessed_text.py":482
|
|
* def process_irp_read (line):
|
|
* assert type(line) == Irp_read
|
|
* return process_irp_rw(line,'read' ,Irp_read ) # <<<<<<<<<<<<<<
|
|
*
|
|
* def process_irp_write(line):
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
if (unlikely(!__pyx_cur_scope->__pyx_v_process_irp_rw)) { __Pyx_RaiseClosureNameError("process_irp_rw"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 482; __pyx_clineno = __LINE__; goto __pyx_L1_error;} }__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Irp_read); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 482; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 482; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
__Pyx_INCREF(((PyObject *)__pyx_n_s__read));
|
|
PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_n_s__read));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_n_s__read));
|
|
PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_t_2);
|
|
__Pyx_GIVEREF(__pyx_t_2);
|
|
__pyx_t_2 = 0;
|
|
__pyx_t_2 = PyObject_Call(__pyx_cur_scope->__pyx_v_process_irp_rw, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 482; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
__pyx_r = __pyx_t_2;
|
|
__pyx_t_2 = 0;
|
|
goto __pyx_L0;
|
|
|
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
|
goto __pyx_L0;
|
|
__pyx_L1_error:;
|
|
__Pyx_XDECREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_t_2);
|
|
__Pyx_AddTraceback("preprocessed_text.irp_simple_statements.process_irp_read", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__pyx_r = NULL;
|
|
__pyx_L0:;
|
|
__Pyx_XGIVEREF(__pyx_r);
|
|
__Pyx_RefNannyFinishContext();
|
|
return __pyx_r;
|
|
}
|
|
|
|
/* "preprocessed_text.py":484
|
|
* return process_irp_rw(line,'read' ,Irp_read )
|
|
*
|
|
* def process_irp_write(line): # <<<<<<<<<<<<<<
|
|
* assert type(line) == Irp_write
|
|
* return process_irp_rw(line,'writ' ,Irp_write)
|
|
*/
|
|
|
|
static PyObject *__pyx_pf_17preprocessed_text_21irp_simple_statements_2process_irp_write(PyObject *__pyx_self, PyObject *__pyx_v_line); /*proto*/
|
|
static PyMethodDef __pyx_mdef_17preprocessed_text_21irp_simple_statements_2process_irp_write = {__Pyx_NAMESTR("process_irp_write"), (PyCFunction)__pyx_pf_17preprocessed_text_21irp_simple_statements_2process_irp_write, METH_O, __Pyx_DOCSTR(0)};
|
|
static PyObject *__pyx_pf_17preprocessed_text_21irp_simple_statements_2process_irp_write(PyObject *__pyx_self, PyObject *__pyx_v_line) {
|
|
struct __pyx_obj_17preprocessed_text___pyx_scope_struct_1_irp_simple_statements *__pyx_cur_scope;
|
|
struct __pyx_obj_17preprocessed_text___pyx_scope_struct_1_irp_simple_statements *__pyx_outer_scope;
|
|
PyObject *__pyx_r = NULL;
|
|
__Pyx_RefNannyDeclarations
|
|
PyObject *__pyx_t_1 = NULL;
|
|
PyObject *__pyx_t_2 = NULL;
|
|
int __pyx_t_3;
|
|
int __pyx_lineno = 0;
|
|
const char *__pyx_filename = NULL;
|
|
int __pyx_clineno = 0;
|
|
__Pyx_RefNannySetupContext("process_irp_write");
|
|
__pyx_outer_scope = (struct __pyx_obj_17preprocessed_text___pyx_scope_struct_1_irp_simple_statements *)__pyx_self;
|
|
__pyx_cur_scope = __pyx_outer_scope;
|
|
__pyx_self = __pyx_self;
|
|
|
|
/* "preprocessed_text.py":485
|
|
*
|
|
* def process_irp_write(line):
|
|
* assert type(line) == Irp_write # <<<<<<<<<<<<<<
|
|
* return process_irp_rw(line,'writ' ,Irp_write)
|
|
*
|
|
*/
|
|
#ifndef CYTHON_WITHOUT_ASSERTIONS
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__Irp_write); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 485; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_line)), __pyx_t_1, Py_EQ); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 485; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 485; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
if (unlikely(!__pyx_t_3)) {
|
|
PyErr_SetNone(PyExc_AssertionError);
|
|
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 485; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
#endif
|
|
|
|
/* "preprocessed_text.py":486
|
|
* def process_irp_write(line):
|
|
* assert type(line) == Irp_write
|
|
* return process_irp_rw(line,'writ' ,Irp_write) # <<<<<<<<<<<<<<
|
|
*
|
|
* def process_return(line):
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
if (unlikely(!__pyx_cur_scope->__pyx_v_process_irp_rw)) { __Pyx_RaiseClosureNameError("process_irp_rw"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 486; __pyx_clineno = __LINE__; goto __pyx_L1_error;} }__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Irp_write); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 486; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 486; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
__Pyx_INCREF(((PyObject *)__pyx_n_s__writ));
|
|
PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_n_s__writ));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_n_s__writ));
|
|
PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_t_2);
|
|
__Pyx_GIVEREF(__pyx_t_2);
|
|
__pyx_t_2 = 0;
|
|
__pyx_t_2 = PyObject_Call(__pyx_cur_scope->__pyx_v_process_irp_rw, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 486; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
__pyx_r = __pyx_t_2;
|
|
__pyx_t_2 = 0;
|
|
goto __pyx_L0;
|
|
|
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
|
goto __pyx_L0;
|
|
__pyx_L1_error:;
|
|
__Pyx_XDECREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_t_2);
|
|
__Pyx_AddTraceback("preprocessed_text.irp_simple_statements.process_irp_write", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__pyx_r = NULL;
|
|
__pyx_L0:;
|
|
__Pyx_XGIVEREF(__pyx_r);
|
|
__Pyx_RefNannyFinishContext();
|
|
return __pyx_r;
|
|
}
|
|
|
|
/* "preprocessed_text.py":488
|
|
* return process_irp_rw(line,'writ' ,Irp_write)
|
|
*
|
|
* def process_return(line): # <<<<<<<<<<<<<<
|
|
* assert type(line) == Return
|
|
* if command_line.do_assert or command_line.do_debug:
|
|
*/
|
|
|
|
static PyObject *__pyx_pf_17preprocessed_text_21irp_simple_statements_3process_return(PyObject *__pyx_self, PyObject *__pyx_v_line); /*proto*/
|
|
static PyMethodDef __pyx_mdef_17preprocessed_text_21irp_simple_statements_3process_return = {__Pyx_NAMESTR("process_return"), (PyCFunction)__pyx_pf_17preprocessed_text_21irp_simple_statements_3process_return, METH_O, __Pyx_DOCSTR(0)};
|
|
static PyObject *__pyx_pf_17preprocessed_text_21irp_simple_statements_3process_return(PyObject *__pyx_self, PyObject *__pyx_v_line) {
|
|
PyObject *__pyx_v_newline = NULL;
|
|
PyObject *__pyx_v_result = NULL;
|
|
PyObject *__pyx_r = NULL;
|
|
__Pyx_RefNannyDeclarations
|
|
PyObject *__pyx_t_1 = NULL;
|
|
PyObject *__pyx_t_2 = NULL;
|
|
int __pyx_t_3;
|
|
int __pyx_t_4;
|
|
int __pyx_t_5;
|
|
PyObject *__pyx_t_6 = NULL;
|
|
PyObject *__pyx_t_7 = NULL;
|
|
int __pyx_lineno = 0;
|
|
const char *__pyx_filename = NULL;
|
|
int __pyx_clineno = 0;
|
|
__Pyx_RefNannySetupContext("process_return");
|
|
__pyx_self = __pyx_self;
|
|
|
|
/* "preprocessed_text.py":489
|
|
*
|
|
* def process_return(line):
|
|
* assert type(line) == Return # <<<<<<<<<<<<<<
|
|
* if command_line.do_assert or command_line.do_debug:
|
|
* newline = Simple_line(line.i," call irp_leave(irp_here)",line.filename)
|
|
*/
|
|
#ifndef CYTHON_WITHOUT_ASSERTIONS
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__Return); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 489; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_line)), __pyx_t_1, Py_EQ); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 489; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 489; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
if (unlikely(!__pyx_t_3)) {
|
|
PyErr_SetNone(PyExc_AssertionError);
|
|
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 489; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
#endif
|
|
|
|
/* "preprocessed_text.py":490
|
|
* def process_return(line):
|
|
* assert type(line) == Return
|
|
* if command_line.do_assert or command_line.do_debug: # <<<<<<<<<<<<<<
|
|
* newline = Simple_line(line.i," call irp_leave(irp_here)",line.filename)
|
|
* result = [newline, line]
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__command_line); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 490; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__do_assert); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 490; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 490; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
if (!__pyx_t_3) {
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__command_line); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 490; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_n_s__do_debug); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 490; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 490; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_5 = __pyx_t_4;
|
|
} else {
|
|
__pyx_t_5 = __pyx_t_3;
|
|
}
|
|
if (__pyx_t_5) {
|
|
|
|
/* "preprocessed_text.py":491
|
|
* assert type(line) == Return
|
|
* if command_line.do_assert or command_line.do_debug:
|
|
* newline = Simple_line(line.i," call irp_leave(irp_here)",line.filename) # <<<<<<<<<<<<<<
|
|
* result = [newline, line]
|
|
* else:
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Simple_line); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 491; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__i); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 491; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_6 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__filename); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 491; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_7 = PyTuple_New(3); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 491; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_7));
|
|
PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_1);
|
|
__Pyx_GIVEREF(__pyx_t_1);
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_83));
|
|
PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_kp_s_83));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_83));
|
|
PyTuple_SET_ITEM(__pyx_t_7, 2, __pyx_t_6);
|
|
__Pyx_GIVEREF(__pyx_t_6);
|
|
__pyx_t_1 = 0;
|
|
__pyx_t_6 = 0;
|
|
__pyx_t_6 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_t_7), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 491; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0;
|
|
__pyx_v_newline = __pyx_t_6;
|
|
__pyx_t_6 = 0;
|
|
|
|
/* "preprocessed_text.py":492
|
|
* if command_line.do_assert or command_line.do_debug:
|
|
* newline = Simple_line(line.i," call irp_leave(irp_here)",line.filename)
|
|
* result = [newline, line] # <<<<<<<<<<<<<<
|
|
* else:
|
|
* result = [ line ]
|
|
*/
|
|
__pyx_t_6 = PyList_New(2); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 492; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_6));
|
|
__Pyx_INCREF(__pyx_v_newline);
|
|
PyList_SET_ITEM(__pyx_t_6, 0, __pyx_v_newline);
|
|
__Pyx_GIVEREF(__pyx_v_newline);
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyList_SET_ITEM(__pyx_t_6, 1, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
__pyx_v_result = __pyx_t_6;
|
|
__pyx_t_6 = 0;
|
|
goto __pyx_L5;
|
|
}
|
|
/*else*/ {
|
|
|
|
/* "preprocessed_text.py":494
|
|
* result = [newline, line]
|
|
* else:
|
|
* result = [ line ] # <<<<<<<<<<<<<<
|
|
* return result
|
|
*
|
|
*/
|
|
__pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 494; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_6));
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyList_SET_ITEM(__pyx_t_6, 0, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
__pyx_v_result = __pyx_t_6;
|
|
__pyx_t_6 = 0;
|
|
}
|
|
__pyx_L5:;
|
|
|
|
/* "preprocessed_text.py":495
|
|
* else:
|
|
* result = [ line ]
|
|
* return result # <<<<<<<<<<<<<<
|
|
*
|
|
* def debug_conditions(line):
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__Pyx_INCREF(((PyObject *)__pyx_v_result));
|
|
__pyx_r = ((PyObject *)__pyx_v_result);
|
|
goto __pyx_L0;
|
|
|
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
|
goto __pyx_L0;
|
|
__pyx_L1_error:;
|
|
__Pyx_XDECREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_t_2);
|
|
__Pyx_XDECREF(__pyx_t_6);
|
|
__Pyx_XDECREF(__pyx_t_7);
|
|
__Pyx_AddTraceback("preprocessed_text.irp_simple_statements.process_return", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__pyx_r = NULL;
|
|
__pyx_L0:;
|
|
__Pyx_XDECREF(__pyx_v_newline);
|
|
__Pyx_XDECREF(__pyx_v_result);
|
|
__Pyx_XGIVEREF(__pyx_r);
|
|
__Pyx_RefNannyFinishContext();
|
|
return __pyx_r;
|
|
}
|
|
|
|
/* "preprocessed_text.py":497
|
|
* return result
|
|
*
|
|
* def debug_conditions(line): # <<<<<<<<<<<<<<
|
|
* '''Find condition in assert statement for debug'''
|
|
* assert type(line) == Assert
|
|
*/
|
|
|
|
static PyObject *__pyx_pf_17preprocessed_text_21irp_simple_statements_4debug_conditions(PyObject *__pyx_self, PyObject *__pyx_v_line); /*proto*/
|
|
static char __pyx_doc_17preprocessed_text_21irp_simple_statements_4debug_conditions[] = "Find condition in assert statement for debug";
|
|
static PyMethodDef __pyx_mdef_17preprocessed_text_21irp_simple_statements_4debug_conditions = {__Pyx_NAMESTR("debug_conditions"), (PyCFunction)__pyx_pf_17preprocessed_text_21irp_simple_statements_4debug_conditions, METH_O, __Pyx_DOCSTR(__pyx_doc_17preprocessed_text_21irp_simple_statements_4debug_conditions)};
|
|
static PyObject *__pyx_pf_17preprocessed_text_21irp_simple_statements_4debug_conditions(PyObject *__pyx_self, PyObject *__pyx_v_line) {
|
|
PyObject *__pyx_v_match = NULL;
|
|
PyObject *__pyx_v_result = NULL;
|
|
PyObject *__pyx_v_matches = NULL;
|
|
PyObject *__pyx_v_m = NULL;
|
|
PyObject *__pyx_r = NULL;
|
|
__Pyx_RefNannyDeclarations
|
|
PyObject *__pyx_t_1 = NULL;
|
|
PyObject *__pyx_t_2 = NULL;
|
|
int __pyx_t_3;
|
|
PyObject *__pyx_t_4 = NULL;
|
|
Py_ssize_t __pyx_t_5;
|
|
int __pyx_t_6;
|
|
int __pyx_t_7;
|
|
int __pyx_t_8;
|
|
PyObject *__pyx_t_9 = NULL;
|
|
PyObject *__pyx_t_10 = NULL;
|
|
PyObject *__pyx_t_11 = NULL;
|
|
int __pyx_t_12;
|
|
int __pyx_lineno = 0;
|
|
const char *__pyx_filename = NULL;
|
|
int __pyx_clineno = 0;
|
|
__Pyx_RefNannySetupContext("debug_conditions");
|
|
__pyx_self = __pyx_self;
|
|
|
|
/* "preprocessed_text.py":499
|
|
* def debug_conditions(line):
|
|
* '''Find condition in assert statement for debug'''
|
|
* assert type(line) == Assert # <<<<<<<<<<<<<<
|
|
* match = re_test.search(line.text)
|
|
* result = []
|
|
*/
|
|
#ifndef CYTHON_WITHOUT_ASSERTIONS
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__Assert); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 499; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_line)), __pyx_t_1, Py_EQ); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 499; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 499; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
if (unlikely(!__pyx_t_3)) {
|
|
PyErr_SetNone(PyExc_AssertionError);
|
|
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 499; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
#endif
|
|
|
|
/* "preprocessed_text.py":500
|
|
* '''Find condition in assert statement for debug'''
|
|
* assert type(line) == Assert
|
|
* match = re_test.search(line.text) # <<<<<<<<<<<<<<
|
|
* result = []
|
|
* if match is not None:
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__re_test); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 500; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__search); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 500; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__text); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 500; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 500; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
|
|
__Pyx_GIVEREF(__pyx_t_2);
|
|
__pyx_t_2 = 0;
|
|
__pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 500; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
|
|
__pyx_v_match = __pyx_t_2;
|
|
__pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":501
|
|
* assert type(line) == Assert
|
|
* match = re_test.search(line.text)
|
|
* result = [] # <<<<<<<<<<<<<<
|
|
* if match is not None:
|
|
* matches = [ match.group(1).strip(), match.group(3).strip() ]
|
|
*/
|
|
__pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 501; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
|
__pyx_v_result = __pyx_t_2;
|
|
__pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":502
|
|
* match = re_test.search(line.text)
|
|
* result = []
|
|
* if match is not None: # <<<<<<<<<<<<<<
|
|
* matches = [ match.group(1).strip(), match.group(3).strip() ]
|
|
* for m in matches:
|
|
*/
|
|
__pyx_t_3 = (__pyx_v_match != Py_None);
|
|
if (__pyx_t_3) {
|
|
|
|
/* "preprocessed_text.py":503
|
|
* result = []
|
|
* if match is not None:
|
|
* matches = [ match.group(1).strip(), match.group(3).strip() ] # <<<<<<<<<<<<<<
|
|
* for m in matches:
|
|
* if not(m.isdigit() or ("'" in m) or (m == "")):
|
|
*/
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_v_match, __pyx_n_s__group); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 503; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_4 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_k_tuple_84), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 503; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_t_4, __pyx_n_s__strip); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 503; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__pyx_t_4 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 503; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_v_match, __pyx_n_s__group); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 503; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_1 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_k_tuple_85), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 503; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_n_s__strip); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 503; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_1 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 503; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_2 = PyList_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 503; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
|
PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_4);
|
|
__Pyx_GIVEREF(__pyx_t_4);
|
|
PyList_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
|
|
__Pyx_GIVEREF(__pyx_t_1);
|
|
__pyx_t_4 = 0;
|
|
__pyx_t_1 = 0;
|
|
__pyx_v_matches = __pyx_t_2;
|
|
__pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":504
|
|
* if match is not None:
|
|
* matches = [ match.group(1).strip(), match.group(3).strip() ]
|
|
* for m in matches: # <<<<<<<<<<<<<<
|
|
* if not(m.isdigit() or ("'" in m) or (m == "")):
|
|
* result.append ( Simple_line (line.i, " print *, '%s = ', %s"%(m,m), line.filename) )
|
|
*/
|
|
if (unlikely(((PyObject *)__pyx_v_matches) == Py_None)) {
|
|
PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 504; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
__pyx_t_2 = ((PyObject *)__pyx_v_matches); __Pyx_INCREF(__pyx_t_2); __pyx_t_5 = 0;
|
|
for (;;) {
|
|
if (__pyx_t_5 >= PyList_GET_SIZE(__pyx_t_2)) break;
|
|
__pyx_t_1 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_5); __Pyx_INCREF(__pyx_t_1); __pyx_t_5++;
|
|
__Pyx_XDECREF(__pyx_v_m);
|
|
__pyx_v_m = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":505
|
|
* matches = [ match.group(1).strip(), match.group(3).strip() ]
|
|
* for m in matches:
|
|
* if not(m.isdigit() or ("'" in m) or (m == "")): # <<<<<<<<<<<<<<
|
|
* result.append ( Simple_line (line.i, " print *, '%s = ', %s"%(m,m), line.filename) )
|
|
* result.append ( Simple_line (line.i, " print *, ''", line.filename) )
|
|
*/
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_v_m, __pyx_n_s__isdigit); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 505; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_4 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 505; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 505; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
if (!__pyx_t_3) {
|
|
__pyx_t_6 = ((PySequence_Contains(__pyx_v_m, ((PyObject *)__pyx_kp_s_86)))); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 505; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
if (!__pyx_t_6) {
|
|
__pyx_t_7 = __Pyx_PyString_Equals(__pyx_v_m, ((PyObject *)__pyx_kp_s_33), Py_EQ); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 505; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__pyx_t_8 = __pyx_t_7;
|
|
} else {
|
|
__pyx_t_8 = __pyx_t_6;
|
|
}
|
|
__pyx_t_6 = __pyx_t_8;
|
|
} else {
|
|
__pyx_t_6 = __pyx_t_3;
|
|
}
|
|
__pyx_t_3 = (!__pyx_t_6);
|
|
if (__pyx_t_3) {
|
|
|
|
/* "preprocessed_text.py":506
|
|
* for m in matches:
|
|
* if not(m.isdigit() or ("'" in m) or (m == "")):
|
|
* result.append ( Simple_line (line.i, " print *, '%s = ', %s"%(m,m), line.filename) ) # <<<<<<<<<<<<<<
|
|
* result.append ( Simple_line (line.i, " print *, ''", line.filename) )
|
|
* return result
|
|
*/
|
|
if (unlikely(((PyObject *)__pyx_v_result) == Py_None)) {
|
|
PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%s'", "append"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 506; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__Simple_line); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 506; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__i); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 506; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_9 = PyTuple_New(2); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 506; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_9));
|
|
__Pyx_INCREF(__pyx_v_m);
|
|
PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_v_m);
|
|
__Pyx_GIVEREF(__pyx_v_m);
|
|
__Pyx_INCREF(__pyx_v_m);
|
|
PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_v_m);
|
|
__Pyx_GIVEREF(__pyx_v_m);
|
|
__pyx_t_10 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_87), ((PyObject *)__pyx_t_9)); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 506; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_10));
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_9)); __pyx_t_9 = 0;
|
|
__pyx_t_9 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__filename); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 506; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_9);
|
|
__pyx_t_11 = PyTuple_New(3); if (unlikely(!__pyx_t_11)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 506; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_11));
|
|
PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_1);
|
|
__Pyx_GIVEREF(__pyx_t_1);
|
|
PyTuple_SET_ITEM(__pyx_t_11, 1, ((PyObject *)__pyx_t_10));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_t_10));
|
|
PyTuple_SET_ITEM(__pyx_t_11, 2, __pyx_t_9);
|
|
__Pyx_GIVEREF(__pyx_t_9);
|
|
__pyx_t_1 = 0;
|
|
__pyx_t_10 = 0;
|
|
__pyx_t_9 = 0;
|
|
__pyx_t_9 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_t_11), NULL); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 506; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_9);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_11)); __pyx_t_11 = 0;
|
|
__pyx_t_12 = PyList_Append(__pyx_v_result, __pyx_t_9); if (unlikely(__pyx_t_12 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 506; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
|
|
goto __pyx_L8;
|
|
}
|
|
__pyx_L8:;
|
|
}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":507
|
|
* if not(m.isdigit() or ("'" in m) or (m == "")):
|
|
* result.append ( Simple_line (line.i, " print *, '%s = ', %s"%(m,m), line.filename) )
|
|
* result.append ( Simple_line (line.i, " print *, ''", line.filename) ) # <<<<<<<<<<<<<<
|
|
* return result
|
|
*
|
|
*/
|
|
if (unlikely(((PyObject *)__pyx_v_result) == Py_None)) {
|
|
PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%s'", "append"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 507; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Simple_line); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 507; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_9 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__i); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 507; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_9);
|
|
__pyx_t_11 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__filename); if (unlikely(!__pyx_t_11)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 507; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_11);
|
|
__pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 507; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_9);
|
|
__Pyx_GIVEREF(__pyx_t_9);
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_88));
|
|
PyTuple_SET_ITEM(__pyx_t_4, 1, ((PyObject *)__pyx_kp_s_88));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_88));
|
|
PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_11);
|
|
__Pyx_GIVEREF(__pyx_t_11);
|
|
__pyx_t_9 = 0;
|
|
__pyx_t_11 = 0;
|
|
__pyx_t_11 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_11)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 507; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_11);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
|
|
__pyx_t_12 = PyList_Append(__pyx_v_result, __pyx_t_11); if (unlikely(__pyx_t_12 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 507; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
|
|
goto __pyx_L5;
|
|
}
|
|
__pyx_L5:;
|
|
|
|
/* "preprocessed_text.py":508
|
|
* result.append ( Simple_line (line.i, " print *, '%s = ', %s"%(m,m), line.filename) )
|
|
* result.append ( Simple_line (line.i, " print *, ''", line.filename) )
|
|
* return result # <<<<<<<<<<<<<<
|
|
*
|
|
* def process_assert(line):
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__Pyx_INCREF(((PyObject *)__pyx_v_result));
|
|
__pyx_r = ((PyObject *)__pyx_v_result);
|
|
goto __pyx_L0;
|
|
|
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
|
goto __pyx_L0;
|
|
__pyx_L1_error:;
|
|
__Pyx_XDECREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_t_2);
|
|
__Pyx_XDECREF(__pyx_t_4);
|
|
__Pyx_XDECREF(__pyx_t_9);
|
|
__Pyx_XDECREF(__pyx_t_10);
|
|
__Pyx_XDECREF(__pyx_t_11);
|
|
__Pyx_AddTraceback("preprocessed_text.irp_simple_statements.debug_conditions", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__pyx_r = NULL;
|
|
__pyx_L0:;
|
|
__Pyx_XDECREF(__pyx_v_match);
|
|
__Pyx_XDECREF(__pyx_v_result);
|
|
__Pyx_XDECREF(__pyx_v_matches);
|
|
__Pyx_XDECREF(__pyx_v_m);
|
|
__Pyx_XGIVEREF(__pyx_r);
|
|
__Pyx_RefNannyFinishContext();
|
|
return __pyx_r;
|
|
}
|
|
|
|
/* "preprocessed_text.py":510
|
|
* return result
|
|
*
|
|
* def process_assert(line): # <<<<<<<<<<<<<<
|
|
* assert type(line) == Assert
|
|
* if command_line.do_assert:
|
|
*/
|
|
|
|
static PyObject *__pyx_pf_17preprocessed_text_21irp_simple_statements_5process_assert(PyObject *__pyx_self, PyObject *__pyx_v_line); /*proto*/
|
|
static PyMethodDef __pyx_mdef_17preprocessed_text_21irp_simple_statements_5process_assert = {__Pyx_NAMESTR("process_assert"), (PyCFunction)__pyx_pf_17preprocessed_text_21irp_simple_statements_5process_assert, METH_O, __Pyx_DOCSTR(0)};
|
|
static PyObject *__pyx_pf_17preprocessed_text_21irp_simple_statements_5process_assert(PyObject *__pyx_self, PyObject *__pyx_v_line) {
|
|
struct __pyx_obj_17preprocessed_text___pyx_scope_struct_1_irp_simple_statements *__pyx_cur_scope;
|
|
struct __pyx_obj_17preprocessed_text___pyx_scope_struct_1_irp_simple_statements *__pyx_outer_scope;
|
|
PyObject *__pyx_v_condition = NULL;
|
|
PyObject *__pyx_v_condition_str = NULL;
|
|
PyObject *__pyx_v_i = NULL;
|
|
PyObject *__pyx_v_f = NULL;
|
|
PyObject *__pyx_v_txt = NULL;
|
|
PyObject *__pyx_v_result = NULL;
|
|
PyObject *__pyx_r = NULL;
|
|
__Pyx_RefNannyDeclarations
|
|
PyObject *__pyx_t_1 = NULL;
|
|
PyObject *__pyx_t_2 = NULL;
|
|
int __pyx_t_3;
|
|
PyObject *__pyx_t_4 = NULL;
|
|
PyObject *__pyx_t_5 = NULL;
|
|
PyObject *__pyx_t_6 = NULL;
|
|
PyObject *__pyx_t_7 = NULL;
|
|
PyObject *__pyx_t_8 = NULL;
|
|
PyObject *__pyx_t_9 = NULL;
|
|
PyObject *__pyx_t_10 = NULL;
|
|
int __pyx_lineno = 0;
|
|
const char *__pyx_filename = NULL;
|
|
int __pyx_clineno = 0;
|
|
__Pyx_RefNannySetupContext("process_assert");
|
|
__pyx_outer_scope = (struct __pyx_obj_17preprocessed_text___pyx_scope_struct_1_irp_simple_statements *)__pyx_self;
|
|
__pyx_cur_scope = __pyx_outer_scope;
|
|
__pyx_self = __pyx_self;
|
|
|
|
/* "preprocessed_text.py":511
|
|
*
|
|
* def process_assert(line):
|
|
* assert type(line) == Assert # <<<<<<<<<<<<<<
|
|
* if command_line.do_assert:
|
|
* condition = "(%s"%(line.text.split('(',1)[1])
|
|
*/
|
|
#ifndef CYTHON_WITHOUT_ASSERTIONS
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__Assert); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 511; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_line)), __pyx_t_1, Py_EQ); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 511; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 511; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
if (unlikely(!__pyx_t_3)) {
|
|
PyErr_SetNone(PyExc_AssertionError);
|
|
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 511; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
#endif
|
|
|
|
/* "preprocessed_text.py":512
|
|
* def process_assert(line):
|
|
* assert type(line) == Assert
|
|
* if command_line.do_assert: # <<<<<<<<<<<<<<
|
|
* condition = "(%s"%(line.text.split('(',1)[1])
|
|
* if condition == "":
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__command_line); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 512; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__do_assert); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 512; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 512; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
if (__pyx_t_3) {
|
|
|
|
/* "preprocessed_text.py":513
|
|
* assert type(line) == Assert
|
|
* if command_line.do_assert:
|
|
* condition = "(%s"%(line.text.split('(',1)[1]) # <<<<<<<<<<<<<<
|
|
* if condition == "":
|
|
* error.fail(line,"Error in Assert statement")
|
|
*/
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 513; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_n_s__split); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 513; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_1 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_k_tuple_91), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 513; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_2 = __Pyx_GetItemInt(__pyx_t_1, 1, sizeof(long), PyInt_FromLong); if (!__pyx_t_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 513; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_89), __pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 513; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_v_condition = ((PyObject *)__pyx_t_1);
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":514
|
|
* if command_line.do_assert:
|
|
* condition = "(%s"%(line.text.split('(',1)[1])
|
|
* if condition == "": # <<<<<<<<<<<<<<
|
|
* error.fail(line,"Error in Assert statement")
|
|
* condition_str = condition.replace("'","''")
|
|
*/
|
|
__pyx_t_3 = __Pyx_PyString_Equals(__pyx_v_condition, ((PyObject *)__pyx_kp_s_33), Py_EQ); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 514; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
if (__pyx_t_3) {
|
|
|
|
/* "preprocessed_text.py":515
|
|
* condition = "(%s"%(line.text.split('(',1)[1])
|
|
* if condition == "":
|
|
* error.fail(line,"Error in Assert statement") # <<<<<<<<<<<<<<
|
|
* condition_str = condition.replace("'","''")
|
|
* i = line.i
|
|
*/
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__error); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 515; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_n_s__fail); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 515; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 515; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_92));
|
|
PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_kp_s_92));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_92));
|
|
__pyx_t_4 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 515; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
goto __pyx_L6;
|
|
}
|
|
__pyx_L6:;
|
|
|
|
/* "preprocessed_text.py":516
|
|
* if condition == "":
|
|
* error.fail(line,"Error in Assert statement")
|
|
* condition_str = condition.replace("'","''") # <<<<<<<<<<<<<<
|
|
* i = line.i
|
|
* f = line.filename
|
|
*/
|
|
__pyx_t_4 = PyObject_GetAttr(__pyx_v_condition, __pyx_n_s__replace); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 516; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_1 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_k_tuple_94), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 516; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__pyx_v_condition_str = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":517
|
|
* error.fail(line,"Error in Assert statement")
|
|
* condition_str = condition.replace("'","''")
|
|
* i = line.i # <<<<<<<<<<<<<<
|
|
* f = line.filename
|
|
* txt = line.text.strip()
|
|
*/
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__i); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 517; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_v_i = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":518
|
|
* condition_str = condition.replace("'","''")
|
|
* i = line.i
|
|
* f = line.filename # <<<<<<<<<<<<<<
|
|
* txt = line.text.strip()
|
|
* result = [
|
|
*/
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__filename); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 518; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_v_f = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":519
|
|
* i = line.i
|
|
* f = line.filename
|
|
* txt = line.text.strip() # <<<<<<<<<<<<<<
|
|
* result = [
|
|
* Empty_line(i, "!", f),
|
|
*/
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 519; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_4 = PyObject_GetAttr(__pyx_t_1, __pyx_n_s__strip); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 519; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_1 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 519; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__pyx_v_txt = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":521
|
|
* txt = line.text.strip()
|
|
* result = [
|
|
* Empty_line(i, "!", f), # <<<<<<<<<<<<<<
|
|
* Empty_line(i, "! >>> %s"%(txt,), f),
|
|
* If (i, " if (.not.%s) then"%(condition,), f),
|
|
*/
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__Empty_line); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 521; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 521; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
__Pyx_INCREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_i);
|
|
__Pyx_GIVEREF(__pyx_v_i);
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_3));
|
|
PyTuple_SET_ITEM(__pyx_t_4, 1, ((PyObject *)__pyx_kp_s_3));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_3));
|
|
__Pyx_INCREF(__pyx_v_f);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_f);
|
|
__Pyx_GIVEREF(__pyx_v_f);
|
|
__pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 521; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
|
|
|
|
/* "preprocessed_text.py":522
|
|
* result = [
|
|
* Empty_line(i, "!", f),
|
|
* Empty_line(i, "! >>> %s"%(txt,), f), # <<<<<<<<<<<<<<
|
|
* If (i, " if (.not.%s) then"%(condition,), f),
|
|
* Simple_line(i, " call irp_trace", f),
|
|
*/
|
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__Empty_line); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 522; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 522; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(__pyx_v_txt);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_txt);
|
|
__Pyx_GIVEREF(__pyx_v_txt);
|
|
__pyx_t_5 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_80), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 522; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_5));
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
__pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 522; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_i);
|
|
__Pyx_GIVEREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_t_5));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_t_5));
|
|
__Pyx_INCREF(__pyx_v_f);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_f);
|
|
__Pyx_GIVEREF(__pyx_v_f);
|
|
__pyx_t_5 = 0;
|
|
__pyx_t_5 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 522; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":523
|
|
* Empty_line(i, "!", f),
|
|
* Empty_line(i, "! >>> %s"%(txt,), f),
|
|
* If (i, " if (.not.%s) then"%(condition,), f), # <<<<<<<<<<<<<<
|
|
* Simple_line(i, " call irp_trace", f),
|
|
* Simple_line(i, " print *, irp_here//': Assert failed:'", f),
|
|
*/
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__If); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 523; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 523; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
__Pyx_INCREF(__pyx_v_condition);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_condition);
|
|
__Pyx_GIVEREF(__pyx_v_condition);
|
|
__pyx_t_6 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_95), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 523; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_6));
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
|
|
__pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 523; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
__Pyx_INCREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_i);
|
|
__Pyx_GIVEREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 1, ((PyObject *)__pyx_t_6));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_t_6));
|
|
__Pyx_INCREF(__pyx_v_f);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_f);
|
|
__Pyx_GIVEREF(__pyx_v_f);
|
|
__pyx_t_6 = 0;
|
|
__pyx_t_6 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 523; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
|
|
|
|
/* "preprocessed_text.py":524
|
|
* Empty_line(i, "! >>> %s"%(txt,), f),
|
|
* If (i, " if (.not.%s) then"%(condition,), f),
|
|
* Simple_line(i, " call irp_trace", f), # <<<<<<<<<<<<<<
|
|
* Simple_line(i, " print *, irp_here//': Assert failed:'", f),
|
|
* Simple_line(i, " print *, ' file: %s, line: %d'"%(f,i), f),
|
|
*/
|
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__Simple_line); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 524; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 524; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_i);
|
|
__Pyx_GIVEREF(__pyx_v_i);
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_96));
|
|
PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_kp_s_96));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_96));
|
|
__Pyx_INCREF(__pyx_v_f);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_f);
|
|
__Pyx_GIVEREF(__pyx_v_f);
|
|
__pyx_t_7 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 524; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":525
|
|
* If (i, " if (.not.%s) then"%(condition,), f),
|
|
* Simple_line(i, " call irp_trace", f),
|
|
* Simple_line(i, " print *, irp_here//': Assert failed:'", f), # <<<<<<<<<<<<<<
|
|
* Simple_line(i, " print *, ' file: %s, line: %d'"%(f,i), f),
|
|
* Simple_line(i, " print *, '%s'"%(condition_str,), f),
|
|
*/
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__Simple_line); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 525; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 525; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
__Pyx_INCREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_i);
|
|
__Pyx_GIVEREF(__pyx_v_i);
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_97));
|
|
PyTuple_SET_ITEM(__pyx_t_4, 1, ((PyObject *)__pyx_kp_s_97));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_97));
|
|
__Pyx_INCREF(__pyx_v_f);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_f);
|
|
__Pyx_GIVEREF(__pyx_v_f);
|
|
__pyx_t_8 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 525; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_8);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
|
|
|
|
/* "preprocessed_text.py":526
|
|
* Simple_line(i, " call irp_trace", f),
|
|
* Simple_line(i, " print *, irp_here//': Assert failed:'", f),
|
|
* Simple_line(i, " print *, ' file: %s, line: %d'"%(f,i), f), # <<<<<<<<<<<<<<
|
|
* Simple_line(i, " print *, '%s'"%(condition_str,), f),
|
|
* ] + debug_conditions(line) + [
|
|
*/
|
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__Simple_line); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 526; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 526; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(__pyx_v_f);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_f);
|
|
__Pyx_GIVEREF(__pyx_v_f);
|
|
__Pyx_INCREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_i);
|
|
__Pyx_GIVEREF(__pyx_v_i);
|
|
__pyx_t_9 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_98), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 526; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_9));
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
__pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 526; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_i);
|
|
__Pyx_GIVEREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_t_9));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_t_9));
|
|
__Pyx_INCREF(__pyx_v_f);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_f);
|
|
__Pyx_GIVEREF(__pyx_v_f);
|
|
__pyx_t_9 = 0;
|
|
__pyx_t_9 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 526; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_9);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":527
|
|
* Simple_line(i, " print *, irp_here//': Assert failed:'", f),
|
|
* Simple_line(i, " print *, ' file: %s, line: %d'"%(f,i), f),
|
|
* Simple_line(i, " print *, '%s'"%(condition_str,), f), # <<<<<<<<<<<<<<
|
|
* ] + debug_conditions(line) + [
|
|
* Simple_line(i, " stop 1", f),
|
|
*/
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__Simple_line); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 527; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 527; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
__Pyx_INCREF(__pyx_v_condition_str);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_condition_str);
|
|
__Pyx_GIVEREF(__pyx_v_condition_str);
|
|
__pyx_t_10 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_99), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 527; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_10));
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
|
|
__pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 527; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
__Pyx_INCREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_i);
|
|
__Pyx_GIVEREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 1, ((PyObject *)__pyx_t_10));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_t_10));
|
|
__Pyx_INCREF(__pyx_v_f);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_f);
|
|
__Pyx_GIVEREF(__pyx_v_f);
|
|
__pyx_t_10 = 0;
|
|
__pyx_t_10 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 527; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_10);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
|
|
__pyx_t_4 = PyList_New(7); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 520; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
PyList_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
|
|
__Pyx_GIVEREF(__pyx_t_2);
|
|
PyList_SET_ITEM(__pyx_t_4, 1, __pyx_t_5);
|
|
__Pyx_GIVEREF(__pyx_t_5);
|
|
PyList_SET_ITEM(__pyx_t_4, 2, __pyx_t_6);
|
|
__Pyx_GIVEREF(__pyx_t_6);
|
|
PyList_SET_ITEM(__pyx_t_4, 3, __pyx_t_7);
|
|
__Pyx_GIVEREF(__pyx_t_7);
|
|
PyList_SET_ITEM(__pyx_t_4, 4, __pyx_t_8);
|
|
__Pyx_GIVEREF(__pyx_t_8);
|
|
PyList_SET_ITEM(__pyx_t_4, 5, __pyx_t_9);
|
|
__Pyx_GIVEREF(__pyx_t_9);
|
|
PyList_SET_ITEM(__pyx_t_4, 6, __pyx_t_10);
|
|
__Pyx_GIVEREF(__pyx_t_10);
|
|
__pyx_t_2 = 0;
|
|
__pyx_t_5 = 0;
|
|
__pyx_t_6 = 0;
|
|
__pyx_t_7 = 0;
|
|
__pyx_t_8 = 0;
|
|
__pyx_t_9 = 0;
|
|
__pyx_t_10 = 0;
|
|
if (unlikely(!__pyx_cur_scope->__pyx_v_debug_conditions)) { __Pyx_RaiseClosureNameError("debug_conditions"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 528; __pyx_clineno = __LINE__; goto __pyx_L1_error;} }__pyx_t_10 = PyTuple_New(1); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 528; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
|
/* "preprocessed_text.py":528
|
|
* Simple_line(i, " print *, ' file: %s, line: %d'"%(f,i), f),
|
|
* Simple_line(i, " print *, '%s'"%(condition_str,), f),
|
|
* ] + debug_conditions(line) + [ # <<<<<<<<<<<<<<
|
|
* Simple_line(i, " stop 1", f),
|
|
* Endif (i, " endif", f),
|
|
*/
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_10));
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
__pyx_t_9 = PyObject_Call(__pyx_cur_scope->__pyx_v_debug_conditions, ((PyObject *)__pyx_t_10), NULL); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 528; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_9);
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_10)); __pyx_t_10 = 0;
|
|
__pyx_t_10 = PyNumber_Add(((PyObject *)__pyx_t_4), __pyx_t_9); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 528; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_10);
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
|
|
__Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
|
|
|
|
/* "preprocessed_text.py":529
|
|
* Simple_line(i, " print *, '%s'"%(condition_str,), f),
|
|
* ] + debug_conditions(line) + [
|
|
* Simple_line(i, " stop 1", f), # <<<<<<<<<<<<<<
|
|
* Endif (i, " endif", f),
|
|
* Empty_line(i, "! <<< END %s"%(txt,), f),
|
|
*/
|
|
__pyx_t_9 = __Pyx_GetName(__pyx_m, __pyx_n_s__Simple_line); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 529; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_9);
|
|
__pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 529; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
__Pyx_INCREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_i);
|
|
__Pyx_GIVEREF(__pyx_v_i);
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_100));
|
|
PyTuple_SET_ITEM(__pyx_t_4, 1, ((PyObject *)__pyx_kp_s_100));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_100));
|
|
__Pyx_INCREF(__pyx_v_f);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_f);
|
|
__Pyx_GIVEREF(__pyx_v_f);
|
|
__pyx_t_8 = PyObject_Call(__pyx_t_9, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 529; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_8);
|
|
__Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
|
|
|
|
/* "preprocessed_text.py":530
|
|
* ] + debug_conditions(line) + [
|
|
* Simple_line(i, " stop 1", f),
|
|
* Endif (i, " endif", f), # <<<<<<<<<<<<<<
|
|
* Empty_line(i, "! <<< END %s"%(txt,), f),
|
|
* Empty_line(i, "!", f)
|
|
*/
|
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__Endif); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 530; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_9 = PyTuple_New(3); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 530; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_9));
|
|
__Pyx_INCREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_v_i);
|
|
__Pyx_GIVEREF(__pyx_v_i);
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_101));
|
|
PyTuple_SET_ITEM(__pyx_t_9, 1, ((PyObject *)__pyx_kp_s_101));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_101));
|
|
__Pyx_INCREF(__pyx_v_f);
|
|
PyTuple_SET_ITEM(__pyx_t_9, 2, __pyx_v_f);
|
|
__Pyx_GIVEREF(__pyx_v_f);
|
|
__pyx_t_7 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_t_9), NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 530; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_9)); __pyx_t_9 = 0;
|
|
|
|
/* "preprocessed_text.py":531
|
|
* Simple_line(i, " stop 1", f),
|
|
* Endif (i, " endif", f),
|
|
* Empty_line(i, "! <<< END %s"%(txt,), f), # <<<<<<<<<<<<<<
|
|
* Empty_line(i, "!", f)
|
|
* ]
|
|
*/
|
|
__pyx_t_9 = __Pyx_GetName(__pyx_m, __pyx_n_s__Empty_line); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 531; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_9);
|
|
__pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 531; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
__Pyx_INCREF(__pyx_v_txt);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_txt);
|
|
__Pyx_GIVEREF(__pyx_v_txt);
|
|
__pyx_t_6 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_102), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 531; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_6));
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
|
|
__pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 531; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
__Pyx_INCREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_i);
|
|
__Pyx_GIVEREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 1, ((PyObject *)__pyx_t_6));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_t_6));
|
|
__Pyx_INCREF(__pyx_v_f);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_f);
|
|
__Pyx_GIVEREF(__pyx_v_f);
|
|
__pyx_t_6 = 0;
|
|
__pyx_t_6 = PyObject_Call(__pyx_t_9, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 531; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
|
|
|
|
/* "preprocessed_text.py":532
|
|
* Endif (i, " endif", f),
|
|
* Empty_line(i, "! <<< END %s"%(txt,), f),
|
|
* Empty_line(i, "!", f) # <<<<<<<<<<<<<<
|
|
* ]
|
|
* else:
|
|
*/
|
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__Empty_line); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 532; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_9 = PyTuple_New(3); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 532; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_9));
|
|
__Pyx_INCREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_v_i);
|
|
__Pyx_GIVEREF(__pyx_v_i);
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_3));
|
|
PyTuple_SET_ITEM(__pyx_t_9, 1, ((PyObject *)__pyx_kp_s_3));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_3));
|
|
__Pyx_INCREF(__pyx_v_f);
|
|
PyTuple_SET_ITEM(__pyx_t_9, 2, __pyx_v_f);
|
|
__Pyx_GIVEREF(__pyx_v_f);
|
|
__pyx_t_5 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_t_9), NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 532; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_9)); __pyx_t_9 = 0;
|
|
__pyx_t_9 = PyList_New(4); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 528; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_9));
|
|
PyList_SET_ITEM(__pyx_t_9, 0, __pyx_t_8);
|
|
__Pyx_GIVEREF(__pyx_t_8);
|
|
PyList_SET_ITEM(__pyx_t_9, 1, __pyx_t_7);
|
|
__Pyx_GIVEREF(__pyx_t_7);
|
|
PyList_SET_ITEM(__pyx_t_9, 2, __pyx_t_6);
|
|
__Pyx_GIVEREF(__pyx_t_6);
|
|
PyList_SET_ITEM(__pyx_t_9, 3, __pyx_t_5);
|
|
__Pyx_GIVEREF(__pyx_t_5);
|
|
__pyx_t_8 = 0;
|
|
__pyx_t_7 = 0;
|
|
__pyx_t_6 = 0;
|
|
__pyx_t_5 = 0;
|
|
__pyx_t_5 = PyNumber_Add(__pyx_t_10, ((PyObject *)__pyx_t_9)); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 528; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_9)); __pyx_t_9 = 0;
|
|
__pyx_v_result = __pyx_t_5;
|
|
__pyx_t_5 = 0;
|
|
goto __pyx_L5;
|
|
}
|
|
/*else*/ {
|
|
|
|
/* "preprocessed_text.py":535
|
|
* ]
|
|
* else:
|
|
* result = [] # <<<<<<<<<<<<<<
|
|
* return result
|
|
*
|
|
*/
|
|
__pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 535; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_5));
|
|
__pyx_v_result = ((PyObject *)__pyx_t_5);
|
|
__pyx_t_5 = 0;
|
|
}
|
|
__pyx_L5:;
|
|
|
|
/* "preprocessed_text.py":536
|
|
* else:
|
|
* result = []
|
|
* return result # <<<<<<<<<<<<<<
|
|
*
|
|
* def process_end(line):
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__Pyx_INCREF(__pyx_v_result);
|
|
__pyx_r = __pyx_v_result;
|
|
goto __pyx_L0;
|
|
|
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
|
goto __pyx_L0;
|
|
__pyx_L1_error:;
|
|
__Pyx_XDECREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_t_2);
|
|
__Pyx_XDECREF(__pyx_t_4);
|
|
__Pyx_XDECREF(__pyx_t_5);
|
|
__Pyx_XDECREF(__pyx_t_6);
|
|
__Pyx_XDECREF(__pyx_t_7);
|
|
__Pyx_XDECREF(__pyx_t_8);
|
|
__Pyx_XDECREF(__pyx_t_9);
|
|
__Pyx_XDECREF(__pyx_t_10);
|
|
__Pyx_AddTraceback("preprocessed_text.irp_simple_statements.process_assert", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__pyx_r = NULL;
|
|
__pyx_L0:;
|
|
__Pyx_XDECREF(__pyx_v_condition);
|
|
__Pyx_XDECREF(__pyx_v_condition_str);
|
|
__Pyx_XDECREF(__pyx_v_i);
|
|
__Pyx_XDECREF(__pyx_v_f);
|
|
__Pyx_XDECREF(__pyx_v_txt);
|
|
__Pyx_XDECREF(__pyx_v_result);
|
|
__Pyx_XGIVEREF(__pyx_r);
|
|
__Pyx_RefNannyFinishContext();
|
|
return __pyx_r;
|
|
}
|
|
|
|
/* "preprocessed_text.py":538
|
|
* return result
|
|
*
|
|
* def process_end(line): # <<<<<<<<<<<<<<
|
|
* '''Set irp_here variable in provider block'''
|
|
* line.text = "end"
|
|
*/
|
|
|
|
static PyObject *__pyx_pf_17preprocessed_text_21irp_simple_statements_6process_end(PyObject *__pyx_self, PyObject *__pyx_v_line); /*proto*/
|
|
static char __pyx_doc_17preprocessed_text_21irp_simple_statements_6process_end[] = "Set irp_here variable in provider block";
|
|
static PyMethodDef __pyx_mdef_17preprocessed_text_21irp_simple_statements_6process_end = {__Pyx_NAMESTR("process_end"), (PyCFunction)__pyx_pf_17preprocessed_text_21irp_simple_statements_6process_end, METH_O, __Pyx_DOCSTR(__pyx_doc_17preprocessed_text_21irp_simple_statements_6process_end)};
|
|
static PyObject *__pyx_pf_17preprocessed_text_21irp_simple_statements_6process_end(PyObject *__pyx_self, PyObject *__pyx_v_line) {
|
|
PyObject *__pyx_v_i = NULL;
|
|
PyObject *__pyx_v_f = NULL;
|
|
PyObject *__pyx_v_result = NULL;
|
|
PyObject *__pyx_r = NULL;
|
|
__Pyx_RefNannyDeclarations
|
|
PyObject *__pyx_t_1 = NULL;
|
|
PyObject *__pyx_t_2 = NULL;
|
|
int __pyx_t_3;
|
|
int __pyx_t_4;
|
|
int __pyx_t_5;
|
|
PyObject *__pyx_t_6 = NULL;
|
|
int __pyx_lineno = 0;
|
|
const char *__pyx_filename = NULL;
|
|
int __pyx_clineno = 0;
|
|
__Pyx_RefNannySetupContext("process_end");
|
|
__pyx_self = __pyx_self;
|
|
|
|
/* "preprocessed_text.py":540
|
|
* def process_end(line):
|
|
* '''Set irp_here variable in provider block'''
|
|
* line.text = "end" # <<<<<<<<<<<<<<
|
|
* if command_line.do_assert or command_line.do_debug:
|
|
* i = line.i
|
|
*/
|
|
if (PyObject_SetAttr(__pyx_v_line, __pyx_n_s__text, ((PyObject *)__pyx_n_s__end)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 540; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
|
/* "preprocessed_text.py":541
|
|
* '''Set irp_here variable in provider block'''
|
|
* line.text = "end"
|
|
* if command_line.do_assert or command_line.do_debug: # <<<<<<<<<<<<<<
|
|
* i = line.i
|
|
* f = line.filename
|
|
*/
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__command_line); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 541; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_n_s__do_assert); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 541; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 541; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
if (!__pyx_t_3) {
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__command_line); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 541; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__do_debug); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 541; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 541; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_5 = __pyx_t_4;
|
|
} else {
|
|
__pyx_t_5 = __pyx_t_3;
|
|
}
|
|
if (__pyx_t_5) {
|
|
|
|
/* "preprocessed_text.py":542
|
|
* line.text = "end"
|
|
* if command_line.do_assert or command_line.do_debug:
|
|
* i = line.i # <<<<<<<<<<<<<<
|
|
* f = line.filename
|
|
* result = [
|
|
*/
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__i); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 542; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_v_i = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":543
|
|
* if command_line.do_assert or command_line.do_debug:
|
|
* i = line.i
|
|
* f = line.filename # <<<<<<<<<<<<<<
|
|
* result = [
|
|
* Simple_line(i," call irp_leave(irp_here)", f),
|
|
*/
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__filename); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_v_f = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":545
|
|
* f = line.filename
|
|
* result = [
|
|
* Simple_line(i," call irp_leave(irp_here)", f), # <<<<<<<<<<<<<<
|
|
* line
|
|
* ]
|
|
*/
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__Simple_line); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 545; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 545; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
|
__Pyx_INCREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_i);
|
|
__Pyx_GIVEREF(__pyx_v_i);
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_83));
|
|
PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_kp_s_83));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_83));
|
|
__Pyx_INCREF(__pyx_v_f);
|
|
PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_f);
|
|
__Pyx_GIVEREF(__pyx_v_f);
|
|
__pyx_t_6 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 545; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":547
|
|
* Simple_line(i," call irp_leave(irp_here)", f),
|
|
* line
|
|
* ] # <<<<<<<<<<<<<<
|
|
* else:
|
|
* result = [ line ]
|
|
*/
|
|
__pyx_t_2 = PyList_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 544; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
|
PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_6);
|
|
__Pyx_GIVEREF(__pyx_t_6);
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyList_SET_ITEM(__pyx_t_2, 1, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
__pyx_t_6 = 0;
|
|
__pyx_v_result = __pyx_t_2;
|
|
__pyx_t_2 = 0;
|
|
goto __pyx_L5;
|
|
}
|
|
/*else*/ {
|
|
|
|
/* "preprocessed_text.py":549
|
|
* ]
|
|
* else:
|
|
* result = [ line ] # <<<<<<<<<<<<<<
|
|
* return result
|
|
*
|
|
*/
|
|
__pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 549; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyList_SET_ITEM(__pyx_t_2, 0, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
__pyx_v_result = __pyx_t_2;
|
|
__pyx_t_2 = 0;
|
|
}
|
|
__pyx_L5:;
|
|
|
|
/* "preprocessed_text.py":550
|
|
* else:
|
|
* result = [ line ]
|
|
* return result # <<<<<<<<<<<<<<
|
|
*
|
|
* def process_begin_provider(line):
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__Pyx_INCREF(((PyObject *)__pyx_v_result));
|
|
__pyx_r = ((PyObject *)__pyx_v_result);
|
|
goto __pyx_L0;
|
|
|
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
|
goto __pyx_L0;
|
|
__pyx_L1_error:;
|
|
__Pyx_XDECREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_t_2);
|
|
__Pyx_XDECREF(__pyx_t_6);
|
|
__Pyx_AddTraceback("preprocessed_text.irp_simple_statements.process_end", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__pyx_r = NULL;
|
|
__pyx_L0:;
|
|
__Pyx_XDECREF(__pyx_v_i);
|
|
__Pyx_XDECREF(__pyx_v_f);
|
|
__Pyx_XDECREF(__pyx_v_result);
|
|
__Pyx_XGIVEREF(__pyx_r);
|
|
__Pyx_RefNannyFinishContext();
|
|
return __pyx_r;
|
|
}
|
|
|
|
/* "preprocessed_text.py":552
|
|
* return result
|
|
*
|
|
* def process_begin_provider(line): # <<<<<<<<<<<<<<
|
|
* assert type(line) == Begin_provider
|
|
* buffer = line.lower.replace('['," ")
|
|
*/
|
|
|
|
static PyObject *__pyx_pf_17preprocessed_text_21irp_simple_statements_7process_begin_provider(PyObject *__pyx_self, PyObject *__pyx_v_line); /*proto*/
|
|
static PyMethodDef __pyx_mdef_17preprocessed_text_21irp_simple_statements_7process_begin_provider = {__Pyx_NAMESTR("process_begin_provider"), (PyCFunction)__pyx_pf_17preprocessed_text_21irp_simple_statements_7process_begin_provider, METH_O, __Pyx_DOCSTR(0)};
|
|
static PyObject *__pyx_pf_17preprocessed_text_21irp_simple_statements_7process_begin_provider(PyObject *__pyx_self, PyObject *__pyx_v_line) {
|
|
PyObject *__pyx_v_buffer = NULL;
|
|
PyObject *__pyx_v_varname = NULL;
|
|
Py_ssize_t __pyx_v_length;
|
|
PyObject *__pyx_v_i = NULL;
|
|
PyObject *__pyx_v_f = NULL;
|
|
PyObject *__pyx_v_result = NULL;
|
|
PyObject *__pyx_r = NULL;
|
|
__Pyx_RefNannyDeclarations
|
|
PyObject *__pyx_t_1 = NULL;
|
|
PyObject *__pyx_t_2 = NULL;
|
|
int __pyx_t_3;
|
|
Py_ssize_t __pyx_t_4;
|
|
PyObject *__pyx_t_5 = NULL;
|
|
PyObject *__pyx_t_6 = NULL;
|
|
int __pyx_t_7;
|
|
int __pyx_t_8;
|
|
int __pyx_lineno = 0;
|
|
const char *__pyx_filename = NULL;
|
|
int __pyx_clineno = 0;
|
|
__Pyx_RefNannySetupContext("process_begin_provider");
|
|
__pyx_self = __pyx_self;
|
|
|
|
/* "preprocessed_text.py":553
|
|
*
|
|
* def process_begin_provider(line):
|
|
* assert type(line) == Begin_provider # <<<<<<<<<<<<<<
|
|
* buffer = line.lower.replace('['," ")
|
|
* buffer = buffer.replace(']',"")
|
|
*/
|
|
#ifndef CYTHON_WITHOUT_ASSERTIONS
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__Begin_provider); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 553; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_line)), __pyx_t_1, Py_EQ); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 553; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 553; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
if (unlikely(!__pyx_t_3)) {
|
|
PyErr_SetNone(PyExc_AssertionError);
|
|
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 553; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
#endif
|
|
|
|
/* "preprocessed_text.py":554
|
|
* def process_begin_provider(line):
|
|
* assert type(line) == Begin_provider
|
|
* buffer = line.lower.replace('['," ") # <<<<<<<<<<<<<<
|
|
* buffer = buffer.replace(']',"")
|
|
* buffer = buffer.split(',')
|
|
*/
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__lower); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 554; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__replace); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 554; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_k_tuple_103), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 554; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_v_buffer = __pyx_t_2;
|
|
__pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":555
|
|
* assert type(line) == Begin_provider
|
|
* buffer = line.lower.replace('['," ")
|
|
* buffer = buffer.replace(']',"") # <<<<<<<<<<<<<<
|
|
* buffer = buffer.split(',')
|
|
* if len(buffer) < 2:
|
|
*/
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_v_buffer, __pyx_n_s__replace); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 555; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_1 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_k_tuple_104), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 555; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__Pyx_DECREF(__pyx_v_buffer);
|
|
__pyx_v_buffer = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":556
|
|
* buffer = line.lower.replace('['," ")
|
|
* buffer = buffer.replace(']',"")
|
|
* buffer = buffer.split(',') # <<<<<<<<<<<<<<
|
|
* if len(buffer) < 2:
|
|
* error.fail(line,"Error in Begin_provider statement")
|
|
*/
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_v_buffer, __pyx_n_s__split); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 556; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_k_tuple_105), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 556; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(__pyx_v_buffer);
|
|
__pyx_v_buffer = __pyx_t_2;
|
|
__pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":557
|
|
* buffer = buffer.replace(']',"")
|
|
* buffer = buffer.split(',')
|
|
* if len(buffer) < 2: # <<<<<<<<<<<<<<
|
|
* error.fail(line,"Error in Begin_provider statement")
|
|
* varname = buffer[1].strip()
|
|
*/
|
|
__pyx_t_4 = PyObject_Length(__pyx_v_buffer); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 557; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__pyx_t_3 = (__pyx_t_4 < 2);
|
|
if (__pyx_t_3) {
|
|
|
|
/* "preprocessed_text.py":558
|
|
* buffer = buffer.split(',')
|
|
* if len(buffer) < 2:
|
|
* error.fail(line,"Error in Begin_provider statement") # <<<<<<<<<<<<<<
|
|
* varname = buffer[1].strip()
|
|
* length = len(varname)
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__error); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 558; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__fail); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 558; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 558; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_106));
|
|
PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_kp_s_106));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_106));
|
|
__pyx_t_5 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 558; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
goto __pyx_L5;
|
|
}
|
|
__pyx_L5:;
|
|
|
|
/* "preprocessed_text.py":559
|
|
* if len(buffer) < 2:
|
|
* error.fail(line,"Error in Begin_provider statement")
|
|
* varname = buffer[1].strip() # <<<<<<<<<<<<<<
|
|
* length = len(varname)
|
|
* i = line.i
|
|
*/
|
|
__pyx_t_5 = __Pyx_GetItemInt(__pyx_v_buffer, 1, sizeof(long), PyInt_FromLong); if (!__pyx_t_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 559; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_t_5, __pyx_n_s__strip); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 559; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
__pyx_t_5 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 559; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_v_varname = __pyx_t_5;
|
|
__pyx_t_5 = 0;
|
|
|
|
/* "preprocessed_text.py":560
|
|
* error.fail(line,"Error in Begin_provider statement")
|
|
* varname = buffer[1].strip()
|
|
* length = len(varname) # <<<<<<<<<<<<<<
|
|
* i = line.i
|
|
* f = line.filename
|
|
*/
|
|
__pyx_t_4 = PyObject_Length(__pyx_v_varname); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 560; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__pyx_v_length = __pyx_t_4;
|
|
|
|
/* "preprocessed_text.py":561
|
|
* varname = buffer[1].strip()
|
|
* length = len(varname)
|
|
* i = line.i # <<<<<<<<<<<<<<
|
|
* f = line.filename
|
|
* result = [ Begin_provider(i,line.text, (f,varname)),
|
|
*/
|
|
__pyx_t_5 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__i); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 561; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__pyx_v_i = __pyx_t_5;
|
|
__pyx_t_5 = 0;
|
|
|
|
/* "preprocessed_text.py":562
|
|
* length = len(varname)
|
|
* i = line.i
|
|
* f = line.filename # <<<<<<<<<<<<<<
|
|
* result = [ Begin_provider(i,line.text, (f,varname)),
|
|
* Declaration(i," character*(%d) :: irp_here = '%s'"%(length,varname), f) ]
|
|
*/
|
|
__pyx_t_5 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__filename); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 562; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__pyx_v_f = __pyx_t_5;
|
|
__pyx_t_5 = 0;
|
|
|
|
/* "preprocessed_text.py":563
|
|
* i = line.i
|
|
* f = line.filename
|
|
* result = [ Begin_provider(i,line.text, (f,varname)), # <<<<<<<<<<<<<<
|
|
* Declaration(i," character*(%d) :: irp_here = '%s'"%(length,varname), f) ]
|
|
* if command_line.do_assert or command_line.do_debug:
|
|
*/
|
|
__pyx_t_5 = __Pyx_GetName(__pyx_m, __pyx_n_s__Begin_provider); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 563; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__text); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 563; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 563; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(__pyx_v_f);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_f);
|
|
__Pyx_GIVEREF(__pyx_v_f);
|
|
__Pyx_INCREF(__pyx_v_varname);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_varname);
|
|
__Pyx_GIVEREF(__pyx_v_varname);
|
|
__pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 563; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_6));
|
|
__Pyx_INCREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v_i);
|
|
__Pyx_GIVEREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_2);
|
|
__Pyx_GIVEREF(__pyx_t_2);
|
|
PyTuple_SET_ITEM(__pyx_t_6, 2, ((PyObject *)__pyx_t_1));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_t_1));
|
|
__pyx_t_2 = 0;
|
|
__pyx_t_1 = 0;
|
|
__pyx_t_1 = PyObject_Call(__pyx_t_5, ((PyObject *)__pyx_t_6), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 563; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
|
|
|
|
/* "preprocessed_text.py":564
|
|
* f = line.filename
|
|
* result = [ Begin_provider(i,line.text, (f,varname)),
|
|
* Declaration(i," character*(%d) :: irp_here = '%s'"%(length,varname), f) ] # <<<<<<<<<<<<<<
|
|
* if command_line.do_assert or command_line.do_debug:
|
|
* result += [
|
|
*/
|
|
__pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__Declaration); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 564; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_5 = PyInt_FromSsize_t(__pyx_v_length); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 564; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 564; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
|
PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_5);
|
|
__Pyx_GIVEREF(__pyx_t_5);
|
|
__Pyx_INCREF(__pyx_v_varname);
|
|
PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_varname);
|
|
__Pyx_GIVEREF(__pyx_v_varname);
|
|
__pyx_t_5 = 0;
|
|
__pyx_t_5 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_107), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 564; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_5));
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
|
__pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 564; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
|
__Pyx_INCREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_i);
|
|
__Pyx_GIVEREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_t_5));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_t_5));
|
|
__Pyx_INCREF(__pyx_v_f);
|
|
PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_f);
|
|
__Pyx_GIVEREF(__pyx_v_f);
|
|
__pyx_t_5 = 0;
|
|
__pyx_t_5 = PyObject_Call(__pyx_t_6, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 564; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
|
__pyx_t_2 = PyList_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 563; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
|
PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
|
|
__Pyx_GIVEREF(__pyx_t_1);
|
|
PyList_SET_ITEM(__pyx_t_2, 1, __pyx_t_5);
|
|
__Pyx_GIVEREF(__pyx_t_5);
|
|
__pyx_t_1 = 0;
|
|
__pyx_t_5 = 0;
|
|
__pyx_v_result = __pyx_t_2;
|
|
__pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":565
|
|
* result = [ Begin_provider(i,line.text, (f,varname)),
|
|
* Declaration(i," character*(%d) :: irp_here = '%s'"%(length,varname), f) ]
|
|
* if command_line.do_assert or command_line.do_debug: # <<<<<<<<<<<<<<
|
|
* result += [
|
|
* Simple_line(i," call irp_enter(irp_here)", f),
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__command_line); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 565; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_5 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__do_assert); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 565; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 565; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
if (!__pyx_t_3) {
|
|
__pyx_t_5 = __Pyx_GetName(__pyx_m, __pyx_n_s__command_line); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 565; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_t_5, __pyx_n_s__do_debug); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 565; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
__pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 565; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_8 = __pyx_t_7;
|
|
} else {
|
|
__pyx_t_8 = __pyx_t_3;
|
|
}
|
|
if (__pyx_t_8) {
|
|
|
|
/* "preprocessed_text.py":567
|
|
* if command_line.do_assert or command_line.do_debug:
|
|
* result += [
|
|
* Simple_line(i," call irp_enter(irp_here)", f), # <<<<<<<<<<<<<<
|
|
* ]
|
|
* return result
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Simple_line); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 567; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 567; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_5));
|
|
__Pyx_INCREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_i);
|
|
__Pyx_GIVEREF(__pyx_v_i);
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_108));
|
|
PyTuple_SET_ITEM(__pyx_t_5, 1, ((PyObject *)__pyx_kp_s_108));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_108));
|
|
__Pyx_INCREF(__pyx_v_f);
|
|
PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_v_f);
|
|
__Pyx_GIVEREF(__pyx_v_f);
|
|
__pyx_t_1 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_t_5), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 567; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
|
|
__pyx_t_5 = PyList_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 566; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_5));
|
|
PyList_SET_ITEM(__pyx_t_5, 0, __pyx_t_1);
|
|
__Pyx_GIVEREF(__pyx_t_1);
|
|
__pyx_t_1 = 0;
|
|
__pyx_t_1 = PyNumber_InPlaceAdd(((PyObject *)__pyx_v_result), ((PyObject *)__pyx_t_5)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 566; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_v_result));
|
|
__pyx_v_result = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
goto __pyx_L6;
|
|
}
|
|
__pyx_L6:;
|
|
|
|
/* "preprocessed_text.py":569
|
|
* Simple_line(i," call irp_enter(irp_here)", f),
|
|
* ]
|
|
* return result # <<<<<<<<<<<<<<
|
|
*
|
|
* def process_cont_provider(line):
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__Pyx_INCREF(((PyObject *)__pyx_v_result));
|
|
__pyx_r = ((PyObject *)__pyx_v_result);
|
|
goto __pyx_L0;
|
|
|
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
|
goto __pyx_L0;
|
|
__pyx_L1_error:;
|
|
__Pyx_XDECREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_t_2);
|
|
__Pyx_XDECREF(__pyx_t_5);
|
|
__Pyx_XDECREF(__pyx_t_6);
|
|
__Pyx_AddTraceback("preprocessed_text.irp_simple_statements.process_begin_provider", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__pyx_r = NULL;
|
|
__pyx_L0:;
|
|
__Pyx_XDECREF(__pyx_v_buffer);
|
|
__Pyx_XDECREF(__pyx_v_varname);
|
|
__Pyx_XDECREF(__pyx_v_i);
|
|
__Pyx_XDECREF(__pyx_v_f);
|
|
__Pyx_XDECREF(__pyx_v_result);
|
|
__Pyx_XGIVEREF(__pyx_r);
|
|
__Pyx_RefNannyFinishContext();
|
|
return __pyx_r;
|
|
}
|
|
|
|
/* "preprocessed_text.py":571
|
|
* return result
|
|
*
|
|
* def process_cont_provider(line): # <<<<<<<<<<<<<<
|
|
* assert type(line) == Cont_provider
|
|
* buffer = line.lower.replace('['," ")
|
|
*/
|
|
|
|
static PyObject *__pyx_pf_17preprocessed_text_21irp_simple_statements_8process_cont_provider(PyObject *__pyx_self, PyObject *__pyx_v_line); /*proto*/
|
|
static PyMethodDef __pyx_mdef_17preprocessed_text_21irp_simple_statements_8process_cont_provider = {__Pyx_NAMESTR("process_cont_provider"), (PyCFunction)__pyx_pf_17preprocessed_text_21irp_simple_statements_8process_cont_provider, METH_O, __Pyx_DOCSTR(0)};
|
|
static PyObject *__pyx_pf_17preprocessed_text_21irp_simple_statements_8process_cont_provider(PyObject *__pyx_self, PyObject *__pyx_v_line) {
|
|
PyObject *__pyx_v_buffer = NULL;
|
|
PyObject *__pyx_v_varname = NULL;
|
|
PyObject *__pyx_v_i = NULL;
|
|
PyObject *__pyx_v_f = NULL;
|
|
PyObject *__pyx_r = NULL;
|
|
__Pyx_RefNannyDeclarations
|
|
PyObject *__pyx_t_1 = NULL;
|
|
PyObject *__pyx_t_2 = NULL;
|
|
int __pyx_t_3;
|
|
Py_ssize_t __pyx_t_4;
|
|
PyObject *__pyx_t_5 = NULL;
|
|
PyObject *__pyx_t_6 = NULL;
|
|
int __pyx_lineno = 0;
|
|
const char *__pyx_filename = NULL;
|
|
int __pyx_clineno = 0;
|
|
__Pyx_RefNannySetupContext("process_cont_provider");
|
|
__pyx_self = __pyx_self;
|
|
|
|
/* "preprocessed_text.py":572
|
|
*
|
|
* def process_cont_provider(line):
|
|
* assert type(line) == Cont_provider # <<<<<<<<<<<<<<
|
|
* buffer = line.lower.replace('['," ")
|
|
* buffer = buffer.replace(']',"")
|
|
*/
|
|
#ifndef CYTHON_WITHOUT_ASSERTIONS
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__Cont_provider); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 572; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_line)), __pyx_t_1, Py_EQ); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 572; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 572; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
if (unlikely(!__pyx_t_3)) {
|
|
PyErr_SetNone(PyExc_AssertionError);
|
|
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 572; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
#endif
|
|
|
|
/* "preprocessed_text.py":573
|
|
* def process_cont_provider(line):
|
|
* assert type(line) == Cont_provider
|
|
* buffer = line.lower.replace('['," ") # <<<<<<<<<<<<<<
|
|
* buffer = buffer.replace(']',"")
|
|
* buffer = buffer.split(',')
|
|
*/
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__lower); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 573; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__replace); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 573; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_k_tuple_109), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 573; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_v_buffer = __pyx_t_2;
|
|
__pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":574
|
|
* assert type(line) == Cont_provider
|
|
* buffer = line.lower.replace('['," ")
|
|
* buffer = buffer.replace(']',"") # <<<<<<<<<<<<<<
|
|
* buffer = buffer.split(',')
|
|
* if len(buffer) < 2:
|
|
*/
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_v_buffer, __pyx_n_s__replace); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 574; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_1 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_k_tuple_110), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 574; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__Pyx_DECREF(__pyx_v_buffer);
|
|
__pyx_v_buffer = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":575
|
|
* buffer = line.lower.replace('['," ")
|
|
* buffer = buffer.replace(']',"")
|
|
* buffer = buffer.split(',') # <<<<<<<<<<<<<<
|
|
* if len(buffer) < 2:
|
|
* error.fail(line,"Error in Cont_provider statement")
|
|
*/
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_v_buffer, __pyx_n_s__split); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 575; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_k_tuple_111), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 575; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(__pyx_v_buffer);
|
|
__pyx_v_buffer = __pyx_t_2;
|
|
__pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":576
|
|
* buffer = buffer.replace(']',"")
|
|
* buffer = buffer.split(',')
|
|
* if len(buffer) < 2: # <<<<<<<<<<<<<<
|
|
* error.fail(line,"Error in Cont_provider statement")
|
|
* varname = buffer[1].strip()
|
|
*/
|
|
__pyx_t_4 = PyObject_Length(__pyx_v_buffer); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 576; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__pyx_t_3 = (__pyx_t_4 < 2);
|
|
if (__pyx_t_3) {
|
|
|
|
/* "preprocessed_text.py":577
|
|
* buffer = buffer.split(',')
|
|
* if len(buffer) < 2:
|
|
* error.fail(line,"Error in Cont_provider statement") # <<<<<<<<<<<<<<
|
|
* varname = buffer[1].strip()
|
|
* i = line.i
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__error); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 577; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__fail); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 577; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 577; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_112));
|
|
PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_kp_s_112));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_112));
|
|
__pyx_t_5 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 577; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
goto __pyx_L5;
|
|
}
|
|
__pyx_L5:;
|
|
|
|
/* "preprocessed_text.py":578
|
|
* if len(buffer) < 2:
|
|
* error.fail(line,"Error in Cont_provider statement")
|
|
* varname = buffer[1].strip() # <<<<<<<<<<<<<<
|
|
* i = line.i
|
|
* f = line.filename
|
|
*/
|
|
__pyx_t_5 = __Pyx_GetItemInt(__pyx_v_buffer, 1, sizeof(long), PyInt_FromLong); if (!__pyx_t_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 578; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_t_5, __pyx_n_s__strip); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 578; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
__pyx_t_5 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 578; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_v_varname = __pyx_t_5;
|
|
__pyx_t_5 = 0;
|
|
|
|
/* "preprocessed_text.py":579
|
|
* error.fail(line,"Error in Cont_provider statement")
|
|
* varname = buffer[1].strip()
|
|
* i = line.i # <<<<<<<<<<<<<<
|
|
* f = line.filename
|
|
* return [ Cont_provider(i,line.text,(f,varname)) ]
|
|
*/
|
|
__pyx_t_5 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__i); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 579; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__pyx_v_i = __pyx_t_5;
|
|
__pyx_t_5 = 0;
|
|
|
|
/* "preprocessed_text.py":580
|
|
* varname = buffer[1].strip()
|
|
* i = line.i
|
|
* f = line.filename # <<<<<<<<<<<<<<
|
|
* return [ Cont_provider(i,line.text,(f,varname)) ]
|
|
*
|
|
*/
|
|
__pyx_t_5 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__filename); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 580; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__pyx_v_f = __pyx_t_5;
|
|
__pyx_t_5 = 0;
|
|
|
|
/* "preprocessed_text.py":581
|
|
* i = line.i
|
|
* f = line.filename
|
|
* return [ Cont_provider(i,line.text,(f,varname)) ] # <<<<<<<<<<<<<<
|
|
*
|
|
* def process_subroutine(line):
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__pyx_t_5 = __Pyx_GetName(__pyx_m, __pyx_n_s__Cont_provider); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 581; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__text); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 581; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 581; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(__pyx_v_f);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_f);
|
|
__Pyx_GIVEREF(__pyx_v_f);
|
|
__Pyx_INCREF(__pyx_v_varname);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_varname);
|
|
__Pyx_GIVEREF(__pyx_v_varname);
|
|
__pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 581; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_6));
|
|
__Pyx_INCREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v_i);
|
|
__Pyx_GIVEREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_2);
|
|
__Pyx_GIVEREF(__pyx_t_2);
|
|
PyTuple_SET_ITEM(__pyx_t_6, 2, ((PyObject *)__pyx_t_1));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_t_1));
|
|
__pyx_t_2 = 0;
|
|
__pyx_t_1 = 0;
|
|
__pyx_t_1 = PyObject_Call(__pyx_t_5, ((PyObject *)__pyx_t_6), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 581; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
|
|
__pyx_t_6 = PyList_New(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 581; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_6));
|
|
PyList_SET_ITEM(__pyx_t_6, 0, __pyx_t_1);
|
|
__Pyx_GIVEREF(__pyx_t_1);
|
|
__pyx_t_1 = 0;
|
|
__pyx_r = ((PyObject *)__pyx_t_6);
|
|
__pyx_t_6 = 0;
|
|
goto __pyx_L0;
|
|
|
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
|
goto __pyx_L0;
|
|
__pyx_L1_error:;
|
|
__Pyx_XDECREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_t_2);
|
|
__Pyx_XDECREF(__pyx_t_5);
|
|
__Pyx_XDECREF(__pyx_t_6);
|
|
__Pyx_AddTraceback("preprocessed_text.irp_simple_statements.process_cont_provider", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__pyx_r = NULL;
|
|
__pyx_L0:;
|
|
__Pyx_XDECREF(__pyx_v_buffer);
|
|
__Pyx_XDECREF(__pyx_v_varname);
|
|
__Pyx_XDECREF(__pyx_v_i);
|
|
__Pyx_XDECREF(__pyx_v_f);
|
|
__Pyx_XGIVEREF(__pyx_r);
|
|
__Pyx_RefNannyFinishContext();
|
|
return __pyx_r;
|
|
}
|
|
|
|
/* "preprocessed_text.py":583
|
|
* return [ Cont_provider(i,line.text,(f,varname)) ]
|
|
*
|
|
* def process_subroutine(line): # <<<<<<<<<<<<<<
|
|
* assert type(line) == Subroutine
|
|
* subname = find_subname(line)
|
|
*/
|
|
|
|
static PyObject *__pyx_pf_17preprocessed_text_21irp_simple_statements_9process_subroutine(PyObject *__pyx_self, PyObject *__pyx_v_line); /*proto*/
|
|
static PyMethodDef __pyx_mdef_17preprocessed_text_21irp_simple_statements_9process_subroutine = {__Pyx_NAMESTR("process_subroutine"), (PyCFunction)__pyx_pf_17preprocessed_text_21irp_simple_statements_9process_subroutine, METH_O, __Pyx_DOCSTR(0)};
|
|
static PyObject *__pyx_pf_17preprocessed_text_21irp_simple_statements_9process_subroutine(PyObject *__pyx_self, PyObject *__pyx_v_line) {
|
|
PyObject *__pyx_v_subname = NULL;
|
|
Py_ssize_t __pyx_v_length;
|
|
PyObject *__pyx_v_i = NULL;
|
|
PyObject *__pyx_v_f = NULL;
|
|
PyObject *__pyx_v_result = NULL;
|
|
PyObject *__pyx_r = NULL;
|
|
__Pyx_RefNannyDeclarations
|
|
PyObject *__pyx_t_1 = NULL;
|
|
PyObject *__pyx_t_2 = NULL;
|
|
int __pyx_t_3;
|
|
PyObject *__pyx_t_4 = NULL;
|
|
Py_ssize_t __pyx_t_5;
|
|
int __pyx_t_6;
|
|
int __pyx_t_7;
|
|
int __pyx_lineno = 0;
|
|
const char *__pyx_filename = NULL;
|
|
int __pyx_clineno = 0;
|
|
__Pyx_RefNannySetupContext("process_subroutine");
|
|
__pyx_self = __pyx_self;
|
|
|
|
/* "preprocessed_text.py":584
|
|
*
|
|
* def process_subroutine(line):
|
|
* assert type(line) == Subroutine # <<<<<<<<<<<<<<
|
|
* subname = find_subname(line)
|
|
* length = len(subname)
|
|
*/
|
|
#ifndef CYTHON_WITHOUT_ASSERTIONS
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__Subroutine); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 584; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_line)), __pyx_t_1, Py_EQ); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 584; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 584; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
if (unlikely(!__pyx_t_3)) {
|
|
PyErr_SetNone(PyExc_AssertionError);
|
|
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 584; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
#endif
|
|
|
|
/* "preprocessed_text.py":585
|
|
* def process_subroutine(line):
|
|
* assert type(line) == Subroutine
|
|
* subname = find_subname(line) # <<<<<<<<<<<<<<
|
|
* length = len(subname)
|
|
* i = line.i
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__find_subname); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 585; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 585; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
__pyx_t_4 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 585; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
__pyx_v_subname = __pyx_t_4;
|
|
__pyx_t_4 = 0;
|
|
|
|
/* "preprocessed_text.py":586
|
|
* assert type(line) == Subroutine
|
|
* subname = find_subname(line)
|
|
* length = len(subname) # <<<<<<<<<<<<<<
|
|
* i = line.i
|
|
* f = line.filename
|
|
*/
|
|
__pyx_t_5 = PyObject_Length(__pyx_v_subname); if (unlikely(__pyx_t_5 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 586; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__pyx_v_length = __pyx_t_5;
|
|
|
|
/* "preprocessed_text.py":587
|
|
* subname = find_subname(line)
|
|
* length = len(subname)
|
|
* i = line.i # <<<<<<<<<<<<<<
|
|
* f = line.filename
|
|
* result = [ line,
|
|
*/
|
|
__pyx_t_4 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__i); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 587; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_v_i = __pyx_t_4;
|
|
__pyx_t_4 = 0;
|
|
|
|
/* "preprocessed_text.py":588
|
|
* length = len(subname)
|
|
* i = line.i
|
|
* f = line.filename # <<<<<<<<<<<<<<
|
|
* result = [ line,
|
|
* Declaration(i," character*(%d) :: irp_here = '%s'"%(length,subname), f) ]
|
|
*/
|
|
__pyx_t_4 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__filename); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 588; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_v_f = __pyx_t_4;
|
|
__pyx_t_4 = 0;
|
|
|
|
/* "preprocessed_text.py":590
|
|
* f = line.filename
|
|
* result = [ line,
|
|
* Declaration(i," character*(%d) :: irp_here = '%s'"%(length,subname), f) ] # <<<<<<<<<<<<<<
|
|
* if command_line.do_assert or command_line.do_debug:
|
|
* result += [
|
|
*/
|
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__Declaration); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 590; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_1 = PyInt_FromSsize_t(__pyx_v_length); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 590; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 590; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
|
PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
|
|
__Pyx_GIVEREF(__pyx_t_1);
|
|
__Pyx_INCREF(__pyx_v_subname);
|
|
PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_subname);
|
|
__Pyx_GIVEREF(__pyx_v_subname);
|
|
__pyx_t_1 = 0;
|
|
__pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_107), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 590; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
|
__pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 590; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
|
__Pyx_INCREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_i);
|
|
__Pyx_GIVEREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_t_1));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(__pyx_v_f);
|
|
PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_f);
|
|
__Pyx_GIVEREF(__pyx_v_f);
|
|
__pyx_t_1 = 0;
|
|
__pyx_t_1 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 590; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
|
__pyx_t_2 = PyList_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 589; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyList_SET_ITEM(__pyx_t_2, 0, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
PyList_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
|
|
__Pyx_GIVEREF(__pyx_t_1);
|
|
__pyx_t_1 = 0;
|
|
__pyx_v_result = __pyx_t_2;
|
|
__pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":591
|
|
* result = [ line,
|
|
* Declaration(i," character*(%d) :: irp_here = '%s'"%(length,subname), f) ]
|
|
* if command_line.do_assert or command_line.do_debug: # <<<<<<<<<<<<<<
|
|
* result += [
|
|
* Simple_line(i," call irp_enter(irp_here)", f),
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__command_line); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 591; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__do_assert); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 591; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 591; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
if (!__pyx_t_3) {
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__command_line); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 591; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_n_s__do_debug); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 591; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 591; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_7 = __pyx_t_6;
|
|
} else {
|
|
__pyx_t_7 = __pyx_t_3;
|
|
}
|
|
if (__pyx_t_7) {
|
|
|
|
/* "preprocessed_text.py":593
|
|
* if command_line.do_assert or command_line.do_debug:
|
|
* result += [
|
|
* Simple_line(i," call irp_enter(irp_here)", f), # <<<<<<<<<<<<<<
|
|
* ]
|
|
* return result
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Simple_line); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 593; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 593; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_i);
|
|
__Pyx_GIVEREF(__pyx_v_i);
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_108));
|
|
PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_kp_s_108));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_108));
|
|
__Pyx_INCREF(__pyx_v_f);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_f);
|
|
__Pyx_GIVEREF(__pyx_v_f);
|
|
__pyx_t_4 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 593; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
__pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 592; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
PyList_SET_ITEM(__pyx_t_1, 0, __pyx_t_4);
|
|
__Pyx_GIVEREF(__pyx_t_4);
|
|
__pyx_t_4 = 0;
|
|
__pyx_t_4 = PyNumber_InPlaceAdd(((PyObject *)__pyx_v_result), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 592; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_v_result));
|
|
__pyx_v_result = __pyx_t_4;
|
|
__pyx_t_4 = 0;
|
|
goto __pyx_L5;
|
|
}
|
|
__pyx_L5:;
|
|
|
|
/* "preprocessed_text.py":595
|
|
* Simple_line(i," call irp_enter(irp_here)", f),
|
|
* ]
|
|
* return result # <<<<<<<<<<<<<<
|
|
*
|
|
* def process_function(line):
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__Pyx_INCREF(((PyObject *)__pyx_v_result));
|
|
__pyx_r = ((PyObject *)__pyx_v_result);
|
|
goto __pyx_L0;
|
|
|
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
|
goto __pyx_L0;
|
|
__pyx_L1_error:;
|
|
__Pyx_XDECREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_t_2);
|
|
__Pyx_XDECREF(__pyx_t_4);
|
|
__Pyx_AddTraceback("preprocessed_text.irp_simple_statements.process_subroutine", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__pyx_r = NULL;
|
|
__pyx_L0:;
|
|
__Pyx_XDECREF(__pyx_v_subname);
|
|
__Pyx_XDECREF(__pyx_v_i);
|
|
__Pyx_XDECREF(__pyx_v_f);
|
|
__Pyx_XDECREF(__pyx_v_result);
|
|
__Pyx_XGIVEREF(__pyx_r);
|
|
__Pyx_RefNannyFinishContext();
|
|
return __pyx_r;
|
|
}
|
|
|
|
/* "preprocessed_text.py":597
|
|
* return result
|
|
*
|
|
* def process_function(line): # <<<<<<<<<<<<<<
|
|
* assert type(line) == Function
|
|
* subname = find_subname(line)
|
|
*/
|
|
|
|
static PyObject *__pyx_pf_17preprocessed_text_21irp_simple_statements_10process_function(PyObject *__pyx_self, PyObject *__pyx_v_line); /*proto*/
|
|
static PyMethodDef __pyx_mdef_17preprocessed_text_21irp_simple_statements_10process_function = {__Pyx_NAMESTR("process_function"), (PyCFunction)__pyx_pf_17preprocessed_text_21irp_simple_statements_10process_function, METH_O, __Pyx_DOCSTR(0)};
|
|
static PyObject *__pyx_pf_17preprocessed_text_21irp_simple_statements_10process_function(PyObject *__pyx_self, PyObject *__pyx_v_line) {
|
|
PyObject *__pyx_v_subname = NULL;
|
|
Py_ssize_t __pyx_v_length;
|
|
PyObject *__pyx_v_i = NULL;
|
|
PyObject *__pyx_v_f = NULL;
|
|
PyObject *__pyx_v_result = NULL;
|
|
PyObject *__pyx_r = NULL;
|
|
__Pyx_RefNannyDeclarations
|
|
PyObject *__pyx_t_1 = NULL;
|
|
PyObject *__pyx_t_2 = NULL;
|
|
int __pyx_t_3;
|
|
PyObject *__pyx_t_4 = NULL;
|
|
Py_ssize_t __pyx_t_5;
|
|
int __pyx_t_6;
|
|
int __pyx_t_7;
|
|
int __pyx_lineno = 0;
|
|
const char *__pyx_filename = NULL;
|
|
int __pyx_clineno = 0;
|
|
__Pyx_RefNannySetupContext("process_function");
|
|
__pyx_self = __pyx_self;
|
|
|
|
/* "preprocessed_text.py":598
|
|
*
|
|
* def process_function(line):
|
|
* assert type(line) == Function # <<<<<<<<<<<<<<
|
|
* subname = find_subname(line)
|
|
* length = len(subname)
|
|
*/
|
|
#ifndef CYTHON_WITHOUT_ASSERTIONS
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__Function); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 598; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_line)), __pyx_t_1, Py_EQ); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 598; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 598; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
if (unlikely(!__pyx_t_3)) {
|
|
PyErr_SetNone(PyExc_AssertionError);
|
|
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 598; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
#endif
|
|
|
|
/* "preprocessed_text.py":599
|
|
* def process_function(line):
|
|
* assert type(line) == Function
|
|
* subname = find_subname(line) # <<<<<<<<<<<<<<
|
|
* length = len(subname)
|
|
* i = line.i
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__find_subname); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 599; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 599; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
__pyx_t_4 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 599; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
__pyx_v_subname = __pyx_t_4;
|
|
__pyx_t_4 = 0;
|
|
|
|
/* "preprocessed_text.py":600
|
|
* assert type(line) == Function
|
|
* subname = find_subname(line)
|
|
* length = len(subname) # <<<<<<<<<<<<<<
|
|
* i = line.i
|
|
* f = line.filename
|
|
*/
|
|
__pyx_t_5 = PyObject_Length(__pyx_v_subname); if (unlikely(__pyx_t_5 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 600; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__pyx_v_length = __pyx_t_5;
|
|
|
|
/* "preprocessed_text.py":601
|
|
* subname = find_subname(line)
|
|
* length = len(subname)
|
|
* i = line.i # <<<<<<<<<<<<<<
|
|
* f = line.filename
|
|
* result = [ line,
|
|
*/
|
|
__pyx_t_4 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__i); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 601; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_v_i = __pyx_t_4;
|
|
__pyx_t_4 = 0;
|
|
|
|
/* "preprocessed_text.py":602
|
|
* length = len(subname)
|
|
* i = line.i
|
|
* f = line.filename # <<<<<<<<<<<<<<
|
|
* result = [ line,
|
|
* Declaration(i," character*(%d) :: irp_here = '%s'"%(length,subname), f) ]
|
|
*/
|
|
__pyx_t_4 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__filename); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 602; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_v_f = __pyx_t_4;
|
|
__pyx_t_4 = 0;
|
|
|
|
/* "preprocessed_text.py":604
|
|
* f = line.filename
|
|
* result = [ line,
|
|
* Declaration(i," character*(%d) :: irp_here = '%s'"%(length,subname), f) ] # <<<<<<<<<<<<<<
|
|
* if command_line.do_assert or command_line.do_debug:
|
|
* result += [
|
|
*/
|
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__Declaration); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 604; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_1 = PyInt_FromSsize_t(__pyx_v_length); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 604; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 604; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
|
PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
|
|
__Pyx_GIVEREF(__pyx_t_1);
|
|
__Pyx_INCREF(__pyx_v_subname);
|
|
PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_subname);
|
|
__Pyx_GIVEREF(__pyx_v_subname);
|
|
__pyx_t_1 = 0;
|
|
__pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_107), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 604; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
|
__pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 604; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
|
__Pyx_INCREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_i);
|
|
__Pyx_GIVEREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_t_1));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(__pyx_v_f);
|
|
PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_f);
|
|
__Pyx_GIVEREF(__pyx_v_f);
|
|
__pyx_t_1 = 0;
|
|
__pyx_t_1 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 604; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
|
__pyx_t_2 = PyList_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 603; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyList_SET_ITEM(__pyx_t_2, 0, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
PyList_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
|
|
__Pyx_GIVEREF(__pyx_t_1);
|
|
__pyx_t_1 = 0;
|
|
__pyx_v_result = __pyx_t_2;
|
|
__pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":605
|
|
* result = [ line,
|
|
* Declaration(i," character*(%d) :: irp_here = '%s'"%(length,subname), f) ]
|
|
* if command_line.do_assert or command_line.do_debug: # <<<<<<<<<<<<<<
|
|
* result += [
|
|
* Simple_line(i," call irp_enter(irp_here)", f),
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__command_line); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 605; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__do_assert); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 605; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 605; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
if (!__pyx_t_3) {
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__command_line); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 605; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_n_s__do_debug); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 605; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 605; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_7 = __pyx_t_6;
|
|
} else {
|
|
__pyx_t_7 = __pyx_t_3;
|
|
}
|
|
if (__pyx_t_7) {
|
|
|
|
/* "preprocessed_text.py":607
|
|
* if command_line.do_assert or command_line.do_debug:
|
|
* result += [
|
|
* Simple_line(i," call irp_enter(irp_here)", f), # <<<<<<<<<<<<<<
|
|
* ]
|
|
* return result
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Simple_line); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 607; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 607; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_i);
|
|
__Pyx_GIVEREF(__pyx_v_i);
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_108));
|
|
PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_kp_s_108));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_108));
|
|
__Pyx_INCREF(__pyx_v_f);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_f);
|
|
__Pyx_GIVEREF(__pyx_v_f);
|
|
__pyx_t_4 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 607; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
__pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 606; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
PyList_SET_ITEM(__pyx_t_1, 0, __pyx_t_4);
|
|
__Pyx_GIVEREF(__pyx_t_4);
|
|
__pyx_t_4 = 0;
|
|
__pyx_t_4 = PyNumber_InPlaceAdd(((PyObject *)__pyx_v_result), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 606; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_v_result));
|
|
__pyx_v_result = __pyx_t_4;
|
|
__pyx_t_4 = 0;
|
|
goto __pyx_L5;
|
|
}
|
|
__pyx_L5:;
|
|
|
|
/* "preprocessed_text.py":609
|
|
* Simple_line(i," call irp_enter(irp_here)", f),
|
|
* ]
|
|
* return result # <<<<<<<<<<<<<<
|
|
*
|
|
*
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__Pyx_INCREF(((PyObject *)__pyx_v_result));
|
|
__pyx_r = ((PyObject *)__pyx_v_result);
|
|
goto __pyx_L0;
|
|
|
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
|
goto __pyx_L0;
|
|
__pyx_L1_error:;
|
|
__Pyx_XDECREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_t_2);
|
|
__Pyx_XDECREF(__pyx_t_4);
|
|
__Pyx_AddTraceback("preprocessed_text.irp_simple_statements.process_function", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__pyx_r = NULL;
|
|
__pyx_L0:;
|
|
__Pyx_XDECREF(__pyx_v_subname);
|
|
__Pyx_XDECREF(__pyx_v_i);
|
|
__Pyx_XDECREF(__pyx_v_f);
|
|
__Pyx_XDECREF(__pyx_v_result);
|
|
__Pyx_XGIVEREF(__pyx_r);
|
|
__Pyx_RefNannyFinishContext();
|
|
return __pyx_r;
|
|
}
|
|
|
|
/* "preprocessed_text.py":612
|
|
*
|
|
*
|
|
* def process_program(line): # <<<<<<<<<<<<<<
|
|
* assert type(line) == Program
|
|
* program_name = line.lower.split()[1]
|
|
*/
|
|
|
|
static PyObject *__pyx_pf_17preprocessed_text_21irp_simple_statements_11process_program(PyObject *__pyx_self, PyObject *__pyx_v_line); /*proto*/
|
|
static PyMethodDef __pyx_mdef_17preprocessed_text_21irp_simple_statements_11process_program = {__Pyx_NAMESTR("process_program"), (PyCFunction)__pyx_pf_17preprocessed_text_21irp_simple_statements_11process_program, METH_O, __Pyx_DOCSTR(0)};
|
|
static PyObject *__pyx_pf_17preprocessed_text_21irp_simple_statements_11process_program(PyObject *__pyx_self, PyObject *__pyx_v_line) {
|
|
struct __pyx_obj_17preprocessed_text___pyx_scope_struct_1_irp_simple_statements *__pyx_cur_scope;
|
|
struct __pyx_obj_17preprocessed_text___pyx_scope_struct_1_irp_simple_statements *__pyx_outer_scope;
|
|
PyObject *__pyx_v_program_name = NULL;
|
|
PyObject *__pyx_v_temp = NULL;
|
|
PyObject *__pyx_v_result = NULL;
|
|
PyObject *__pyx_r = NULL;
|
|
__Pyx_RefNannyDeclarations
|
|
PyObject *__pyx_t_1 = NULL;
|
|
PyObject *__pyx_t_2 = NULL;
|
|
int __pyx_t_3;
|
|
PyObject *__pyx_t_4 = NULL;
|
|
PyObject *__pyx_t_5 = NULL;
|
|
PyObject *__pyx_t_6 = NULL;
|
|
int __pyx_lineno = 0;
|
|
const char *__pyx_filename = NULL;
|
|
int __pyx_clineno = 0;
|
|
__Pyx_RefNannySetupContext("process_program");
|
|
__pyx_outer_scope = (struct __pyx_obj_17preprocessed_text___pyx_scope_struct_1_irp_simple_statements *)__pyx_self;
|
|
__pyx_cur_scope = __pyx_outer_scope;
|
|
__pyx_self = __pyx_self;
|
|
|
|
/* "preprocessed_text.py":613
|
|
*
|
|
* def process_program(line):
|
|
* assert type(line) == Program # <<<<<<<<<<<<<<
|
|
* program_name = line.lower.split()[1]
|
|
* temp = [ Program(0,"program irp_program",program_name) ]
|
|
*/
|
|
#ifndef CYTHON_WITHOUT_ASSERTIONS
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__Program); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 613; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_line)), __pyx_t_1, Py_EQ); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 613; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 613; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
if (unlikely(!__pyx_t_3)) {
|
|
PyErr_SetNone(PyExc_AssertionError);
|
|
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 613; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
#endif
|
|
|
|
/* "preprocessed_text.py":614
|
|
* def process_program(line):
|
|
* assert type(line) == Program
|
|
* program_name = line.lower.split()[1] # <<<<<<<<<<<<<<
|
|
* temp = [ Program(0,"program irp_program",program_name) ]
|
|
* if command_line.do_profile:
|
|
*/
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__lower); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 614; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__split); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 614; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 614; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_1 = __Pyx_GetItemInt(__pyx_t_2, 1, sizeof(long), PyInt_FromLong); if (!__pyx_t_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 614; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_v_program_name = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":615
|
|
* assert type(line) == Program
|
|
* program_name = line.lower.split()[1]
|
|
* temp = [ Program(0,"program irp_program",program_name) ] # <<<<<<<<<<<<<<
|
|
* if command_line.do_profile:
|
|
* temp += [ Simple_line(0,"call irp_init_timer()",line.filename) ]
|
|
*/
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__Program); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 615; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 615; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
|
__Pyx_INCREF(__pyx_int_0);
|
|
PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_int_0);
|
|
__Pyx_GIVEREF(__pyx_int_0);
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_113));
|
|
PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_kp_s_113));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_113));
|
|
__Pyx_INCREF(__pyx_v_program_name);
|
|
PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_program_name);
|
|
__Pyx_GIVEREF(__pyx_v_program_name);
|
|
__pyx_t_4 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 615; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
|
__pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 615; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
|
PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_4);
|
|
__Pyx_GIVEREF(__pyx_t_4);
|
|
__pyx_t_4 = 0;
|
|
__pyx_v_temp = __pyx_t_2;
|
|
__pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":616
|
|
* program_name = line.lower.split()[1]
|
|
* temp = [ Program(0,"program irp_program",program_name) ]
|
|
* if command_line.do_profile: # <<<<<<<<<<<<<<
|
|
* temp += [ Simple_line(0,"call irp_init_timer()",line.filename) ]
|
|
* if command_line.do_openmp:
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__command_line); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 616; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_4 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__do_profile); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 616; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 616; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
if (__pyx_t_3) {
|
|
|
|
/* "preprocessed_text.py":617
|
|
* temp = [ Program(0,"program irp_program",program_name) ]
|
|
* if command_line.do_profile:
|
|
* temp += [ Simple_line(0,"call irp_init_timer()",line.filename) ] # <<<<<<<<<<<<<<
|
|
* if command_line.do_openmp:
|
|
* temp += [ Openmp(0,"!$OMP PARALLEL",line.filename) ]
|
|
*/
|
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__Simple_line); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 617; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__filename); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 617; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 617; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(__pyx_int_0);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_int_0);
|
|
__Pyx_GIVEREF(__pyx_int_0);
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_114));
|
|
PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_kp_s_114));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_114));
|
|
PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_t_2);
|
|
__Pyx_GIVEREF(__pyx_t_2);
|
|
__pyx_t_2 = 0;
|
|
__pyx_t_2 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 617; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
__pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 617; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
PyList_SET_ITEM(__pyx_t_1, 0, __pyx_t_2);
|
|
__Pyx_GIVEREF(__pyx_t_2);
|
|
__pyx_t_2 = 0;
|
|
__pyx_t_2 = PyNumber_InPlaceAdd(((PyObject *)__pyx_v_temp), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 617; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_v_temp));
|
|
__pyx_v_temp = __pyx_t_2;
|
|
__pyx_t_2 = 0;
|
|
goto __pyx_L5;
|
|
}
|
|
__pyx_L5:;
|
|
|
|
/* "preprocessed_text.py":618
|
|
* if command_line.do_profile:
|
|
* temp += [ Simple_line(0,"call irp_init_timer()",line.filename) ]
|
|
* if command_line.do_openmp: # <<<<<<<<<<<<<<
|
|
* temp += [ Openmp(0,"!$OMP PARALLEL",line.filename) ]
|
|
* temp += [ Openmp(0,"!$OMP MASTER",line.filename) ]
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__command_line); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 618; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__do_openmp); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 618; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 618; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
if (__pyx_t_3) {
|
|
|
|
/* "preprocessed_text.py":619
|
|
* temp += [ Simple_line(0,"call irp_init_timer()",line.filename) ]
|
|
* if command_line.do_openmp:
|
|
* temp += [ Openmp(0,"!$OMP PARALLEL",line.filename) ] # <<<<<<<<<<<<<<
|
|
* temp += [ Openmp(0,"!$OMP MASTER",line.filename) ]
|
|
* temp += [ Call(0," call %s"%(program_name),line.filename) ]
|
|
*/
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__Openmp); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 619; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__filename); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 619; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 619; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
__Pyx_INCREF(__pyx_int_0);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_int_0);
|
|
__Pyx_GIVEREF(__pyx_int_0);
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_115));
|
|
PyTuple_SET_ITEM(__pyx_t_4, 1, ((PyObject *)__pyx_kp_s_115));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_115));
|
|
PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_2);
|
|
__Pyx_GIVEREF(__pyx_t_2);
|
|
__pyx_t_2 = 0;
|
|
__pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 619; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
|
|
__pyx_t_4 = PyList_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 619; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
PyList_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
|
|
__Pyx_GIVEREF(__pyx_t_2);
|
|
__pyx_t_2 = 0;
|
|
__pyx_t_2 = PyNumber_InPlaceAdd(((PyObject *)__pyx_v_temp), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 619; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_v_temp));
|
|
__pyx_v_temp = __pyx_t_2;
|
|
__pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":620
|
|
* if command_line.do_openmp:
|
|
* temp += [ Openmp(0,"!$OMP PARALLEL",line.filename) ]
|
|
* temp += [ Openmp(0,"!$OMP MASTER",line.filename) ] # <<<<<<<<<<<<<<
|
|
* temp += [ Call(0," call %s"%(program_name),line.filename) ]
|
|
* if command_line.do_openmp:
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Openmp); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 620; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_4 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__filename); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 620; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 620; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(__pyx_int_0);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_int_0);
|
|
__Pyx_GIVEREF(__pyx_int_0);
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_116));
|
|
PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_kp_s_116));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_116));
|
|
PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_t_4);
|
|
__Pyx_GIVEREF(__pyx_t_4);
|
|
__pyx_t_4 = 0;
|
|
__pyx_t_4 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 620; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
__pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 620; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
PyList_SET_ITEM(__pyx_t_1, 0, __pyx_t_4);
|
|
__Pyx_GIVEREF(__pyx_t_4);
|
|
__pyx_t_4 = 0;
|
|
__pyx_t_4 = PyNumber_InPlaceAdd(((PyObject *)__pyx_v_temp), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 620; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_v_temp));
|
|
__pyx_v_temp = __pyx_t_4;
|
|
__pyx_t_4 = 0;
|
|
goto __pyx_L6;
|
|
}
|
|
__pyx_L6:;
|
|
|
|
/* "preprocessed_text.py":621
|
|
* temp += [ Openmp(0,"!$OMP PARALLEL",line.filename) ]
|
|
* temp += [ Openmp(0,"!$OMP MASTER",line.filename) ]
|
|
* temp += [ Call(0," call %s"%(program_name),line.filename) ] # <<<<<<<<<<<<<<
|
|
* if command_line.do_openmp:
|
|
* temp += [ Openmp(0,"!$OMP END MASTER",line.filename) ]
|
|
*/
|
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__Call); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 621; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_117), __pyx_v_program_name); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 621; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__filename); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 621; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 621; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_5));
|
|
__Pyx_INCREF(__pyx_int_0);
|
|
PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_int_0);
|
|
__Pyx_GIVEREF(__pyx_int_0);
|
|
PyTuple_SET_ITEM(__pyx_t_5, 1, ((PyObject *)__pyx_t_1));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_t_1));
|
|
PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_2);
|
|
__Pyx_GIVEREF(__pyx_t_2);
|
|
__pyx_t_1 = 0;
|
|
__pyx_t_2 = 0;
|
|
__pyx_t_2 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_t_5), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 621; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
|
|
__pyx_t_5 = PyList_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 621; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_5));
|
|
PyList_SET_ITEM(__pyx_t_5, 0, __pyx_t_2);
|
|
__Pyx_GIVEREF(__pyx_t_2);
|
|
__pyx_t_2 = 0;
|
|
__pyx_t_2 = PyNumber_InPlaceAdd(((PyObject *)__pyx_v_temp), ((PyObject *)__pyx_t_5)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 621; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_v_temp));
|
|
__pyx_v_temp = __pyx_t_2;
|
|
__pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":622
|
|
* temp += [ Openmp(0,"!$OMP MASTER",line.filename) ]
|
|
* temp += [ Call(0," call %s"%(program_name),line.filename) ]
|
|
* if command_line.do_openmp: # <<<<<<<<<<<<<<
|
|
* temp += [ Openmp(0,"!$OMP END MASTER",line.filename) ]
|
|
* temp += [ Openmp(0,"!$OMP END PARALLEL",line.filename) ]
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__command_line); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 622; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_5 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__do_openmp); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 622; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 622; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
if (__pyx_t_3) {
|
|
|
|
/* "preprocessed_text.py":623
|
|
* temp += [ Call(0," call %s"%(program_name),line.filename) ]
|
|
* if command_line.do_openmp:
|
|
* temp += [ Openmp(0,"!$OMP END MASTER",line.filename) ] # <<<<<<<<<<<<<<
|
|
* temp += [ Openmp(0,"!$OMP END PARALLEL",line.filename) ]
|
|
* if command_line.do_profile:
|
|
*/
|
|
__pyx_t_5 = __Pyx_GetName(__pyx_m, __pyx_n_s__Openmp); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 623; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__filename); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 623; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 623; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
__Pyx_INCREF(__pyx_int_0);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_int_0);
|
|
__Pyx_GIVEREF(__pyx_int_0);
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_118));
|
|
PyTuple_SET_ITEM(__pyx_t_4, 1, ((PyObject *)__pyx_kp_s_118));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_118));
|
|
PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_2);
|
|
__Pyx_GIVEREF(__pyx_t_2);
|
|
__pyx_t_2 = 0;
|
|
__pyx_t_2 = PyObject_Call(__pyx_t_5, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 623; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
|
|
__pyx_t_4 = PyList_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 623; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
PyList_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
|
|
__Pyx_GIVEREF(__pyx_t_2);
|
|
__pyx_t_2 = 0;
|
|
__pyx_t_2 = PyNumber_InPlaceAdd(((PyObject *)__pyx_v_temp), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 623; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_v_temp));
|
|
__pyx_v_temp = __pyx_t_2;
|
|
__pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":624
|
|
* if command_line.do_openmp:
|
|
* temp += [ Openmp(0,"!$OMP END MASTER",line.filename) ]
|
|
* temp += [ Openmp(0,"!$OMP END PARALLEL",line.filename) ] # <<<<<<<<<<<<<<
|
|
* if command_line.do_profile:
|
|
* temp += [ Simple_line(0,"call irp_print_timer()",line.filename) ]
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Openmp); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_4 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__filename); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_5));
|
|
__Pyx_INCREF(__pyx_int_0);
|
|
PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_int_0);
|
|
__Pyx_GIVEREF(__pyx_int_0);
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_119));
|
|
PyTuple_SET_ITEM(__pyx_t_5, 1, ((PyObject *)__pyx_kp_s_119));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_119));
|
|
PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_4);
|
|
__Pyx_GIVEREF(__pyx_t_4);
|
|
__pyx_t_4 = 0;
|
|
__pyx_t_4 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_t_5), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
|
|
__pyx_t_5 = PyList_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_5));
|
|
PyList_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
|
|
__Pyx_GIVEREF(__pyx_t_4);
|
|
__pyx_t_4 = 0;
|
|
__pyx_t_4 = PyNumber_InPlaceAdd(((PyObject *)__pyx_v_temp), ((PyObject *)__pyx_t_5)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_v_temp));
|
|
__pyx_v_temp = __pyx_t_4;
|
|
__pyx_t_4 = 0;
|
|
goto __pyx_L7;
|
|
}
|
|
__pyx_L7:;
|
|
|
|
/* "preprocessed_text.py":625
|
|
* temp += [ Openmp(0,"!$OMP END MASTER",line.filename) ]
|
|
* temp += [ Openmp(0,"!$OMP END PARALLEL",line.filename) ]
|
|
* if command_line.do_profile: # <<<<<<<<<<<<<<
|
|
* temp += [ Simple_line(0,"call irp_print_timer()",line.filename) ]
|
|
* temp += [ Simple_line(0," call irp_finalize_%s()"%(irp_id),line.filename) ]
|
|
*/
|
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__command_line); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 625; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_5 = PyObject_GetAttr(__pyx_t_4, __pyx_n_s__do_profile); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 625; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 625; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
if (__pyx_t_3) {
|
|
|
|
/* "preprocessed_text.py":626
|
|
* temp += [ Openmp(0,"!$OMP END PARALLEL",line.filename) ]
|
|
* if command_line.do_profile:
|
|
* temp += [ Simple_line(0,"call irp_print_timer()",line.filename) ] # <<<<<<<<<<<<<<
|
|
* temp += [ Simple_line(0," call irp_finalize_%s()"%(irp_id),line.filename) ]
|
|
* temp += [ End(0,"end program",line.filename) ]
|
|
*/
|
|
__pyx_t_5 = __Pyx_GetName(__pyx_m, __pyx_n_s__Simple_line); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 626; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__pyx_t_4 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__filename); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 626; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 626; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
|
__Pyx_INCREF(__pyx_int_0);
|
|
PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_int_0);
|
|
__Pyx_GIVEREF(__pyx_int_0);
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_120));
|
|
PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_kp_s_120));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_120));
|
|
PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_t_4);
|
|
__Pyx_GIVEREF(__pyx_t_4);
|
|
__pyx_t_4 = 0;
|
|
__pyx_t_4 = PyObject_Call(__pyx_t_5, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 626; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
|
__pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 626; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
|
PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_4);
|
|
__Pyx_GIVEREF(__pyx_t_4);
|
|
__pyx_t_4 = 0;
|
|
__pyx_t_4 = PyNumber_InPlaceAdd(((PyObject *)__pyx_v_temp), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 626; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_v_temp));
|
|
__pyx_v_temp = __pyx_t_4;
|
|
__pyx_t_4 = 0;
|
|
goto __pyx_L8;
|
|
}
|
|
__pyx_L8:;
|
|
|
|
/* "preprocessed_text.py":627
|
|
* if command_line.do_profile:
|
|
* temp += [ Simple_line(0,"call irp_print_timer()",line.filename) ]
|
|
* temp += [ Simple_line(0," call irp_finalize_%s()"%(irp_id),line.filename) ] # <<<<<<<<<<<<<<
|
|
* temp += [ End(0,"end program",line.filename) ]
|
|
* result = temp + \
|
|
*/
|
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__Simple_line); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 627; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__irp_id); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 627; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_5 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_121), __pyx_t_2); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 627; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_5));
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__filename); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 627; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 627; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(__pyx_int_0);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_int_0);
|
|
__Pyx_GIVEREF(__pyx_int_0);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_t_5));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_t_5));
|
|
PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_t_2);
|
|
__Pyx_GIVEREF(__pyx_t_2);
|
|
__pyx_t_5 = 0;
|
|
__pyx_t_2 = 0;
|
|
__pyx_t_2 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 627; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
__pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 627; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
PyList_SET_ITEM(__pyx_t_1, 0, __pyx_t_2);
|
|
__Pyx_GIVEREF(__pyx_t_2);
|
|
__pyx_t_2 = 0;
|
|
__pyx_t_2 = PyNumber_InPlaceAdd(((PyObject *)__pyx_v_temp), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 627; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_v_temp));
|
|
__pyx_v_temp = __pyx_t_2;
|
|
__pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":628
|
|
* temp += [ Simple_line(0,"call irp_print_timer()",line.filename) ]
|
|
* temp += [ Simple_line(0," call irp_finalize_%s()"%(irp_id),line.filename) ]
|
|
* temp += [ End(0,"end program",line.filename) ] # <<<<<<<<<<<<<<
|
|
* result = temp + \
|
|
* process_subroutine( Subroutine(line.i,"subroutine %s"%(program_name,),line.filename) )
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__End); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 628; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__filename); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 628; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 628; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
__Pyx_INCREF(__pyx_int_0);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_int_0);
|
|
__Pyx_GIVEREF(__pyx_int_0);
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_122));
|
|
PyTuple_SET_ITEM(__pyx_t_4, 1, ((PyObject *)__pyx_kp_s_122));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_122));
|
|
PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_1);
|
|
__Pyx_GIVEREF(__pyx_t_1);
|
|
__pyx_t_1 = 0;
|
|
__pyx_t_1 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 628; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
|
|
__pyx_t_4 = PyList_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 628; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
PyList_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
|
|
__Pyx_GIVEREF(__pyx_t_1);
|
|
__pyx_t_1 = 0;
|
|
__pyx_t_1 = PyNumber_InPlaceAdd(((PyObject *)__pyx_v_temp), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 628; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_v_temp));
|
|
__pyx_v_temp = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
if (unlikely(!__pyx_cur_scope->__pyx_v_process_subroutine)) { __Pyx_RaiseClosureNameError("process_subroutine"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 630; __pyx_clineno = __LINE__; goto __pyx_L1_error;} }__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__Subroutine); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 630; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
|
/* "preprocessed_text.py":630
|
|
* temp += [ End(0,"end program",line.filename) ]
|
|
* result = temp + \
|
|
* process_subroutine( Subroutine(line.i,"subroutine %s"%(program_name,),line.filename) ) # <<<<<<<<<<<<<<
|
|
* return result
|
|
*
|
|
*/
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_4 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__i); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 630; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 630; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
|
__Pyx_INCREF(__pyx_v_program_name);
|
|
PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_program_name);
|
|
__Pyx_GIVEREF(__pyx_v_program_name);
|
|
__pyx_t_5 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_123), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 630; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_5));
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__filename); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 630; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 630; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_6));
|
|
PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4);
|
|
__Pyx_GIVEREF(__pyx_t_4);
|
|
PyTuple_SET_ITEM(__pyx_t_6, 1, ((PyObject *)__pyx_t_5));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_t_5));
|
|
PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_t_2);
|
|
__Pyx_GIVEREF(__pyx_t_2);
|
|
__pyx_t_4 = 0;
|
|
__pyx_t_5 = 0;
|
|
__pyx_t_2 = 0;
|
|
__pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_6), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 630; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
|
|
__pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 630; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_6));
|
|
PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_2);
|
|
__Pyx_GIVEREF(__pyx_t_2);
|
|
__pyx_t_2 = 0;
|
|
__pyx_t_2 = PyObject_Call(__pyx_cur_scope->__pyx_v_process_subroutine, ((PyObject *)__pyx_t_6), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 630; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
|
|
__pyx_t_6 = PyNumber_Add(((PyObject *)__pyx_v_temp), __pyx_t_2); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 629; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_v_result = __pyx_t_6;
|
|
__pyx_t_6 = 0;
|
|
|
|
/* "preprocessed_text.py":631
|
|
* result = temp + \
|
|
* process_subroutine( Subroutine(line.i,"subroutine %s"%(program_name,),line.filename) )
|
|
* return result # <<<<<<<<<<<<<<
|
|
*
|
|
* d = { Irp_read : process_irp_read,
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__Pyx_INCREF(__pyx_v_result);
|
|
__pyx_r = __pyx_v_result;
|
|
goto __pyx_L0;
|
|
|
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
|
goto __pyx_L0;
|
|
__pyx_L1_error:;
|
|
__Pyx_XDECREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_t_2);
|
|
__Pyx_XDECREF(__pyx_t_4);
|
|
__Pyx_XDECREF(__pyx_t_5);
|
|
__Pyx_XDECREF(__pyx_t_6);
|
|
__Pyx_AddTraceback("preprocessed_text.irp_simple_statements.process_program", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__pyx_r = NULL;
|
|
__pyx_L0:;
|
|
__Pyx_XDECREF(__pyx_v_program_name);
|
|
__Pyx_XDECREF(__pyx_v_temp);
|
|
__Pyx_XDECREF(__pyx_v_result);
|
|
__Pyx_XGIVEREF(__pyx_r);
|
|
__Pyx_RefNannyFinishContext();
|
|
return __pyx_r;
|
|
}
|
|
|
|
/* "preprocessed_text.py":454
|
|
*
|
|
* ######################################################################
|
|
* def irp_simple_statements(text): # <<<<<<<<<<<<<<
|
|
* '''Processes simple statements'''
|
|
*
|
|
*/
|
|
|
|
static PyObject *__pyx_pf_17preprocessed_text_8irp_simple_statements(PyObject *__pyx_self, PyObject *__pyx_v_text); /*proto*/
|
|
static char __pyx_doc_17preprocessed_text_8irp_simple_statements[] = "Processes simple statements";
|
|
static PyMethodDef __pyx_mdef_17preprocessed_text_8irp_simple_statements = {__Pyx_NAMESTR("irp_simple_statements"), (PyCFunction)__pyx_pf_17preprocessed_text_8irp_simple_statements, METH_O, __Pyx_DOCSTR(__pyx_doc_17preprocessed_text_8irp_simple_statements)};
|
|
static PyObject *__pyx_pf_17preprocessed_text_8irp_simple_statements(PyObject *__pyx_self, PyObject *__pyx_v_text) {
|
|
struct __pyx_obj_17preprocessed_text___pyx_scope_struct_1_irp_simple_statements *__pyx_cur_scope;
|
|
PyObject *__pyx_v_process_irp_read = 0;
|
|
PyObject *__pyx_v_process_irp_write = 0;
|
|
PyObject *__pyx_v_process_return = 0;
|
|
PyObject *__pyx_v_process_assert = 0;
|
|
PyObject *__pyx_v_process_end = 0;
|
|
PyObject *__pyx_v_process_begin_provider = 0;
|
|
PyObject *__pyx_v_process_cont_provider = 0;
|
|
PyObject *__pyx_v_process_function = 0;
|
|
PyObject *__pyx_v_process_program = 0;
|
|
PyObject *__pyx_v_d = NULL;
|
|
PyObject *__pyx_v_result = NULL;
|
|
PyObject *__pyx_v_line = NULL;
|
|
PyObject *__pyx_v_buffer = NULL;
|
|
PyObject *__pyx_v_t = NULL;
|
|
PyObject *__pyx_r = NULL;
|
|
__Pyx_RefNannyDeclarations
|
|
PyObject *__pyx_t_1 = NULL;
|
|
PyObject *__pyx_t_2 = NULL;
|
|
Py_ssize_t __pyx_t_3;
|
|
PyObject *(*__pyx_t_4)(PyObject *);
|
|
Py_ssize_t __pyx_t_5;
|
|
Py_ssize_t __pyx_t_6;
|
|
PyObject *__pyx_t_7 = NULL;
|
|
PyObject *__pyx_t_8 = NULL;
|
|
int __pyx_t_9;
|
|
PyObject *__pyx_t_10 = NULL;
|
|
PyObject *__pyx_t_11 = NULL;
|
|
int __pyx_lineno = 0;
|
|
const char *__pyx_filename = NULL;
|
|
int __pyx_clineno = 0;
|
|
__Pyx_RefNannySetupContext("irp_simple_statements");
|
|
__pyx_cur_scope = (struct __pyx_obj_17preprocessed_text___pyx_scope_struct_1_irp_simple_statements *)__pyx_ptype_17preprocessed_text___pyx_scope_struct_1_irp_simple_statements->tp_new(__pyx_ptype_17preprocessed_text___pyx_scope_struct_1_irp_simple_statements, __pyx_empty_tuple, NULL);
|
|
if (unlikely(!__pyx_cur_scope)) {
|
|
__Pyx_RefNannyFinishContext();
|
|
return NULL;
|
|
}
|
|
__Pyx_GOTREF(__pyx_cur_scope);
|
|
__pyx_self = __pyx_self;
|
|
|
|
/* "preprocessed_text.py":457
|
|
* '''Processes simple statements'''
|
|
*
|
|
* def process_irp_rw(line,rw,t): # <<<<<<<<<<<<<<
|
|
* assert type(line) == t
|
|
* buffer = line.text.split()
|
|
*/
|
|
__pyx_t_1 = __pyx_binding_PyCFunctionType_NewEx(&__pyx_mdef_17preprocessed_text_21irp_simple_statements_process_irp_rw, NULL, __pyx_n_s__preprocessed_text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 457; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_process_irp_rw);
|
|
__Pyx_XDECREF(__pyx_cur_scope->__pyx_v_process_irp_rw);
|
|
__Pyx_GIVEREF(__pyx_t_1);
|
|
__pyx_cur_scope->__pyx_v_process_irp_rw = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":480
|
|
* return result
|
|
*
|
|
* def process_irp_read (line): # <<<<<<<<<<<<<<
|
|
* assert type(line) == Irp_read
|
|
* return process_irp_rw(line,'read' ,Irp_read )
|
|
*/
|
|
__pyx_t_1 = __pyx_binding_PyCFunctionType_NewEx(&__pyx_mdef_17preprocessed_text_21irp_simple_statements_1process_irp_read, ((PyObject*)__pyx_cur_scope), __pyx_n_s__preprocessed_text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 480; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_v_process_irp_read);
|
|
__pyx_v_process_irp_read = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":484
|
|
* return process_irp_rw(line,'read' ,Irp_read )
|
|
*
|
|
* def process_irp_write(line): # <<<<<<<<<<<<<<
|
|
* assert type(line) == Irp_write
|
|
* return process_irp_rw(line,'writ' ,Irp_write)
|
|
*/
|
|
__pyx_t_1 = __pyx_binding_PyCFunctionType_NewEx(&__pyx_mdef_17preprocessed_text_21irp_simple_statements_2process_irp_write, ((PyObject*)__pyx_cur_scope), __pyx_n_s__preprocessed_text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 484; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_v_process_irp_write);
|
|
__pyx_v_process_irp_write = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":488
|
|
* return process_irp_rw(line,'writ' ,Irp_write)
|
|
*
|
|
* def process_return(line): # <<<<<<<<<<<<<<
|
|
* assert type(line) == Return
|
|
* if command_line.do_assert or command_line.do_debug:
|
|
*/
|
|
__pyx_t_1 = __pyx_binding_PyCFunctionType_NewEx(&__pyx_mdef_17preprocessed_text_21irp_simple_statements_3process_return, NULL, __pyx_n_s__preprocessed_text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 488; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_v_process_return);
|
|
__pyx_v_process_return = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":497
|
|
* return result
|
|
*
|
|
* def debug_conditions(line): # <<<<<<<<<<<<<<
|
|
* '''Find condition in assert statement for debug'''
|
|
* assert type(line) == Assert
|
|
*/
|
|
__pyx_t_1 = __pyx_binding_PyCFunctionType_NewEx(&__pyx_mdef_17preprocessed_text_21irp_simple_statements_4debug_conditions, NULL, __pyx_n_s__preprocessed_text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 497; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_debug_conditions);
|
|
__Pyx_XDECREF(__pyx_cur_scope->__pyx_v_debug_conditions);
|
|
__Pyx_GIVEREF(__pyx_t_1);
|
|
__pyx_cur_scope->__pyx_v_debug_conditions = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":510
|
|
* return result
|
|
*
|
|
* def process_assert(line): # <<<<<<<<<<<<<<
|
|
* assert type(line) == Assert
|
|
* if command_line.do_assert:
|
|
*/
|
|
__pyx_t_1 = __pyx_binding_PyCFunctionType_NewEx(&__pyx_mdef_17preprocessed_text_21irp_simple_statements_5process_assert, ((PyObject*)__pyx_cur_scope), __pyx_n_s__preprocessed_text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 510; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_v_process_assert);
|
|
__pyx_v_process_assert = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":538
|
|
* return result
|
|
*
|
|
* def process_end(line): # <<<<<<<<<<<<<<
|
|
* '''Set irp_here variable in provider block'''
|
|
* line.text = "end"
|
|
*/
|
|
__pyx_t_1 = __pyx_binding_PyCFunctionType_NewEx(&__pyx_mdef_17preprocessed_text_21irp_simple_statements_6process_end, NULL, __pyx_n_s__preprocessed_text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 538; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_v_process_end);
|
|
__pyx_v_process_end = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":552
|
|
* return result
|
|
*
|
|
* def process_begin_provider(line): # <<<<<<<<<<<<<<
|
|
* assert type(line) == Begin_provider
|
|
* buffer = line.lower.replace('['," ")
|
|
*/
|
|
__pyx_t_1 = __pyx_binding_PyCFunctionType_NewEx(&__pyx_mdef_17preprocessed_text_21irp_simple_statements_7process_begin_provider, NULL, __pyx_n_s__preprocessed_text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 552; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_v_process_begin_provider);
|
|
__pyx_v_process_begin_provider = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":571
|
|
* return result
|
|
*
|
|
* def process_cont_provider(line): # <<<<<<<<<<<<<<
|
|
* assert type(line) == Cont_provider
|
|
* buffer = line.lower.replace('['," ")
|
|
*/
|
|
__pyx_t_1 = __pyx_binding_PyCFunctionType_NewEx(&__pyx_mdef_17preprocessed_text_21irp_simple_statements_8process_cont_provider, NULL, __pyx_n_s__preprocessed_text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 571; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_v_process_cont_provider);
|
|
__pyx_v_process_cont_provider = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":583
|
|
* return [ Cont_provider(i,line.text,(f,varname)) ]
|
|
*
|
|
* def process_subroutine(line): # <<<<<<<<<<<<<<
|
|
* assert type(line) == Subroutine
|
|
* subname = find_subname(line)
|
|
*/
|
|
__pyx_t_1 = __pyx_binding_PyCFunctionType_NewEx(&__pyx_mdef_17preprocessed_text_21irp_simple_statements_9process_subroutine, NULL, __pyx_n_s__preprocessed_text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 583; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_XGOTREF(__pyx_cur_scope->__pyx_v_process_subroutine);
|
|
__Pyx_XDECREF(__pyx_cur_scope->__pyx_v_process_subroutine);
|
|
__Pyx_GIVEREF(__pyx_t_1);
|
|
__pyx_cur_scope->__pyx_v_process_subroutine = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":597
|
|
* return result
|
|
*
|
|
* def process_function(line): # <<<<<<<<<<<<<<
|
|
* assert type(line) == Function
|
|
* subname = find_subname(line)
|
|
*/
|
|
__pyx_t_1 = __pyx_binding_PyCFunctionType_NewEx(&__pyx_mdef_17preprocessed_text_21irp_simple_statements_10process_function, NULL, __pyx_n_s__preprocessed_text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 597; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_v_process_function);
|
|
__pyx_v_process_function = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":612
|
|
*
|
|
*
|
|
* def process_program(line): # <<<<<<<<<<<<<<
|
|
* assert type(line) == Program
|
|
* program_name = line.lower.split()[1]
|
|
*/
|
|
__pyx_t_1 = __pyx_binding_PyCFunctionType_NewEx(&__pyx_mdef_17preprocessed_text_21irp_simple_statements_11process_program, ((PyObject*)__pyx_cur_scope), __pyx_n_s__preprocessed_text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 612; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_v_process_program);
|
|
__pyx_v_process_program = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":633
|
|
* return result
|
|
*
|
|
* d = { Irp_read : process_irp_read, # <<<<<<<<<<<<<<
|
|
* Irp_write : process_irp_write,
|
|
* Return : process_return,
|
|
*/
|
|
__pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 633; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Irp_read); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 633; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_v_process_irp_read) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 633; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":634
|
|
*
|
|
* d = { Irp_read : process_irp_read,
|
|
* Irp_write : process_irp_write, # <<<<<<<<<<<<<<
|
|
* Return : process_return,
|
|
* Assert : process_assert,
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Irp_write); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 634; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_v_process_irp_write) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 633; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":635
|
|
* d = { Irp_read : process_irp_read,
|
|
* Irp_write : process_irp_write,
|
|
* Return : process_return, # <<<<<<<<<<<<<<
|
|
* Assert : process_assert,
|
|
* End : process_end,
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Return); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 635; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_v_process_return) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 633; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":636
|
|
* Irp_write : process_irp_write,
|
|
* Return : process_return,
|
|
* Assert : process_assert, # <<<<<<<<<<<<<<
|
|
* End : process_end,
|
|
* Begin_provider : process_begin_provider,
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Assert); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 636; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_v_process_assert) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 633; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":637
|
|
* Return : process_return,
|
|
* Assert : process_assert,
|
|
* End : process_end, # <<<<<<<<<<<<<<
|
|
* Begin_provider : process_begin_provider,
|
|
* Cont_provider : process_cont_provider,
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__End); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 637; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_v_process_end) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 633; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":638
|
|
* Assert : process_assert,
|
|
* End : process_end,
|
|
* Begin_provider : process_begin_provider, # <<<<<<<<<<<<<<
|
|
* Cont_provider : process_cont_provider,
|
|
* End_provider : process_end,
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Begin_provider); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 638; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_v_process_begin_provider) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 633; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":639
|
|
* End : process_end,
|
|
* Begin_provider : process_begin_provider,
|
|
* Cont_provider : process_cont_provider, # <<<<<<<<<<<<<<
|
|
* End_provider : process_end,
|
|
* Subroutine : process_subroutine,
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Cont_provider); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 639; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_v_process_cont_provider) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 633; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":640
|
|
* Begin_provider : process_begin_provider,
|
|
* Cont_provider : process_cont_provider,
|
|
* End_provider : process_end, # <<<<<<<<<<<<<<
|
|
* Subroutine : process_subroutine,
|
|
* Function : process_function,
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__End_provider); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 640; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_v_process_end) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 633; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":641
|
|
* Cont_provider : process_cont_provider,
|
|
* End_provider : process_end,
|
|
* Subroutine : process_subroutine, # <<<<<<<<<<<<<<
|
|
* Function : process_function,
|
|
* Program : process_program,
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Subroutine); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 641; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_cur_scope->__pyx_v_process_subroutine) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 633; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":642
|
|
* End_provider : process_end,
|
|
* Subroutine : process_subroutine,
|
|
* Function : process_function, # <<<<<<<<<<<<<<
|
|
* Program : process_program,
|
|
* }
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Function); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 642; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_v_process_function) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 633; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":643
|
|
* Subroutine : process_subroutine,
|
|
* Function : process_function,
|
|
* Program : process_program, # <<<<<<<<<<<<<<
|
|
* }
|
|
*
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Program); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 643; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_v_process_program) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 633; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_v_d = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":646
|
|
* }
|
|
*
|
|
* result = [] # <<<<<<<<<<<<<<
|
|
* for line in text:
|
|
* buffer = [ line ]
|
|
*/
|
|
__pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 646; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__pyx_v_result = ((PyObject *)__pyx_t_1);
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":647
|
|
*
|
|
* result = []
|
|
* for line in text: # <<<<<<<<<<<<<<
|
|
* buffer = [ line ]
|
|
* for t in d:
|
|
*/
|
|
if (PyList_CheckExact(__pyx_v_text) || PyTuple_CheckExact(__pyx_v_text)) {
|
|
__pyx_t_1 = __pyx_v_text; __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = 0;
|
|
__pyx_t_4 = NULL;
|
|
} else {
|
|
__pyx_t_3 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 647; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_4 = Py_TYPE(__pyx_t_1)->tp_iternext;
|
|
}
|
|
for (;;) {
|
|
if (PyList_CheckExact(__pyx_t_1)) {
|
|
if (__pyx_t_3 >= PyList_GET_SIZE(__pyx_t_1)) break;
|
|
__pyx_t_2 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_3); __Pyx_INCREF(__pyx_t_2); __pyx_t_3++;
|
|
} else if (PyTuple_CheckExact(__pyx_t_1)) {
|
|
if (__pyx_t_3 >= PyTuple_GET_SIZE(__pyx_t_1)) break;
|
|
__pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_3); __Pyx_INCREF(__pyx_t_2); __pyx_t_3++;
|
|
} else {
|
|
__pyx_t_2 = __pyx_t_4(__pyx_t_1);
|
|
if (unlikely(!__pyx_t_2)) {
|
|
if (PyErr_Occurred()) {
|
|
if (likely(PyErr_ExceptionMatches(PyExc_StopIteration))) PyErr_Clear();
|
|
else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 647; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
break;
|
|
}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
}
|
|
__Pyx_XDECREF(__pyx_v_line);
|
|
__pyx_v_line = __pyx_t_2;
|
|
__pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":648
|
|
* result = []
|
|
* for line in text:
|
|
* buffer = [ line ] # <<<<<<<<<<<<<<
|
|
* for t in d:
|
|
* if type(line) == t:
|
|
*/
|
|
__pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 648; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyList_SET_ITEM(__pyx_t_2, 0, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
__Pyx_XDECREF(__pyx_v_buffer);
|
|
__pyx_v_buffer = ((PyObject *)__pyx_t_2);
|
|
__pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":649
|
|
* for line in text:
|
|
* buffer = [ line ]
|
|
* for t in d: # <<<<<<<<<<<<<<
|
|
* if type(line) == t:
|
|
* buffer = d[t](line)
|
|
*/
|
|
__Pyx_INCREF(((PyObject *)__pyx_v_d));
|
|
__Pyx_XDECREF(__pyx_t_2);
|
|
__pyx_t_2 = ((PyObject *)__pyx_v_d);
|
|
__pyx_t_5 = 0;
|
|
__pyx_t_6 = PyDict_Size(__pyx_t_2);
|
|
while (1) {
|
|
if (unlikely(__pyx_t_6 != PyDict_Size(__pyx_t_2))) {
|
|
PyErr_SetString(PyExc_RuntimeError, "dictionary changed size during iteration"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 649; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
if (!PyDict_Next(__pyx_t_2, (&__pyx_t_5), (&__pyx_t_7), NULL)) break;
|
|
__Pyx_INCREF(((PyObject *)__pyx_t_7));
|
|
__Pyx_XDECREF(__pyx_v_t);
|
|
__pyx_v_t = __pyx_t_7;
|
|
|
|
/* "preprocessed_text.py":650
|
|
* buffer = [ line ]
|
|
* for t in d:
|
|
* if type(line) == t: # <<<<<<<<<<<<<<
|
|
* buffer = d[t](line)
|
|
* break
|
|
*/
|
|
__pyx_t_8 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_line)), __pyx_v_t, Py_EQ); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 650; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_8);
|
|
__pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_8); if (unlikely(__pyx_t_9 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 650; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
if (__pyx_t_9) {
|
|
|
|
/* "preprocessed_text.py":651
|
|
* for t in d:
|
|
* if type(line) == t:
|
|
* buffer = d[t](line) # <<<<<<<<<<<<<<
|
|
* break
|
|
* result += buffer
|
|
*/
|
|
__pyx_t_8 = __Pyx_PyDict_GetItem(((PyObject *)__pyx_v_d), __pyx_v_t); if (!__pyx_t_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 651; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_8);
|
|
__pyx_t_10 = PyTuple_New(1); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 651; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_10));
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
__pyx_t_11 = PyObject_Call(__pyx_t_8, ((PyObject *)__pyx_t_10), NULL); if (unlikely(!__pyx_t_11)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 651; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_11);
|
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_10)); __pyx_t_10 = 0;
|
|
__Pyx_DECREF(__pyx_v_buffer);
|
|
__pyx_v_buffer = __pyx_t_11;
|
|
__pyx_t_11 = 0;
|
|
|
|
/* "preprocessed_text.py":652
|
|
* if type(line) == t:
|
|
* buffer = d[t](line)
|
|
* break # <<<<<<<<<<<<<<
|
|
* result += buffer
|
|
* return result
|
|
*/
|
|
goto __pyx_L8_break;
|
|
goto __pyx_L9;
|
|
}
|
|
__pyx_L9:;
|
|
}
|
|
__pyx_L8_break:;
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":653
|
|
* buffer = d[t](line)
|
|
* break
|
|
* result += buffer # <<<<<<<<<<<<<<
|
|
* return result
|
|
*
|
|
*/
|
|
__pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_result, __pyx_v_buffer); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 653; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_v_result);
|
|
__pyx_v_result = __pyx_t_2;
|
|
__pyx_t_2 = 0;
|
|
}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":654
|
|
* break
|
|
* result += buffer
|
|
* return result # <<<<<<<<<<<<<<
|
|
*
|
|
*
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__Pyx_INCREF(__pyx_v_result);
|
|
__pyx_r = __pyx_v_result;
|
|
goto __pyx_L0;
|
|
|
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
|
goto __pyx_L0;
|
|
__pyx_L1_error:;
|
|
__Pyx_XDECREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_t_2);
|
|
__Pyx_XDECREF(__pyx_t_8);
|
|
__Pyx_XDECREF(__pyx_t_10);
|
|
__Pyx_XDECREF(__pyx_t_11);
|
|
__Pyx_AddTraceback("preprocessed_text.irp_simple_statements", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__pyx_r = NULL;
|
|
__pyx_L0:;
|
|
__Pyx_XDECREF(__pyx_v_process_irp_read);
|
|
__Pyx_XDECREF(__pyx_v_process_irp_write);
|
|
__Pyx_XDECREF(__pyx_v_process_return);
|
|
__Pyx_XDECREF(__pyx_v_process_assert);
|
|
__Pyx_XDECREF(__pyx_v_process_end);
|
|
__Pyx_XDECREF(__pyx_v_process_begin_provider);
|
|
__Pyx_XDECREF(__pyx_v_process_cont_provider);
|
|
__Pyx_XDECREF(__pyx_v_process_function);
|
|
__Pyx_XDECREF(__pyx_v_process_program);
|
|
__Pyx_XDECREF(__pyx_v_d);
|
|
__Pyx_XDECREF(__pyx_v_result);
|
|
__Pyx_XDECREF(__pyx_v_line);
|
|
__Pyx_XDECREF(__pyx_v_buffer);
|
|
__Pyx_XDECREF(__pyx_v_t);
|
|
__Pyx_DECREF(((PyObject *)__pyx_cur_scope));
|
|
__Pyx_XGIVEREF(__pyx_r);
|
|
__Pyx_RefNannyFinishContext();
|
|
return __pyx_r;
|
|
}
|
|
|
|
/* "preprocessed_text.py":658
|
|
*
|
|
* ######################################################################
|
|
* def change_includes(text): # <<<<<<<<<<<<<<
|
|
* '''Deals with include files'''
|
|
* result = []
|
|
*/
|
|
|
|
static PyObject *__pyx_pf_17preprocessed_text_9change_includes(PyObject *__pyx_self, PyObject *__pyx_v_text); /*proto*/
|
|
static char __pyx_doc_17preprocessed_text_9change_includes[] = "Deals with include files";
|
|
static PyMethodDef __pyx_mdef_17preprocessed_text_9change_includes = {__Pyx_NAMESTR("change_includes"), (PyCFunction)__pyx_pf_17preprocessed_text_9change_includes, METH_O, __Pyx_DOCSTR(__pyx_doc_17preprocessed_text_9change_includes)};
|
|
static PyObject *__pyx_pf_17preprocessed_text_9change_includes(PyObject *__pyx_self, PyObject *__pyx_v_text) {
|
|
PyObject *__pyx_v_result = NULL;
|
|
PyObject *__pyx_v_line = NULL;
|
|
PyObject *__pyx_v_txt = NULL;
|
|
PyObject *__pyx_v_filename = NULL;
|
|
PyObject *__pyx_v_file = NULL;
|
|
PyObject *__pyx_r = NULL;
|
|
__Pyx_RefNannyDeclarations
|
|
PyObject *__pyx_t_1 = NULL;
|
|
Py_ssize_t __pyx_t_2;
|
|
PyObject *(*__pyx_t_3)(PyObject *);
|
|
PyObject *__pyx_t_4 = NULL;
|
|
PyObject *__pyx_t_5 = NULL;
|
|
int __pyx_t_6;
|
|
Py_ssize_t __pyx_t_7;
|
|
PyObject *__pyx_t_8 = NULL;
|
|
PyObject *__pyx_t_9 = NULL;
|
|
PyObject *__pyx_t_10 = NULL;
|
|
PyObject *__pyx_t_11 = NULL;
|
|
PyObject *__pyx_t_12 = NULL;
|
|
int __pyx_t_13;
|
|
PyObject *__pyx_t_14 = NULL;
|
|
PyObject *__pyx_t_15 = NULL;
|
|
PyObject *__pyx_t_16 = NULL;
|
|
PyObject *__pyx_t_17 = NULL;
|
|
int __pyx_lineno = 0;
|
|
const char *__pyx_filename = NULL;
|
|
int __pyx_clineno = 0;
|
|
__Pyx_RefNannySetupContext("change_includes");
|
|
__pyx_self = __pyx_self;
|
|
|
|
/* "preprocessed_text.py":660
|
|
* def change_includes(text):
|
|
* '''Deals with include files'''
|
|
* result = [] # <<<<<<<<<<<<<<
|
|
* for line in text:
|
|
* if type(line) == Include:
|
|
*/
|
|
__pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 660; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__pyx_v_result = ((PyObject *)__pyx_t_1);
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":661
|
|
* '''Deals with include files'''
|
|
* result = []
|
|
* for line in text: # <<<<<<<<<<<<<<
|
|
* if type(line) == Include:
|
|
* txt = line.text.replace('"',"'").split("'")
|
|
*/
|
|
if (PyList_CheckExact(__pyx_v_text) || PyTuple_CheckExact(__pyx_v_text)) {
|
|
__pyx_t_1 = __pyx_v_text; __Pyx_INCREF(__pyx_t_1); __pyx_t_2 = 0;
|
|
__pyx_t_3 = NULL;
|
|
} else {
|
|
__pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 661; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_3 = Py_TYPE(__pyx_t_1)->tp_iternext;
|
|
}
|
|
for (;;) {
|
|
if (PyList_CheckExact(__pyx_t_1)) {
|
|
if (__pyx_t_2 >= PyList_GET_SIZE(__pyx_t_1)) break;
|
|
__pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++;
|
|
} else if (PyTuple_CheckExact(__pyx_t_1)) {
|
|
if (__pyx_t_2 >= PyTuple_GET_SIZE(__pyx_t_1)) break;
|
|
__pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++;
|
|
} else {
|
|
__pyx_t_4 = __pyx_t_3(__pyx_t_1);
|
|
if (unlikely(!__pyx_t_4)) {
|
|
if (PyErr_Occurred()) {
|
|
if (likely(PyErr_ExceptionMatches(PyExc_StopIteration))) PyErr_Clear();
|
|
else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 661; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
break;
|
|
}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
}
|
|
__Pyx_XDECREF(__pyx_v_line);
|
|
__pyx_v_line = __pyx_t_4;
|
|
__pyx_t_4 = 0;
|
|
|
|
/* "preprocessed_text.py":662
|
|
* result = []
|
|
* for line in text:
|
|
* if type(line) == Include: # <<<<<<<<<<<<<<
|
|
* txt = line.text.replace('"',"'").split("'")
|
|
* if len(txt) != 3:
|
|
*/
|
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__Include); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 662; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_5 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_line)), __pyx_t_4, Py_EQ); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 662; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 662; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
if (__pyx_t_6) {
|
|
|
|
/* "preprocessed_text.py":663
|
|
* for line in text:
|
|
* if type(line) == Include:
|
|
* txt = line.text.replace('"',"'").split("'") # <<<<<<<<<<<<<<
|
|
* if len(txt) != 3:
|
|
* print txt
|
|
*/
|
|
__pyx_t_5 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__text); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 663; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__pyx_t_4 = PyObject_GetAttr(__pyx_t_5, __pyx_n_s__replace); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 663; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
__pyx_t_5 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_k_tuple_125), NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 663; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__pyx_t_4 = PyObject_GetAttr(__pyx_t_5, __pyx_n_s__split); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 663; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
__pyx_t_5 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_k_tuple_126), NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 663; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__Pyx_XDECREF(__pyx_v_txt);
|
|
__pyx_v_txt = __pyx_t_5;
|
|
__pyx_t_5 = 0;
|
|
|
|
/* "preprocessed_text.py":664
|
|
* if type(line) == Include:
|
|
* txt = line.text.replace('"',"'").split("'")
|
|
* if len(txt) != 3: # <<<<<<<<<<<<<<
|
|
* print txt
|
|
* error.fail(line,"Error in include statement")
|
|
*/
|
|
__pyx_t_7 = PyObject_Length(__pyx_v_txt); if (unlikely(__pyx_t_7 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 664; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__pyx_t_6 = (__pyx_t_7 != 3);
|
|
if (__pyx_t_6) {
|
|
|
|
/* "preprocessed_text.py":665
|
|
* txt = line.text.replace('"',"'").split("'")
|
|
* if len(txt) != 3:
|
|
* print txt # <<<<<<<<<<<<<<
|
|
* error.fail(line,"Error in include statement")
|
|
* filename = txt[1].strip()
|
|
*/
|
|
if (__Pyx_PrintOne(0, __pyx_v_txt) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 665; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
|
/* "preprocessed_text.py":666
|
|
* if len(txt) != 3:
|
|
* print txt
|
|
* error.fail(line,"Error in include statement") # <<<<<<<<<<<<<<
|
|
* filename = txt[1].strip()
|
|
* try:
|
|
*/
|
|
__pyx_t_5 = __Pyx_GetName(__pyx_m, __pyx_n_s__error); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 666; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__pyx_t_4 = PyObject_GetAttr(__pyx_t_5, __pyx_n_s__fail); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 666; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
__pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 666; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_5));
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_127));
|
|
PyTuple_SET_ITEM(__pyx_t_5, 1, ((PyObject *)__pyx_kp_s_127));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_127));
|
|
__pyx_t_8 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_t_5), NULL); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 666; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_8);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
|
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
goto __pyx_L8;
|
|
}
|
|
__pyx_L8:;
|
|
|
|
/* "preprocessed_text.py":667
|
|
* print txt
|
|
* error.fail(line,"Error in include statement")
|
|
* filename = txt[1].strip() # <<<<<<<<<<<<<<
|
|
* try:
|
|
* file = open(filename,'r')
|
|
*/
|
|
__pyx_t_8 = __Pyx_GetItemInt(__pyx_v_txt, 1, sizeof(long), PyInt_FromLong); if (!__pyx_t_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 667; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_8);
|
|
__pyx_t_5 = PyObject_GetAttr(__pyx_t_8, __pyx_n_s__strip); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 667; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
__pyx_t_8 = PyObject_Call(__pyx_t_5, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 667; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_8);
|
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
__Pyx_XDECREF(__pyx_v_filename);
|
|
__pyx_v_filename = __pyx_t_8;
|
|
__pyx_t_8 = 0;
|
|
|
|
/* "preprocessed_text.py":668
|
|
* error.fail(line,"Error in include statement")
|
|
* filename = txt[1].strip()
|
|
* try: # <<<<<<<<<<<<<<
|
|
* file = open(filename,'r')
|
|
* file.close()
|
|
*/
|
|
{
|
|
__Pyx_ExceptionSave(&__pyx_t_9, &__pyx_t_10, &__pyx_t_11);
|
|
__Pyx_XGOTREF(__pyx_t_9);
|
|
__Pyx_XGOTREF(__pyx_t_10);
|
|
__Pyx_XGOTREF(__pyx_t_11);
|
|
/*try:*/ {
|
|
|
|
/* "preprocessed_text.py":669
|
|
* filename = txt[1].strip()
|
|
* try:
|
|
* file = open(filename,'r') # <<<<<<<<<<<<<<
|
|
* file.close()
|
|
* result.append(Include(line.i,"! include '%s'"%filename,filename))
|
|
*/
|
|
__pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 669; __pyx_clineno = __LINE__; goto __pyx_L9_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_8));
|
|
__Pyx_INCREF(__pyx_v_filename);
|
|
PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_v_filename);
|
|
__Pyx_GIVEREF(__pyx_v_filename);
|
|
__Pyx_INCREF(((PyObject *)__pyx_n_s__r));
|
|
PyTuple_SET_ITEM(__pyx_t_8, 1, ((PyObject *)__pyx_n_s__r));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_n_s__r));
|
|
__pyx_t_5 = PyObject_Call(__pyx_builtin_open, ((PyObject *)__pyx_t_8), NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 669; __pyx_clineno = __LINE__; goto __pyx_L9_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_8)); __pyx_t_8 = 0;
|
|
__Pyx_XDECREF(__pyx_v_file);
|
|
__pyx_v_file = __pyx_t_5;
|
|
__pyx_t_5 = 0;
|
|
|
|
/* "preprocessed_text.py":670
|
|
* try:
|
|
* file = open(filename,'r')
|
|
* file.close() # <<<<<<<<<<<<<<
|
|
* result.append(Include(line.i,"! include '%s'"%filename,filename))
|
|
* result += create_preprocessed_text(filename)
|
|
*/
|
|
__pyx_t_5 = PyObject_GetAttr(__pyx_v_file, __pyx_n_s__close); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 670; __pyx_clineno = __LINE__; goto __pyx_L9_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__pyx_t_8 = PyObject_Call(__pyx_t_5, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 670; __pyx_clineno = __LINE__; goto __pyx_L9_error;}
|
|
__Pyx_GOTREF(__pyx_t_8);
|
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
|
|
/* "preprocessed_text.py":671
|
|
* file = open(filename,'r')
|
|
* file.close()
|
|
* result.append(Include(line.i,"! include '%s'"%filename,filename)) # <<<<<<<<<<<<<<
|
|
* result += create_preprocessed_text(filename)
|
|
* except IOError:
|
|
*/
|
|
__pyx_t_8 = __Pyx_GetName(__pyx_m, __pyx_n_s__Include); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 671; __pyx_clineno = __LINE__; goto __pyx_L9_error;}
|
|
__Pyx_GOTREF(__pyx_t_8);
|
|
__pyx_t_5 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__i); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 671; __pyx_clineno = __LINE__; goto __pyx_L9_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__pyx_t_4 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_128), __pyx_v_filename); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 671; __pyx_clineno = __LINE__; goto __pyx_L9_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
__pyx_t_12 = PyTuple_New(3); if (unlikely(!__pyx_t_12)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 671; __pyx_clineno = __LINE__; goto __pyx_L9_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_12));
|
|
PyTuple_SET_ITEM(__pyx_t_12, 0, __pyx_t_5);
|
|
__Pyx_GIVEREF(__pyx_t_5);
|
|
PyTuple_SET_ITEM(__pyx_t_12, 1, ((PyObject *)__pyx_t_4));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_t_4));
|
|
__Pyx_INCREF(__pyx_v_filename);
|
|
PyTuple_SET_ITEM(__pyx_t_12, 2, __pyx_v_filename);
|
|
__Pyx_GIVEREF(__pyx_v_filename);
|
|
__pyx_t_5 = 0;
|
|
__pyx_t_4 = 0;
|
|
__pyx_t_4 = PyObject_Call(__pyx_t_8, ((PyObject *)__pyx_t_12), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 671; __pyx_clineno = __LINE__; goto __pyx_L9_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_12)); __pyx_t_12 = 0;
|
|
__pyx_t_12 = __Pyx_PyObject_Append(__pyx_v_result, __pyx_t_4); if (unlikely(!__pyx_t_12)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 671; __pyx_clineno = __LINE__; goto __pyx_L9_error;}
|
|
__Pyx_GOTREF(__pyx_t_12);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
|
|
|
|
/* "preprocessed_text.py":672
|
|
* file.close()
|
|
* result.append(Include(line.i,"! include '%s'"%filename,filename))
|
|
* result += create_preprocessed_text(filename) # <<<<<<<<<<<<<<
|
|
* except IOError:
|
|
* result.append(Declaration(line.i,line.text,line.filename))
|
|
*/
|
|
__pyx_t_12 = __Pyx_GetName(__pyx_m, __pyx_n_s_1); if (unlikely(!__pyx_t_12)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 672; __pyx_clineno = __LINE__; goto __pyx_L9_error;}
|
|
__Pyx_GOTREF(__pyx_t_12);
|
|
__pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 672; __pyx_clineno = __LINE__; goto __pyx_L9_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
__Pyx_INCREF(__pyx_v_filename);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_filename);
|
|
__Pyx_GIVEREF(__pyx_v_filename);
|
|
__pyx_t_8 = PyObject_Call(__pyx_t_12, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 672; __pyx_clineno = __LINE__; goto __pyx_L9_error;}
|
|
__Pyx_GOTREF(__pyx_t_8);
|
|
__Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
|
|
__pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_result, __pyx_t_8); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 672; __pyx_clineno = __LINE__; goto __pyx_L9_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
__Pyx_DECREF(__pyx_v_result);
|
|
__pyx_v_result = __pyx_t_4;
|
|
__pyx_t_4 = 0;
|
|
}
|
|
__Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
|
|
__Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
|
|
__Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
|
|
goto __pyx_L16_try_end;
|
|
__pyx_L9_error:;
|
|
__Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
__Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
|
|
__Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
|
|
/* "preprocessed_text.py":673
|
|
* result.append(Include(line.i,"! include '%s'"%filename,filename))
|
|
* result += create_preprocessed_text(filename)
|
|
* except IOError: # <<<<<<<<<<<<<<
|
|
* result.append(Declaration(line.i,line.text,line.filename))
|
|
* else:
|
|
*/
|
|
__pyx_t_13 = PyErr_ExceptionMatches(__pyx_builtin_IOError);
|
|
if (__pyx_t_13) {
|
|
__Pyx_AddTraceback("preprocessed_text.change_includes", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_8, &__pyx_t_12) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 673; __pyx_clineno = __LINE__; goto __pyx_L11_except_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_GOTREF(__pyx_t_8);
|
|
__Pyx_GOTREF(__pyx_t_12);
|
|
|
|
/* "preprocessed_text.py":674
|
|
* result += create_preprocessed_text(filename)
|
|
* except IOError:
|
|
* result.append(Declaration(line.i,line.text,line.filename)) # <<<<<<<<<<<<<<
|
|
* else:
|
|
* result.append(line)
|
|
*/
|
|
__pyx_t_5 = __Pyx_GetName(__pyx_m, __pyx_n_s__Declaration); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 674; __pyx_clineno = __LINE__; goto __pyx_L11_except_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__pyx_t_14 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__i); if (unlikely(!__pyx_t_14)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 674; __pyx_clineno = __LINE__; goto __pyx_L11_except_error;}
|
|
__Pyx_GOTREF(__pyx_t_14);
|
|
__pyx_t_15 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__text); if (unlikely(!__pyx_t_15)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 674; __pyx_clineno = __LINE__; goto __pyx_L11_except_error;}
|
|
__Pyx_GOTREF(__pyx_t_15);
|
|
__pyx_t_16 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__filename); if (unlikely(!__pyx_t_16)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 674; __pyx_clineno = __LINE__; goto __pyx_L11_except_error;}
|
|
__Pyx_GOTREF(__pyx_t_16);
|
|
__pyx_t_17 = PyTuple_New(3); if (unlikely(!__pyx_t_17)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 674; __pyx_clineno = __LINE__; goto __pyx_L11_except_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_17));
|
|
PyTuple_SET_ITEM(__pyx_t_17, 0, __pyx_t_14);
|
|
__Pyx_GIVEREF(__pyx_t_14);
|
|
PyTuple_SET_ITEM(__pyx_t_17, 1, __pyx_t_15);
|
|
__Pyx_GIVEREF(__pyx_t_15);
|
|
PyTuple_SET_ITEM(__pyx_t_17, 2, __pyx_t_16);
|
|
__Pyx_GIVEREF(__pyx_t_16);
|
|
__pyx_t_14 = 0;
|
|
__pyx_t_15 = 0;
|
|
__pyx_t_16 = 0;
|
|
__pyx_t_16 = PyObject_Call(__pyx_t_5, ((PyObject *)__pyx_t_17), NULL); if (unlikely(!__pyx_t_16)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 674; __pyx_clineno = __LINE__; goto __pyx_L11_except_error;}
|
|
__Pyx_GOTREF(__pyx_t_16);
|
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_17)); __pyx_t_17 = 0;
|
|
__pyx_t_17 = __Pyx_PyObject_Append(__pyx_v_result, __pyx_t_16); if (unlikely(!__pyx_t_17)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 674; __pyx_clineno = __LINE__; goto __pyx_L11_except_error;}
|
|
__Pyx_GOTREF(__pyx_t_17);
|
|
__Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
|
|
__Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0;
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
__Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
|
|
goto __pyx_L10_exception_handled;
|
|
}
|
|
__pyx_L11_except_error:;
|
|
__Pyx_XGIVEREF(__pyx_t_9);
|
|
__Pyx_XGIVEREF(__pyx_t_10);
|
|
__Pyx_XGIVEREF(__pyx_t_11);
|
|
__Pyx_ExceptionReset(__pyx_t_9, __pyx_t_10, __pyx_t_11);
|
|
goto __pyx_L1_error;
|
|
__pyx_L10_exception_handled:;
|
|
__Pyx_XGIVEREF(__pyx_t_9);
|
|
__Pyx_XGIVEREF(__pyx_t_10);
|
|
__Pyx_XGIVEREF(__pyx_t_11);
|
|
__Pyx_ExceptionReset(__pyx_t_9, __pyx_t_10, __pyx_t_11);
|
|
__pyx_L16_try_end:;
|
|
}
|
|
goto __pyx_L7;
|
|
}
|
|
/*else*/ {
|
|
|
|
/* "preprocessed_text.py":676
|
|
* result.append(Declaration(line.i,line.text,line.filename))
|
|
* else:
|
|
* result.append(line) # <<<<<<<<<<<<<<
|
|
* return result
|
|
*
|
|
*/
|
|
__pyx_t_12 = __Pyx_PyObject_Append(__pyx_v_result, __pyx_v_line); if (unlikely(!__pyx_t_12)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 676; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_12);
|
|
__Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
|
|
}
|
|
__pyx_L7:;
|
|
}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":677
|
|
* else:
|
|
* result.append(line)
|
|
* return result # <<<<<<<<<<<<<<
|
|
*
|
|
* ######################################################################
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__Pyx_INCREF(__pyx_v_result);
|
|
__pyx_r = __pyx_v_result;
|
|
goto __pyx_L0;
|
|
|
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
|
goto __pyx_L0;
|
|
__pyx_L1_error:;
|
|
__Pyx_XDECREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_t_4);
|
|
__Pyx_XDECREF(__pyx_t_5);
|
|
__Pyx_XDECREF(__pyx_t_8);
|
|
__Pyx_XDECREF(__pyx_t_12);
|
|
__Pyx_XDECREF(__pyx_t_14);
|
|
__Pyx_XDECREF(__pyx_t_15);
|
|
__Pyx_XDECREF(__pyx_t_16);
|
|
__Pyx_XDECREF(__pyx_t_17);
|
|
__Pyx_AddTraceback("preprocessed_text.change_includes", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__pyx_r = NULL;
|
|
__pyx_L0:;
|
|
__Pyx_XDECREF(__pyx_v_result);
|
|
__Pyx_XDECREF(__pyx_v_line);
|
|
__Pyx_XDECREF(__pyx_v_txt);
|
|
__Pyx_XDECREF(__pyx_v_filename);
|
|
__Pyx_XDECREF(__pyx_v_file);
|
|
__Pyx_XGIVEREF(__pyx_r);
|
|
__Pyx_RefNannyFinishContext();
|
|
return __pyx_r;
|
|
}
|
|
|
|
/* "preprocessed_text.py":684
|
|
* assert type(text) == list
|
|
*
|
|
* def change_matching_enddo(begin,number): # <<<<<<<<<<<<<<
|
|
* for i in range(begin+1,len(text)):
|
|
* line = text[i]
|
|
*/
|
|
|
|
static PyObject *__pyx_pf_17preprocessed_text_20process_old_style_do_change_matching_enddo(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
|
|
static PyMethodDef __pyx_mdef_17preprocessed_text_20process_old_style_do_change_matching_enddo = {__Pyx_NAMESTR("change_matching_enddo"), (PyCFunction)__pyx_pf_17preprocessed_text_20process_old_style_do_change_matching_enddo, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(0)};
|
|
static PyObject *__pyx_pf_17preprocessed_text_20process_old_style_do_change_matching_enddo(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
|
|
struct __pyx_obj_17preprocessed_text___pyx_scope_struct_2_process_old_style_do *__pyx_cur_scope;
|
|
struct __pyx_obj_17preprocessed_text___pyx_scope_struct_2_process_old_style_do *__pyx_outer_scope;
|
|
PyObject *__pyx_v_begin = 0;
|
|
PyObject *__pyx_v_number = 0;
|
|
PyObject *__pyx_v_i = NULL;
|
|
PyObject *__pyx_v_line = NULL;
|
|
PyObject *__pyx_v_buffer = NULL;
|
|
PyObject *__pyx_r = NULL;
|
|
__Pyx_RefNannyDeclarations
|
|
PyObject *__pyx_t_1 = NULL;
|
|
PyObject *__pyx_t_2 = NULL;
|
|
Py_ssize_t __pyx_t_3;
|
|
PyObject *__pyx_t_4 = NULL;
|
|
PyObject *(*__pyx_t_5)(PyObject *);
|
|
PyObject *__pyx_t_6 = NULL;
|
|
int __pyx_t_7;
|
|
int __pyx_t_8;
|
|
int __pyx_t_9;
|
|
PyObject *__pyx_t_10 = NULL;
|
|
int __pyx_lineno = 0;
|
|
const char *__pyx_filename = NULL;
|
|
int __pyx_clineno = 0;
|
|
static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__begin,&__pyx_n_s__number,0};
|
|
__Pyx_RefNannySetupContext("change_matching_enddo");
|
|
__pyx_outer_scope = (struct __pyx_obj_17preprocessed_text___pyx_scope_struct_2_process_old_style_do *)__pyx_self;
|
|
__pyx_cur_scope = __pyx_outer_scope;
|
|
__pyx_self = __pyx_self;
|
|
{
|
|
PyObject* values[2] = {0,0};
|
|
if (unlikely(__pyx_kwds)) {
|
|
Py_ssize_t kw_args;
|
|
switch (PyTuple_GET_SIZE(__pyx_args)) {
|
|
case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
|
|
case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
|
|
case 0: break;
|
|
default: goto __pyx_L5_argtuple_error;
|
|
}
|
|
kw_args = PyDict_Size(__pyx_kwds);
|
|
switch (PyTuple_GET_SIZE(__pyx_args)) {
|
|
case 0:
|
|
values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__begin);
|
|
if (likely(values[0])) kw_args--;
|
|
else goto __pyx_L5_argtuple_error;
|
|
case 1:
|
|
values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__number);
|
|
if (likely(values[1])) kw_args--;
|
|
else {
|
|
__Pyx_RaiseArgtupleInvalid("change_matching_enddo", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 684; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
|
|
}
|
|
}
|
|
if (unlikely(kw_args > 0)) {
|
|
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "change_matching_enddo") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 684; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
|
|
}
|
|
} else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
|
|
goto __pyx_L5_argtuple_error;
|
|
} else {
|
|
values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
|
|
values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
|
|
}
|
|
__pyx_v_begin = values[0];
|
|
__pyx_v_number = values[1];
|
|
}
|
|
goto __pyx_L4_argument_unpacking_done;
|
|
__pyx_L5_argtuple_error:;
|
|
__Pyx_RaiseArgtupleInvalid("change_matching_enddo", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 684; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
|
|
__pyx_L3_error:;
|
|
__Pyx_AddTraceback("preprocessed_text.process_old_style_do.change_matching_enddo", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__Pyx_RefNannyFinishContext();
|
|
return NULL;
|
|
__pyx_L4_argument_unpacking_done:;
|
|
|
|
/* "preprocessed_text.py":685
|
|
*
|
|
* def change_matching_enddo(begin,number):
|
|
* for i in range(begin+1,len(text)): # <<<<<<<<<<<<<<
|
|
* line = text[i]
|
|
* if type(line) in [Continue,Enddo]:
|
|
*/
|
|
__pyx_t_1 = PyNumber_Add(__pyx_v_begin, __pyx_int_1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 685; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
if (unlikely(!__pyx_cur_scope->__pyx_v_text)) { __Pyx_RaiseClosureNameError("text"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 685; __pyx_clineno = __LINE__; goto __pyx_L1_error;} }__pyx_t_2 = __pyx_cur_scope->__pyx_v_text;
|
|
__Pyx_INCREF(__pyx_t_2);
|
|
__pyx_t_3 = PyObject_Length(__pyx_t_2); if (unlikely(__pyx_t_3 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 685; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_2 = PyInt_FromSsize_t(__pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 685; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 685; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
|
|
__Pyx_GIVEREF(__pyx_t_1);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2);
|
|
__Pyx_GIVEREF(__pyx_t_2);
|
|
__pyx_t_1 = 0;
|
|
__pyx_t_2 = 0;
|
|
__pyx_t_2 = PyObject_Call(__pyx_builtin_range, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 685; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
|
|
if (PyList_CheckExact(__pyx_t_2) || PyTuple_CheckExact(__pyx_t_2)) {
|
|
__pyx_t_4 = __pyx_t_2; __Pyx_INCREF(__pyx_t_4); __pyx_t_3 = 0;
|
|
__pyx_t_5 = NULL;
|
|
} else {
|
|
__pyx_t_3 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 685; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_5 = Py_TYPE(__pyx_t_4)->tp_iternext;
|
|
}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
for (;;) {
|
|
if (PyList_CheckExact(__pyx_t_4)) {
|
|
if (__pyx_t_3 >= PyList_GET_SIZE(__pyx_t_4)) break;
|
|
__pyx_t_2 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_3); __Pyx_INCREF(__pyx_t_2); __pyx_t_3++;
|
|
} else if (PyTuple_CheckExact(__pyx_t_4)) {
|
|
if (__pyx_t_3 >= PyTuple_GET_SIZE(__pyx_t_4)) break;
|
|
__pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_3); __Pyx_INCREF(__pyx_t_2); __pyx_t_3++;
|
|
} else {
|
|
__pyx_t_2 = __pyx_t_5(__pyx_t_4);
|
|
if (unlikely(!__pyx_t_2)) {
|
|
if (PyErr_Occurred()) {
|
|
if (likely(PyErr_ExceptionMatches(PyExc_StopIteration))) PyErr_Clear();
|
|
else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 685; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
break;
|
|
}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
}
|
|
__Pyx_XDECREF(__pyx_v_i);
|
|
__pyx_v_i = __pyx_t_2;
|
|
__pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":686
|
|
* def change_matching_enddo(begin,number):
|
|
* for i in range(begin+1,len(text)):
|
|
* line = text[i] # <<<<<<<<<<<<<<
|
|
* if type(line) in [Continue,Enddo]:
|
|
* buffer = line.text.split()
|
|
*/
|
|
__pyx_t_2 = PyObject_GetItem(__pyx_cur_scope->__pyx_v_text, __pyx_v_i); if (!__pyx_t_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 686; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_XDECREF(__pyx_v_line);
|
|
__pyx_v_line = __pyx_t_2;
|
|
__pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":687
|
|
* for i in range(begin+1,len(text)):
|
|
* line = text[i]
|
|
* if type(line) in [Continue,Enddo]: # <<<<<<<<<<<<<<
|
|
* buffer = line.text.split()
|
|
* if buffer[0] == number:
|
|
*/
|
|
__Pyx_INCREF(((PyObject *)Py_TYPE(__pyx_v_line)));
|
|
__pyx_t_2 = ((PyObject *)Py_TYPE(__pyx_v_line));
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__Continue); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 687; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_6 = PyObject_RichCompare(((PyObject *)__pyx_t_2), __pyx_t_1, Py_EQ); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 687; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely((__pyx_t_7 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 687; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
if (!((int)__pyx_t_7)) {
|
|
__pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__Enddo); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 687; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_1 = PyObject_RichCompare(((PyObject *)__pyx_t_2), __pyx_t_6, Py_EQ); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 687; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_8 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 687; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_9 = ((int)__pyx_t_8);
|
|
} else {
|
|
__pyx_t_9 = ((int)__pyx_t_7);
|
|
}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_7 = __pyx_t_9;
|
|
if (__pyx_t_7) {
|
|
|
|
/* "preprocessed_text.py":688
|
|
* line = text[i]
|
|
* if type(line) in [Continue,Enddo]:
|
|
* buffer = line.text.split() # <<<<<<<<<<<<<<
|
|
* if buffer[0] == number:
|
|
* text[i] = Enddo(line.i," enddo",line.filename)
|
|
*/
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__text); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 688; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__split); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 688; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 688; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__Pyx_XDECREF(__pyx_v_buffer);
|
|
__pyx_v_buffer = __pyx_t_2;
|
|
__pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":689
|
|
* if type(line) in [Continue,Enddo]:
|
|
* buffer = line.text.split()
|
|
* if buffer[0] == number: # <<<<<<<<<<<<<<
|
|
* text[i] = Enddo(line.i," enddo",line.filename)
|
|
* return
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetItemInt(__pyx_v_buffer, 0, sizeof(long), PyInt_FromLong); if (!__pyx_t_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 689; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_1 = PyObject_RichCompare(__pyx_t_2, __pyx_v_number, Py_EQ); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 689; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 689; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
if (__pyx_t_7) {
|
|
|
|
/* "preprocessed_text.py":690
|
|
* buffer = line.text.split()
|
|
* if buffer[0] == number:
|
|
* text[i] = Enddo(line.i," enddo",line.filename) # <<<<<<<<<<<<<<
|
|
* return
|
|
* error.fail(text[begin],"Old-style do loops should end with 'continue' or 'end do'")
|
|
*/
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__Enddo); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 690; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__i); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 690; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_6 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__filename); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 690; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_10 = PyTuple_New(3); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 690; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_10));
|
|
PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_2);
|
|
__Pyx_GIVEREF(__pyx_t_2);
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_129));
|
|
PyTuple_SET_ITEM(__pyx_t_10, 1, ((PyObject *)__pyx_kp_s_129));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_129));
|
|
PyTuple_SET_ITEM(__pyx_t_10, 2, __pyx_t_6);
|
|
__Pyx_GIVEREF(__pyx_t_6);
|
|
__pyx_t_2 = 0;
|
|
__pyx_t_6 = 0;
|
|
__pyx_t_6 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_10), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 690; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_10)); __pyx_t_10 = 0;
|
|
if (PyObject_SetItem(__pyx_cur_scope->__pyx_v_text, __pyx_v_i, __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 690; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
|
|
/* "preprocessed_text.py":691
|
|
* if buffer[0] == number:
|
|
* text[i] = Enddo(line.i," enddo",line.filename)
|
|
* return # <<<<<<<<<<<<<<
|
|
* error.fail(text[begin],"Old-style do loops should end with 'continue' or 'end do'")
|
|
*
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
goto __pyx_L0;
|
|
goto __pyx_L9;
|
|
}
|
|
__pyx_L9:;
|
|
goto __pyx_L8;
|
|
}
|
|
__pyx_L8:;
|
|
}
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
|
|
/* "preprocessed_text.py":692
|
|
* text[i] = Enddo(line.i," enddo",line.filename)
|
|
* return
|
|
* error.fail(text[begin],"Old-style do loops should end with 'continue' or 'end do'") # <<<<<<<<<<<<<<
|
|
*
|
|
* result = []
|
|
*/
|
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__error); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 692; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_6 = PyObject_GetAttr(__pyx_t_4, __pyx_n_s__fail); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 692; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__pyx_t_4 = PyObject_GetItem(__pyx_cur_scope->__pyx_v_text, __pyx_v_begin); if (!__pyx_t_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 692; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_10 = PyTuple_New(2); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 692; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_10));
|
|
PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_4);
|
|
__Pyx_GIVEREF(__pyx_t_4);
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_130));
|
|
PyTuple_SET_ITEM(__pyx_t_10, 1, ((PyObject *)__pyx_kp_s_130));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_130));
|
|
__pyx_t_4 = 0;
|
|
__pyx_t_4 = PyObject_Call(__pyx_t_6, ((PyObject *)__pyx_t_10), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 692; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_10)); __pyx_t_10 = 0;
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
|
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
|
goto __pyx_L0;
|
|
__pyx_L1_error:;
|
|
__Pyx_XDECREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_t_2);
|
|
__Pyx_XDECREF(__pyx_t_4);
|
|
__Pyx_XDECREF(__pyx_t_6);
|
|
__Pyx_XDECREF(__pyx_t_10);
|
|
__Pyx_AddTraceback("preprocessed_text.process_old_style_do.change_matching_enddo", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__pyx_r = NULL;
|
|
__pyx_L0:;
|
|
__Pyx_XDECREF(__pyx_v_i);
|
|
__Pyx_XDECREF(__pyx_v_line);
|
|
__Pyx_XDECREF(__pyx_v_buffer);
|
|
__Pyx_XGIVEREF(__pyx_r);
|
|
__Pyx_RefNannyFinishContext();
|
|
return __pyx_r;
|
|
}
|
|
|
|
/* "preprocessed_text.py":680
|
|
*
|
|
* ######################################################################
|
|
* def process_old_style_do(text): # <<<<<<<<<<<<<<
|
|
* '''Changes old-style do loops to new style'''
|
|
* assert type(text) == list
|
|
*/
|
|
|
|
static PyObject *__pyx_pf_17preprocessed_text_10process_old_style_do(PyObject *__pyx_self, PyObject *__pyx_v_text); /*proto*/
|
|
static char __pyx_doc_17preprocessed_text_10process_old_style_do[] = "Changes old-style do loops to new style";
|
|
static PyMethodDef __pyx_mdef_17preprocessed_text_10process_old_style_do = {__Pyx_NAMESTR("process_old_style_do"), (PyCFunction)__pyx_pf_17preprocessed_text_10process_old_style_do, METH_O, __Pyx_DOCSTR(__pyx_doc_17preprocessed_text_10process_old_style_do)};
|
|
static PyObject *__pyx_pf_17preprocessed_text_10process_old_style_do(PyObject *__pyx_self, PyObject *__pyx_v_text) {
|
|
struct __pyx_obj_17preprocessed_text___pyx_scope_struct_2_process_old_style_do *__pyx_cur_scope;
|
|
PyObject *__pyx_v_change_matching_enddo = 0;
|
|
PyObject *__pyx_v_result = NULL;
|
|
Py_ssize_t __pyx_v_i;
|
|
PyObject *__pyx_v_line = NULL;
|
|
PyObject *__pyx_v_buffer = NULL;
|
|
PyObject *__pyx_v_number = NULL;
|
|
PyObject *__pyx_r = NULL;
|
|
__Pyx_RefNannyDeclarations
|
|
PyObject *__pyx_t_1 = NULL;
|
|
int __pyx_t_2;
|
|
Py_ssize_t __pyx_t_3;
|
|
Py_ssize_t __pyx_t_4;
|
|
PyObject *__pyx_t_5 = NULL;
|
|
PyObject *__pyx_t_6 = NULL;
|
|
PyObject *__pyx_t_7 = NULL;
|
|
PyObject *__pyx_t_8 = NULL;
|
|
PyObject *__pyx_t_9 = NULL;
|
|
int __pyx_t_10;
|
|
int __pyx_t_11;
|
|
int __pyx_lineno = 0;
|
|
const char *__pyx_filename = NULL;
|
|
int __pyx_clineno = 0;
|
|
__Pyx_RefNannySetupContext("process_old_style_do");
|
|
__pyx_cur_scope = (struct __pyx_obj_17preprocessed_text___pyx_scope_struct_2_process_old_style_do *)__pyx_ptype_17preprocessed_text___pyx_scope_struct_2_process_old_style_do->tp_new(__pyx_ptype_17preprocessed_text___pyx_scope_struct_2_process_old_style_do, __pyx_empty_tuple, NULL);
|
|
if (unlikely(!__pyx_cur_scope)) {
|
|
__Pyx_RefNannyFinishContext();
|
|
return NULL;
|
|
}
|
|
__Pyx_GOTREF(__pyx_cur_scope);
|
|
__pyx_self = __pyx_self;
|
|
__Pyx_INCREF(__pyx_v_text);
|
|
__pyx_cur_scope->__pyx_v_text = __pyx_v_text;
|
|
__Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_text);
|
|
|
|
/* "preprocessed_text.py":682
|
|
* def process_old_style_do(text):
|
|
* '''Changes old-style do loops to new style'''
|
|
* assert type(text) == list # <<<<<<<<<<<<<<
|
|
*
|
|
* def change_matching_enddo(begin,number):
|
|
*/
|
|
#ifndef CYTHON_WITHOUT_ASSERTIONS
|
|
__pyx_t_1 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_cur_scope->__pyx_v_text)), ((PyObject *)((PyObject*)(&PyList_Type))), Py_EQ); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 682; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 682; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
if (unlikely(!__pyx_t_2)) {
|
|
PyErr_SetNone(PyExc_AssertionError);
|
|
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 682; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
#endif
|
|
|
|
/* "preprocessed_text.py":684
|
|
* assert type(text) == list
|
|
*
|
|
* def change_matching_enddo(begin,number): # <<<<<<<<<<<<<<
|
|
* for i in range(begin+1,len(text)):
|
|
* line = text[i]
|
|
*/
|
|
__pyx_t_1 = __pyx_binding_PyCFunctionType_NewEx(&__pyx_mdef_17preprocessed_text_20process_old_style_do_change_matching_enddo, ((PyObject*)__pyx_cur_scope), __pyx_n_s__preprocessed_text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 684; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_v_change_matching_enddo);
|
|
__pyx_v_change_matching_enddo = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":694
|
|
* error.fail(text[begin],"Old-style do loops should end with 'continue' or 'end do'")
|
|
*
|
|
* result = [] # <<<<<<<<<<<<<<
|
|
* for i in range(len(text)):
|
|
* line = text[i]
|
|
*/
|
|
__pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 694; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__pyx_v_result = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":695
|
|
*
|
|
* result = []
|
|
* for i in range(len(text)): # <<<<<<<<<<<<<<
|
|
* line = text[i]
|
|
* if type(line) == Do:
|
|
*/
|
|
__pyx_t_1 = __pyx_cur_scope->__pyx_v_text;
|
|
__Pyx_INCREF(__pyx_t_1);
|
|
__pyx_t_3 = PyObject_Length(__pyx_t_1); if (unlikely(__pyx_t_3 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 695; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
|
|
__pyx_v_i = __pyx_t_4;
|
|
|
|
/* "preprocessed_text.py":696
|
|
* result = []
|
|
* for i in range(len(text)):
|
|
* line = text[i] # <<<<<<<<<<<<<<
|
|
* if type(line) == Do:
|
|
* buffer = line.text.split()
|
|
*/
|
|
__pyx_t_1 = __Pyx_GetItemInt(__pyx_cur_scope->__pyx_v_text, __pyx_v_i, sizeof(Py_ssize_t), PyInt_FromSsize_t); if (!__pyx_t_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 696; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_v_line);
|
|
__pyx_v_line = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":697
|
|
* for i in range(len(text)):
|
|
* line = text[i]
|
|
* if type(line) == Do: # <<<<<<<<<<<<<<
|
|
* buffer = line.text.split()
|
|
* try:
|
|
*/
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__Do); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 697; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_5 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_line)), __pyx_t_1, Py_EQ); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 697; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 697; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
if (__pyx_t_2) {
|
|
|
|
/* "preprocessed_text.py":698
|
|
* line = text[i]
|
|
* if type(line) == Do:
|
|
* buffer = line.text.split() # <<<<<<<<<<<<<<
|
|
* try:
|
|
* if buffer[1].isdigit():
|
|
*/
|
|
__pyx_t_5 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__text); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 698; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_t_5, __pyx_n_s__split); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 698; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
__pyx_t_5 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 698; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__Pyx_XDECREF(__pyx_v_buffer);
|
|
__pyx_v_buffer = __pyx_t_5;
|
|
__pyx_t_5 = 0;
|
|
|
|
/* "preprocessed_text.py":699
|
|
* if type(line) == Do:
|
|
* buffer = line.text.split()
|
|
* try: # <<<<<<<<<<<<<<
|
|
* if buffer[1].isdigit():
|
|
* number = buffer.pop(1)
|
|
*/
|
|
{
|
|
__Pyx_ExceptionSave(&__pyx_t_6, &__pyx_t_7, &__pyx_t_8);
|
|
__Pyx_XGOTREF(__pyx_t_6);
|
|
__Pyx_XGOTREF(__pyx_t_7);
|
|
__Pyx_XGOTREF(__pyx_t_8);
|
|
/*try:*/ {
|
|
|
|
/* "preprocessed_text.py":700
|
|
* buffer = line.text.split()
|
|
* try:
|
|
* if buffer[1].isdigit(): # <<<<<<<<<<<<<<
|
|
* number = buffer.pop(1)
|
|
* change_matching_enddo(i,number)
|
|
*/
|
|
__pyx_t_5 = __Pyx_GetItemInt(__pyx_v_buffer, 1, sizeof(long), PyInt_FromLong); if (!__pyx_t_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 700; __pyx_clineno = __LINE__; goto __pyx_L8_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_t_5, __pyx_n_s__isdigit); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 700; __pyx_clineno = __LINE__; goto __pyx_L8_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
__pyx_t_5 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 700; __pyx_clineno = __LINE__; goto __pyx_L8_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 700; __pyx_clineno = __LINE__; goto __pyx_L8_error;}
|
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
if (__pyx_t_2) {
|
|
|
|
/* "preprocessed_text.py":701
|
|
* try:
|
|
* if buffer[1].isdigit():
|
|
* number = buffer.pop(1) # <<<<<<<<<<<<<<
|
|
* change_matching_enddo(i,number)
|
|
* line.text = " ".join(buffer)
|
|
*/
|
|
__pyx_t_5 = PyObject_GetAttr(__pyx_v_buffer, __pyx_n_s__pop); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 701; __pyx_clineno = __LINE__; goto __pyx_L8_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__pyx_t_1 = PyObject_Call(__pyx_t_5, ((PyObject *)__pyx_k_tuple_131), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 701; __pyx_clineno = __LINE__; goto __pyx_L8_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
__Pyx_XDECREF(__pyx_v_number);
|
|
__pyx_v_number = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":702
|
|
* if buffer[1].isdigit():
|
|
* number = buffer.pop(1)
|
|
* change_matching_enddo(i,number) # <<<<<<<<<<<<<<
|
|
* line.text = " ".join(buffer)
|
|
* except IndexError:
|
|
*/
|
|
__pyx_t_1 = PyInt_FromSsize_t(__pyx_v_i); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 702; __pyx_clineno = __LINE__; goto __pyx_L8_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 702; __pyx_clineno = __LINE__; goto __pyx_L8_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_5));
|
|
PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1);
|
|
__Pyx_GIVEREF(__pyx_t_1);
|
|
__Pyx_INCREF(__pyx_v_number);
|
|
PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_v_number);
|
|
__Pyx_GIVEREF(__pyx_v_number);
|
|
__pyx_t_1 = 0;
|
|
__pyx_t_1 = PyObject_Call(__pyx_v_change_matching_enddo, ((PyObject *)__pyx_t_5), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 702; __pyx_clineno = __LINE__; goto __pyx_L8_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":703
|
|
* number = buffer.pop(1)
|
|
* change_matching_enddo(i,number)
|
|
* line.text = " ".join(buffer) # <<<<<<<<<<<<<<
|
|
* except IndexError:
|
|
* pass
|
|
*/
|
|
__pyx_t_1 = PyObject_GetAttr(((PyObject *)__pyx_kp_s_7), __pyx_n_s__join); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 703; __pyx_clineno = __LINE__; goto __pyx_L8_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 703; __pyx_clineno = __LINE__; goto __pyx_L8_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_5));
|
|
__Pyx_INCREF(__pyx_v_buffer);
|
|
PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_buffer);
|
|
__Pyx_GIVEREF(__pyx_v_buffer);
|
|
__pyx_t_9 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_5), NULL); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 703; __pyx_clineno = __LINE__; goto __pyx_L8_error;}
|
|
__Pyx_GOTREF(__pyx_t_9);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
|
|
if (PyObject_SetAttr(__pyx_v_line, __pyx_n_s__text, __pyx_t_9) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 703; __pyx_clineno = __LINE__; goto __pyx_L8_error;}
|
|
__Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
|
|
goto __pyx_L16;
|
|
}
|
|
__pyx_L16:;
|
|
}
|
|
__Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
__Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
goto __pyx_L15_try_end;
|
|
__pyx_L8_error:;
|
|
__Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
__Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
|
|
|
|
/* "preprocessed_text.py":704
|
|
* change_matching_enddo(i,number)
|
|
* line.text = " ".join(buffer)
|
|
* except IndexError: # <<<<<<<<<<<<<<
|
|
* pass
|
|
* result.append(line)
|
|
*/
|
|
__pyx_t_10 = PyErr_ExceptionMatches(__pyx_builtin_IndexError);
|
|
if (__pyx_t_10) {
|
|
PyErr_Restore(0,0,0);
|
|
goto __pyx_L9_exception_handled;
|
|
}
|
|
__Pyx_XGIVEREF(__pyx_t_6);
|
|
__Pyx_XGIVEREF(__pyx_t_7);
|
|
__Pyx_XGIVEREF(__pyx_t_8);
|
|
__Pyx_ExceptionReset(__pyx_t_6, __pyx_t_7, __pyx_t_8);
|
|
goto __pyx_L1_error;
|
|
__pyx_L9_exception_handled:;
|
|
__Pyx_XGIVEREF(__pyx_t_6);
|
|
__Pyx_XGIVEREF(__pyx_t_7);
|
|
__Pyx_XGIVEREF(__pyx_t_8);
|
|
__Pyx_ExceptionReset(__pyx_t_6, __pyx_t_7, __pyx_t_8);
|
|
__pyx_L15_try_end:;
|
|
}
|
|
goto __pyx_L7;
|
|
}
|
|
__pyx_L7:;
|
|
|
|
/* "preprocessed_text.py":706
|
|
* except IndexError:
|
|
* pass
|
|
* result.append(line) # <<<<<<<<<<<<<<
|
|
* return result
|
|
*
|
|
*/
|
|
if (unlikely(((PyObject *)__pyx_v_result) == Py_None)) {
|
|
PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%s'", "append"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 706; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
__pyx_t_11 = PyList_Append(__pyx_v_result, __pyx_v_line); if (unlikely(__pyx_t_11 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 706; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
|
|
/* "preprocessed_text.py":707
|
|
* pass
|
|
* result.append(line)
|
|
* return result # <<<<<<<<<<<<<<
|
|
*
|
|
* ######################################################################
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__Pyx_INCREF(((PyObject *)__pyx_v_result));
|
|
__pyx_r = ((PyObject *)__pyx_v_result);
|
|
goto __pyx_L0;
|
|
|
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
|
goto __pyx_L0;
|
|
__pyx_L1_error:;
|
|
__Pyx_XDECREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_t_5);
|
|
__Pyx_XDECREF(__pyx_t_9);
|
|
__Pyx_AddTraceback("preprocessed_text.process_old_style_do", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__pyx_r = NULL;
|
|
__pyx_L0:;
|
|
__Pyx_XDECREF(__pyx_v_change_matching_enddo);
|
|
__Pyx_XDECREF(__pyx_v_result);
|
|
__Pyx_XDECREF(__pyx_v_line);
|
|
__Pyx_XDECREF(__pyx_v_buffer);
|
|
__Pyx_XDECREF(__pyx_v_number);
|
|
__Pyx_DECREF(((PyObject *)__pyx_cur_scope));
|
|
__Pyx_XGIVEREF(__pyx_r);
|
|
__Pyx_RefNannyFinishContext();
|
|
return __pyx_r;
|
|
}
|
|
|
|
/* "preprocessed_text.py":710
|
|
*
|
|
* ######################################################################
|
|
* def change_single_line_ifs(text): # <<<<<<<<<<<<<<
|
|
* '''Changes:
|
|
* if (test) result
|
|
*/
|
|
|
|
static PyObject *__pyx_pf_17preprocessed_text_11change_single_line_ifs(PyObject *__pyx_self, PyObject *__pyx_v_text); /*proto*/
|
|
static char __pyx_doc_17preprocessed_text_11change_single_line_ifs[] = "Changes:\nif (test) result\n\nto\n\nif (test) then\n result\nendif";
|
|
static PyMethodDef __pyx_mdef_17preprocessed_text_11change_single_line_ifs = {__Pyx_NAMESTR("change_single_line_ifs"), (PyCFunction)__pyx_pf_17preprocessed_text_11change_single_line_ifs, METH_O, __Pyx_DOCSTR(__pyx_doc_17preprocessed_text_11change_single_line_ifs)};
|
|
static PyObject *__pyx_pf_17preprocessed_text_11change_single_line_ifs(PyObject *__pyx_self, PyObject *__pyx_v_text) {
|
|
PyObject *__pyx_v_result = NULL;
|
|
PyObject *__pyx_v_line = NULL;
|
|
PyObject *__pyx_v_buffer = NULL;
|
|
PyObject *__pyx_v_begin = NULL;
|
|
PyObject *__pyx_v_level = NULL;
|
|
int __pyx_v_instring;
|
|
PyObject *__pyx_v_i = NULL;
|
|
PyObject *__pyx_v_c = NULL;
|
|
PyObject *__pyx_v_end = NULL;
|
|
PyObject *__pyx_v_test = NULL;
|
|
PyObject *__pyx_v_code = NULL;
|
|
PyObject *__pyx_v_f = NULL;
|
|
PyObject *__pyx_r = NULL;
|
|
__Pyx_RefNannyDeclarations
|
|
PyObject *__pyx_t_1 = NULL;
|
|
int __pyx_t_2;
|
|
Py_ssize_t __pyx_t_3;
|
|
PyObject *(*__pyx_t_4)(PyObject *);
|
|
PyObject *__pyx_t_5 = NULL;
|
|
PyObject *__pyx_t_6 = NULL;
|
|
PyObject *__pyx_t_7 = NULL;
|
|
Py_ssize_t __pyx_t_8;
|
|
PyObject *(*__pyx_t_9)(PyObject *);
|
|
PyObject *__pyx_t_10 = NULL;
|
|
int __pyx_lineno = 0;
|
|
const char *__pyx_filename = NULL;
|
|
int __pyx_clineno = 0;
|
|
__Pyx_RefNannySetupContext("change_single_line_ifs");
|
|
__pyx_self = __pyx_self;
|
|
|
|
/* "preprocessed_text.py":720
|
|
* endif'''
|
|
*
|
|
* assert type(text) == list # <<<<<<<<<<<<<<
|
|
* result = []
|
|
* for line in text:
|
|
*/
|
|
#ifndef CYTHON_WITHOUT_ASSERTIONS
|
|
__pyx_t_1 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_text)), ((PyObject *)((PyObject*)(&PyList_Type))), Py_EQ); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 720; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 720; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
if (unlikely(!__pyx_t_2)) {
|
|
PyErr_SetNone(PyExc_AssertionError);
|
|
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 720; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
#endif
|
|
|
|
/* "preprocessed_text.py":721
|
|
*
|
|
* assert type(text) == list
|
|
* result = [] # <<<<<<<<<<<<<<
|
|
* for line in text:
|
|
* if type(line) == If:
|
|
*/
|
|
__pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 721; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__pyx_v_result = ((PyObject *)__pyx_t_1);
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":722
|
|
* assert type(text) == list
|
|
* result = []
|
|
* for line in text: # <<<<<<<<<<<<<<
|
|
* if type(line) == If:
|
|
* if line.lower.endswith("then"):
|
|
*/
|
|
if (PyList_CheckExact(__pyx_v_text) || PyTuple_CheckExact(__pyx_v_text)) {
|
|
__pyx_t_1 = __pyx_v_text; __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = 0;
|
|
__pyx_t_4 = NULL;
|
|
} else {
|
|
__pyx_t_3 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 722; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_4 = Py_TYPE(__pyx_t_1)->tp_iternext;
|
|
}
|
|
for (;;) {
|
|
if (PyList_CheckExact(__pyx_t_1)) {
|
|
if (__pyx_t_3 >= PyList_GET_SIZE(__pyx_t_1)) break;
|
|
__pyx_t_5 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_3); __Pyx_INCREF(__pyx_t_5); __pyx_t_3++;
|
|
} else if (PyTuple_CheckExact(__pyx_t_1)) {
|
|
if (__pyx_t_3 >= PyTuple_GET_SIZE(__pyx_t_1)) break;
|
|
__pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_3); __Pyx_INCREF(__pyx_t_5); __pyx_t_3++;
|
|
} else {
|
|
__pyx_t_5 = __pyx_t_4(__pyx_t_1);
|
|
if (unlikely(!__pyx_t_5)) {
|
|
if (PyErr_Occurred()) {
|
|
if (likely(PyErr_ExceptionMatches(PyExc_StopIteration))) PyErr_Clear();
|
|
else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 722; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
break;
|
|
}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
}
|
|
__Pyx_XDECREF(__pyx_v_line);
|
|
__pyx_v_line = __pyx_t_5;
|
|
__pyx_t_5 = 0;
|
|
|
|
/* "preprocessed_text.py":723
|
|
* result = []
|
|
* for line in text:
|
|
* if type(line) == If: # <<<<<<<<<<<<<<
|
|
* if line.lower.endswith("then"):
|
|
* result.append(line)
|
|
*/
|
|
__pyx_t_5 = __Pyx_GetName(__pyx_m, __pyx_n_s__If); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 723; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__pyx_t_6 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_line)), __pyx_t_5, Py_EQ); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 723; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
__pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 723; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
if (__pyx_t_2) {
|
|
|
|
/* "preprocessed_text.py":724
|
|
* for line in text:
|
|
* if type(line) == If:
|
|
* if line.lower.endswith("then"): # <<<<<<<<<<<<<<
|
|
* result.append(line)
|
|
* else:
|
|
*/
|
|
__pyx_t_6 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__lower); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 724; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_5 = PyObject_GetAttr(__pyx_t_6, __pyx_n_s__endswith); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 724; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__pyx_t_6 = PyObject_Call(__pyx_t_5, ((PyObject *)__pyx_k_tuple_132), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 724; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
__pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 724; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
if (__pyx_t_2) {
|
|
|
|
/* "preprocessed_text.py":725
|
|
* if type(line) == If:
|
|
* if line.lower.endswith("then"):
|
|
* result.append(line) # <<<<<<<<<<<<<<
|
|
* else:
|
|
* buffer = line.text
|
|
*/
|
|
__pyx_t_6 = __Pyx_PyObject_Append(__pyx_v_result, __pyx_v_line); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 725; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
goto __pyx_L8;
|
|
}
|
|
/*else*/ {
|
|
|
|
/* "preprocessed_text.py":727
|
|
* result.append(line)
|
|
* else:
|
|
* buffer = line.text # <<<<<<<<<<<<<<
|
|
* begin = buffer.find('(')
|
|
* if begin < 0:
|
|
*/
|
|
__pyx_t_6 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__text); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 727; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_XDECREF(__pyx_v_buffer);
|
|
__pyx_v_buffer = __pyx_t_6;
|
|
__pyx_t_6 = 0;
|
|
|
|
/* "preprocessed_text.py":728
|
|
* else:
|
|
* buffer = line.text
|
|
* begin = buffer.find('(') # <<<<<<<<<<<<<<
|
|
* if begin < 0:
|
|
* error.fail(line,"Error in if statement")
|
|
*/
|
|
__pyx_t_6 = PyObject_GetAttr(__pyx_v_buffer, __pyx_n_s__find); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 728; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_5 = PyObject_Call(__pyx_t_6, ((PyObject *)__pyx_k_tuple_133), NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 728; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__Pyx_XDECREF(__pyx_v_begin);
|
|
__pyx_v_begin = __pyx_t_5;
|
|
__pyx_t_5 = 0;
|
|
|
|
/* "preprocessed_text.py":729
|
|
* buffer = line.text
|
|
* begin = buffer.find('(')
|
|
* if begin < 0: # <<<<<<<<<<<<<<
|
|
* error.fail(line,"Error in if statement")
|
|
* level = 0
|
|
*/
|
|
__pyx_t_5 = PyObject_RichCompare(__pyx_v_begin, __pyx_int_0, Py_LT); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 729; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 729; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
if (__pyx_t_2) {
|
|
|
|
/* "preprocessed_text.py":730
|
|
* begin = buffer.find('(')
|
|
* if begin < 0:
|
|
* error.fail(line,"Error in if statement") # <<<<<<<<<<<<<<
|
|
* level = 0
|
|
* instring = False
|
|
*/
|
|
__pyx_t_5 = __Pyx_GetName(__pyx_m, __pyx_n_s__error); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 730; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__pyx_t_6 = PyObject_GetAttr(__pyx_t_5, __pyx_n_s__fail); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 730; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
__pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 730; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_5));
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_134));
|
|
PyTuple_SET_ITEM(__pyx_t_5, 1, ((PyObject *)__pyx_kp_s_134));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_134));
|
|
__pyx_t_7 = PyObject_Call(__pyx_t_6, ((PyObject *)__pyx_t_5), NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 730; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
goto __pyx_L9;
|
|
}
|
|
__pyx_L9:;
|
|
|
|
/* "preprocessed_text.py":731
|
|
* if begin < 0:
|
|
* error.fail(line,"Error in if statement")
|
|
* level = 0 # <<<<<<<<<<<<<<
|
|
* instring = False
|
|
* for i,c in enumerate(buffer[begin:]):
|
|
*/
|
|
__Pyx_INCREF(__pyx_int_0);
|
|
__Pyx_XDECREF(__pyx_v_level);
|
|
__pyx_v_level = __pyx_int_0;
|
|
|
|
/* "preprocessed_text.py":732
|
|
* error.fail(line,"Error in if statement")
|
|
* level = 0
|
|
* instring = False # <<<<<<<<<<<<<<
|
|
* for i,c in enumerate(buffer[begin:]):
|
|
* if c == "'":
|
|
*/
|
|
__pyx_v_instring = 0;
|
|
|
|
/* "preprocessed_text.py":733
|
|
* level = 0
|
|
* instring = False
|
|
* for i,c in enumerate(buffer[begin:]): # <<<<<<<<<<<<<<
|
|
* if c == "'":
|
|
* instring = not instring
|
|
*/
|
|
__Pyx_INCREF(__pyx_int_0);
|
|
__pyx_t_7 = __pyx_int_0;
|
|
__pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_v_begin); if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 733; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__pyx_t_5 = __Pyx_PySequence_GetSlice(__pyx_v_buffer, __pyx_t_8, PY_SSIZE_T_MAX); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 733; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
if (PyList_CheckExact(__pyx_t_5) || PyTuple_CheckExact(__pyx_t_5)) {
|
|
__pyx_t_6 = __pyx_t_5; __Pyx_INCREF(__pyx_t_6); __pyx_t_8 = 0;
|
|
__pyx_t_9 = NULL;
|
|
} else {
|
|
__pyx_t_8 = -1; __pyx_t_6 = PyObject_GetIter(__pyx_t_5); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 733; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_9 = Py_TYPE(__pyx_t_6)->tp_iternext;
|
|
}
|
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
for (;;) {
|
|
if (PyList_CheckExact(__pyx_t_6)) {
|
|
if (__pyx_t_8 >= PyList_GET_SIZE(__pyx_t_6)) break;
|
|
__pyx_t_5 = PyList_GET_ITEM(__pyx_t_6, __pyx_t_8); __Pyx_INCREF(__pyx_t_5); __pyx_t_8++;
|
|
} else if (PyTuple_CheckExact(__pyx_t_6)) {
|
|
if (__pyx_t_8 >= PyTuple_GET_SIZE(__pyx_t_6)) break;
|
|
__pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_6, __pyx_t_8); __Pyx_INCREF(__pyx_t_5); __pyx_t_8++;
|
|
} else {
|
|
__pyx_t_5 = __pyx_t_9(__pyx_t_6);
|
|
if (unlikely(!__pyx_t_5)) {
|
|
if (PyErr_Occurred()) {
|
|
if (likely(PyErr_ExceptionMatches(PyExc_StopIteration))) PyErr_Clear();
|
|
else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 733; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
break;
|
|
}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
}
|
|
__Pyx_XDECREF(__pyx_v_c);
|
|
__pyx_v_c = __pyx_t_5;
|
|
__pyx_t_5 = 0;
|
|
__Pyx_INCREF(__pyx_t_7);
|
|
__Pyx_XDECREF(__pyx_v_i);
|
|
__pyx_v_i = __pyx_t_7;
|
|
__pyx_t_5 = PyNumber_Add(__pyx_t_7, __pyx_int_1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 733; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__Pyx_DECREF(__pyx_t_7);
|
|
__pyx_t_7 = __pyx_t_5;
|
|
__pyx_t_5 = 0;
|
|
|
|
/* "preprocessed_text.py":734
|
|
* instring = False
|
|
* for i,c in enumerate(buffer[begin:]):
|
|
* if c == "'": # <<<<<<<<<<<<<<
|
|
* instring = not instring
|
|
* if instring:
|
|
*/
|
|
__pyx_t_2 = __Pyx_PyString_Equals(__pyx_v_c, ((PyObject *)__pyx_kp_s_86), Py_EQ); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 734; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
if (__pyx_t_2) {
|
|
|
|
/* "preprocessed_text.py":735
|
|
* for i,c in enumerate(buffer[begin:]):
|
|
* if c == "'":
|
|
* instring = not instring # <<<<<<<<<<<<<<
|
|
* if instring:
|
|
* pass
|
|
*/
|
|
__pyx_v_instring = (!__pyx_v_instring);
|
|
goto __pyx_L12;
|
|
}
|
|
__pyx_L12:;
|
|
|
|
/* "preprocessed_text.py":736
|
|
* if c == "'":
|
|
* instring = not instring
|
|
* if instring: # <<<<<<<<<<<<<<
|
|
* pass
|
|
* elif c == '(':
|
|
*/
|
|
if (__pyx_v_instring) {
|
|
goto __pyx_L13;
|
|
}
|
|
|
|
/* "preprocessed_text.py":738
|
|
* if instring:
|
|
* pass
|
|
* elif c == '(': # <<<<<<<<<<<<<<
|
|
* level +=1
|
|
* elif c == ')':
|
|
*/
|
|
__pyx_t_2 = __Pyx_PyString_Equals(__pyx_v_c, ((PyObject *)__pyx_kp_s_90), Py_EQ); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 738; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
if (__pyx_t_2) {
|
|
|
|
/* "preprocessed_text.py":739
|
|
* pass
|
|
* elif c == '(':
|
|
* level +=1 # <<<<<<<<<<<<<<
|
|
* elif c == ')':
|
|
* level -= 1
|
|
*/
|
|
__pyx_t_5 = PyNumber_InPlaceAdd(__pyx_v_level, __pyx_int_1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 739; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__Pyx_DECREF(__pyx_v_level);
|
|
__pyx_v_level = __pyx_t_5;
|
|
__pyx_t_5 = 0;
|
|
goto __pyx_L13;
|
|
}
|
|
|
|
/* "preprocessed_text.py":740
|
|
* elif c == '(':
|
|
* level +=1
|
|
* elif c == ')': # <<<<<<<<<<<<<<
|
|
* level -= 1
|
|
* if level == 0:
|
|
*/
|
|
__pyx_t_2 = __Pyx_PyString_Equals(__pyx_v_c, ((PyObject *)__pyx_kp_s_135), Py_EQ); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 740; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
if (__pyx_t_2) {
|
|
|
|
/* "preprocessed_text.py":741
|
|
* level +=1
|
|
* elif c == ')':
|
|
* level -= 1 # <<<<<<<<<<<<<<
|
|
* if level == 0:
|
|
* end = begin+i+1
|
|
*/
|
|
__pyx_t_5 = PyNumber_InPlaceSubtract(__pyx_v_level, __pyx_int_1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 741; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__Pyx_DECREF(__pyx_v_level);
|
|
__pyx_v_level = __pyx_t_5;
|
|
__pyx_t_5 = 0;
|
|
goto __pyx_L13;
|
|
}
|
|
__pyx_L13:;
|
|
|
|
/* "preprocessed_text.py":742
|
|
* elif c == ')':
|
|
* level -= 1
|
|
* if level == 0: # <<<<<<<<<<<<<<
|
|
* end = begin+i+1
|
|
* break
|
|
*/
|
|
__pyx_t_5 = PyObject_RichCompare(__pyx_v_level, __pyx_int_0, Py_EQ); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 742; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 742; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
if (__pyx_t_2) {
|
|
|
|
/* "preprocessed_text.py":743
|
|
* level -= 1
|
|
* if level == 0:
|
|
* end = begin+i+1 # <<<<<<<<<<<<<<
|
|
* break
|
|
* if level != 0:
|
|
*/
|
|
__pyx_t_5 = PyNumber_Add(__pyx_v_begin, __pyx_v_i); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 743; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__pyx_t_10 = PyNumber_Add(__pyx_t_5, __pyx_int_1); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 743; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_10);
|
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
__Pyx_XDECREF(__pyx_v_end);
|
|
__pyx_v_end = __pyx_t_10;
|
|
__pyx_t_10 = 0;
|
|
|
|
/* "preprocessed_text.py":744
|
|
* if level == 0:
|
|
* end = begin+i+1
|
|
* break # <<<<<<<<<<<<<<
|
|
* if level != 0:
|
|
* error.fail(line,"Error in if statement")
|
|
*/
|
|
goto __pyx_L11_break;
|
|
goto __pyx_L14;
|
|
}
|
|
__pyx_L14:;
|
|
}
|
|
__pyx_L11_break:;
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
|
|
/* "preprocessed_text.py":745
|
|
* end = begin+i+1
|
|
* break
|
|
* if level != 0: # <<<<<<<<<<<<<<
|
|
* error.fail(line,"Error in if statement")
|
|
* test = buffer[:end]
|
|
*/
|
|
__pyx_t_7 = PyObject_RichCompare(__pyx_v_level, __pyx_int_0, Py_NE); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 745; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 745; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
if (__pyx_t_2) {
|
|
|
|
/* "preprocessed_text.py":746
|
|
* break
|
|
* if level != 0:
|
|
* error.fail(line,"Error in if statement") # <<<<<<<<<<<<<<
|
|
* test = buffer[:end]
|
|
* code = buffer[end:]
|
|
*/
|
|
__pyx_t_7 = __Pyx_GetName(__pyx_m, __pyx_n_s__error); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 746; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__pyx_t_6 = PyObject_GetAttr(__pyx_t_7, __pyx_n_s__fail); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 746; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
__pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 746; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_7));
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_134));
|
|
PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_kp_s_134));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_134));
|
|
__pyx_t_10 = PyObject_Call(__pyx_t_6, ((PyObject *)__pyx_t_7), NULL); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 746; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_10);
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0;
|
|
__Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
|
|
goto __pyx_L15;
|
|
}
|
|
__pyx_L15:;
|
|
if (unlikely(!__pyx_v_end)) { __Pyx_RaiseUnboundLocalError("end"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 747; __pyx_clineno = __LINE__; goto __pyx_L1_error;} }__pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_v_end); if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 747; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
|
/* "preprocessed_text.py":747
|
|
* if level != 0:
|
|
* error.fail(line,"Error in if statement")
|
|
* test = buffer[:end] # <<<<<<<<<<<<<<
|
|
* code = buffer[end:]
|
|
* i = line.i
|
|
*/
|
|
__pyx_t_10 = __Pyx_PySequence_GetSlice(__pyx_v_buffer, 0, __pyx_t_8); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 747; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_10);
|
|
__Pyx_XDECREF(__pyx_v_test);
|
|
__pyx_v_test = __pyx_t_10;
|
|
__pyx_t_10 = 0;
|
|
|
|
/* "preprocessed_text.py":748
|
|
* error.fail(line,"Error in if statement")
|
|
* test = buffer[:end]
|
|
* code = buffer[end:] # <<<<<<<<<<<<<<
|
|
* i = line.i
|
|
* f = line.filename
|
|
*/
|
|
__pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_v_end); if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 748; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__pyx_t_10 = __Pyx_PySequence_GetSlice(__pyx_v_buffer, __pyx_t_8, PY_SSIZE_T_MAX); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 748; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_10);
|
|
__Pyx_XDECREF(__pyx_v_code);
|
|
__pyx_v_code = __pyx_t_10;
|
|
__pyx_t_10 = 0;
|
|
|
|
/* "preprocessed_text.py":749
|
|
* test = buffer[:end]
|
|
* code = buffer[end:]
|
|
* i = line.i # <<<<<<<<<<<<<<
|
|
* f = line.filename
|
|
* result.append( If(i,"%s then"%(test,),f) )
|
|
*/
|
|
__pyx_t_10 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__i); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 749; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_10);
|
|
__Pyx_XDECREF(__pyx_v_i);
|
|
__pyx_v_i = __pyx_t_10;
|
|
__pyx_t_10 = 0;
|
|
|
|
/* "preprocessed_text.py":750
|
|
* code = buffer[end:]
|
|
* i = line.i
|
|
* f = line.filename # <<<<<<<<<<<<<<
|
|
* result.append( If(i,"%s then"%(test,),f) )
|
|
* result += get_type(i,f,code,False)[0]
|
|
*/
|
|
__pyx_t_10 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__filename); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 750; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_10);
|
|
__Pyx_XDECREF(__pyx_v_f);
|
|
__pyx_v_f = __pyx_t_10;
|
|
__pyx_t_10 = 0;
|
|
|
|
/* "preprocessed_text.py":751
|
|
* i = line.i
|
|
* f = line.filename
|
|
* result.append( If(i,"%s then"%(test,),f) ) # <<<<<<<<<<<<<<
|
|
* result += get_type(i,f,code,False)[0]
|
|
* result.append( Endif(i," endif",f) )
|
|
*/
|
|
__pyx_t_10 = __Pyx_GetName(__pyx_m, __pyx_n_s__If); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 751; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_10);
|
|
__pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 751; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_7));
|
|
__Pyx_INCREF(__pyx_v_test);
|
|
PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_v_test);
|
|
__Pyx_GIVEREF(__pyx_v_test);
|
|
__pyx_t_6 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_136), ((PyObject *)__pyx_t_7)); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 751; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_6));
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0;
|
|
__pyx_t_7 = PyTuple_New(3); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 751; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_7));
|
|
__Pyx_INCREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_v_i);
|
|
__Pyx_GIVEREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_t_6));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_t_6));
|
|
__Pyx_INCREF(__pyx_v_f);
|
|
PyTuple_SET_ITEM(__pyx_t_7, 2, __pyx_v_f);
|
|
__Pyx_GIVEREF(__pyx_v_f);
|
|
__pyx_t_6 = 0;
|
|
__pyx_t_6 = PyObject_Call(__pyx_t_10, ((PyObject *)__pyx_t_7), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 751; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0;
|
|
__pyx_t_7 = __Pyx_PyObject_Append(__pyx_v_result, __pyx_t_6); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 751; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
|
|
/* "preprocessed_text.py":752
|
|
* f = line.filename
|
|
* result.append( If(i,"%s then"%(test,),f) )
|
|
* result += get_type(i,f,code,False)[0] # <<<<<<<<<<<<<<
|
|
* result.append( Endif(i," endif",f) )
|
|
* else:
|
|
*/
|
|
__pyx_t_7 = __Pyx_GetName(__pyx_m, __pyx_n_s__get_type); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 752; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__pyx_t_6 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 752; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_10 = PyTuple_New(4); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 752; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_10));
|
|
__Pyx_INCREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_v_i);
|
|
__Pyx_GIVEREF(__pyx_v_i);
|
|
__Pyx_INCREF(__pyx_v_f);
|
|
PyTuple_SET_ITEM(__pyx_t_10, 1, __pyx_v_f);
|
|
__Pyx_GIVEREF(__pyx_v_f);
|
|
__Pyx_INCREF(__pyx_v_code);
|
|
PyTuple_SET_ITEM(__pyx_t_10, 2, __pyx_v_code);
|
|
__Pyx_GIVEREF(__pyx_v_code);
|
|
PyTuple_SET_ITEM(__pyx_t_10, 3, __pyx_t_6);
|
|
__Pyx_GIVEREF(__pyx_t_6);
|
|
__pyx_t_6 = 0;
|
|
__pyx_t_6 = PyObject_Call(__pyx_t_7, ((PyObject *)__pyx_t_10), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 752; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_10)); __pyx_t_10 = 0;
|
|
__pyx_t_10 = __Pyx_GetItemInt(__pyx_t_6, 0, sizeof(long), PyInt_FromLong); if (!__pyx_t_10) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 752; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_10);
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_result, __pyx_t_10); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 752; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
|
|
__Pyx_DECREF(__pyx_v_result);
|
|
__pyx_v_result = __pyx_t_6;
|
|
__pyx_t_6 = 0;
|
|
|
|
/* "preprocessed_text.py":753
|
|
* result.append( If(i,"%s then"%(test,),f) )
|
|
* result += get_type(i,f,code,False)[0]
|
|
* result.append( Endif(i," endif",f) ) # <<<<<<<<<<<<<<
|
|
* else:
|
|
* result.append(line)
|
|
*/
|
|
__pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__Endif); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 753; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_10 = PyTuple_New(3); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 753; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_10));
|
|
__Pyx_INCREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_v_i);
|
|
__Pyx_GIVEREF(__pyx_v_i);
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_101));
|
|
PyTuple_SET_ITEM(__pyx_t_10, 1, ((PyObject *)__pyx_kp_s_101));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_101));
|
|
__Pyx_INCREF(__pyx_v_f);
|
|
PyTuple_SET_ITEM(__pyx_t_10, 2, __pyx_v_f);
|
|
__Pyx_GIVEREF(__pyx_v_f);
|
|
__pyx_t_7 = PyObject_Call(__pyx_t_6, ((PyObject *)__pyx_t_10), NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 753; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_10)); __pyx_t_10 = 0;
|
|
__pyx_t_10 = __Pyx_PyObject_Append(__pyx_v_result, __pyx_t_7); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 753; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_10);
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
__Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
|
|
}
|
|
__pyx_L8:;
|
|
goto __pyx_L7;
|
|
}
|
|
/*else*/ {
|
|
|
|
/* "preprocessed_text.py":755
|
|
* result.append( Endif(i," endif",f) )
|
|
* else:
|
|
* result.append(line) # <<<<<<<<<<<<<<
|
|
* return result
|
|
*
|
|
*/
|
|
__pyx_t_10 = __Pyx_PyObject_Append(__pyx_v_result, __pyx_v_line); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 755; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_10);
|
|
__Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
|
|
}
|
|
__pyx_L7:;
|
|
}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":756
|
|
* else:
|
|
* result.append(line)
|
|
* return result # <<<<<<<<<<<<<<
|
|
*
|
|
* ######################################################################
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__Pyx_INCREF(__pyx_v_result);
|
|
__pyx_r = __pyx_v_result;
|
|
goto __pyx_L0;
|
|
|
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
|
goto __pyx_L0;
|
|
__pyx_L1_error:;
|
|
__Pyx_XDECREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_t_5);
|
|
__Pyx_XDECREF(__pyx_t_6);
|
|
__Pyx_XDECREF(__pyx_t_7);
|
|
__Pyx_XDECREF(__pyx_t_10);
|
|
__Pyx_AddTraceback("preprocessed_text.change_single_line_ifs", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__pyx_r = NULL;
|
|
__pyx_L0:;
|
|
__Pyx_XDECREF(__pyx_v_result);
|
|
__Pyx_XDECREF(__pyx_v_line);
|
|
__Pyx_XDECREF(__pyx_v_buffer);
|
|
__Pyx_XDECREF(__pyx_v_begin);
|
|
__Pyx_XDECREF(__pyx_v_level);
|
|
__Pyx_XDECREF(__pyx_v_i);
|
|
__Pyx_XDECREF(__pyx_v_c);
|
|
__Pyx_XDECREF(__pyx_v_end);
|
|
__Pyx_XDECREF(__pyx_v_test);
|
|
__Pyx_XDECREF(__pyx_v_code);
|
|
__Pyx_XDECREF(__pyx_v_f);
|
|
__Pyx_XGIVEREF(__pyx_r);
|
|
__Pyx_RefNannyFinishContext();
|
|
return __pyx_r;
|
|
}
|
|
|
|
/* "preprocessed_text.py":772
|
|
* assert type(text) == list
|
|
*
|
|
* def find_matching_end_ifdo(begin,x): # <<<<<<<<<<<<<<
|
|
* level = 1
|
|
* for i in range(begin+1,len(text)):
|
|
*/
|
|
|
|
static PyObject *__pyx_pf_17preprocessed_text_15check_begin_end_find_matching_end_ifdo(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
|
|
static PyMethodDef __pyx_mdef_17preprocessed_text_15check_begin_end_find_matching_end_ifdo = {__Pyx_NAMESTR("find_matching_end_ifdo"), (PyCFunction)__pyx_pf_17preprocessed_text_15check_begin_end_find_matching_end_ifdo, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(0)};
|
|
static PyObject *__pyx_pf_17preprocessed_text_15check_begin_end_find_matching_end_ifdo(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
|
|
struct __pyx_obj_17preprocessed_text___pyx_scope_struct_3_check_begin_end *__pyx_cur_scope;
|
|
struct __pyx_obj_17preprocessed_text___pyx_scope_struct_3_check_begin_end *__pyx_outer_scope;
|
|
PyObject *__pyx_v_begin = 0;
|
|
PyObject *__pyx_v_x = 0;
|
|
PyObject *__pyx_v_level = NULL;
|
|
PyObject *__pyx_v_i = NULL;
|
|
PyObject *__pyx_v_line = NULL;
|
|
PyObject *__pyx_r = NULL;
|
|
__Pyx_RefNannyDeclarations
|
|
PyObject *__pyx_t_1 = NULL;
|
|
PyObject *__pyx_t_2 = NULL;
|
|
Py_ssize_t __pyx_t_3;
|
|
PyObject *__pyx_t_4 = NULL;
|
|
PyObject *(*__pyx_t_5)(PyObject *);
|
|
int __pyx_t_6;
|
|
PyObject *__pyx_t_7 = NULL;
|
|
int __pyx_t_8;
|
|
int __pyx_t_9;
|
|
int __pyx_lineno = 0;
|
|
const char *__pyx_filename = NULL;
|
|
int __pyx_clineno = 0;
|
|
static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__begin,&__pyx_n_s__x,0};
|
|
__Pyx_RefNannySetupContext("find_matching_end_ifdo");
|
|
__pyx_outer_scope = (struct __pyx_obj_17preprocessed_text___pyx_scope_struct_3_check_begin_end *)__pyx_self;
|
|
__pyx_cur_scope = __pyx_outer_scope;
|
|
__pyx_self = __pyx_self;
|
|
{
|
|
PyObject* values[2] = {0,0};
|
|
if (unlikely(__pyx_kwds)) {
|
|
Py_ssize_t kw_args;
|
|
switch (PyTuple_GET_SIZE(__pyx_args)) {
|
|
case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
|
|
case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
|
|
case 0: break;
|
|
default: goto __pyx_L5_argtuple_error;
|
|
}
|
|
kw_args = PyDict_Size(__pyx_kwds);
|
|
switch (PyTuple_GET_SIZE(__pyx_args)) {
|
|
case 0:
|
|
values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__begin);
|
|
if (likely(values[0])) kw_args--;
|
|
else goto __pyx_L5_argtuple_error;
|
|
case 1:
|
|
values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__x);
|
|
if (likely(values[1])) kw_args--;
|
|
else {
|
|
__Pyx_RaiseArgtupleInvalid("find_matching_end_ifdo", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 772; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
|
|
}
|
|
}
|
|
if (unlikely(kw_args > 0)) {
|
|
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "find_matching_end_ifdo") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 772; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
|
|
}
|
|
} else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
|
|
goto __pyx_L5_argtuple_error;
|
|
} else {
|
|
values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
|
|
values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
|
|
}
|
|
__pyx_v_begin = values[0];
|
|
__pyx_v_x = values[1];
|
|
}
|
|
goto __pyx_L4_argument_unpacking_done;
|
|
__pyx_L5_argtuple_error:;
|
|
__Pyx_RaiseArgtupleInvalid("find_matching_end_ifdo", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 772; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
|
|
__pyx_L3_error:;
|
|
__Pyx_AddTraceback("preprocessed_text.check_begin_end.find_matching_end_ifdo", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__Pyx_RefNannyFinishContext();
|
|
return NULL;
|
|
__pyx_L4_argument_unpacking_done:;
|
|
|
|
/* "preprocessed_text.py":773
|
|
*
|
|
* def find_matching_end_ifdo(begin,x):
|
|
* level = 1 # <<<<<<<<<<<<<<
|
|
* for i in range(begin+1,len(text)):
|
|
* line = text[i]
|
|
*/
|
|
__Pyx_INCREF(__pyx_int_1);
|
|
__pyx_v_level = __pyx_int_1;
|
|
|
|
/* "preprocessed_text.py":774
|
|
* def find_matching_end_ifdo(begin,x):
|
|
* level = 1
|
|
* for i in range(begin+1,len(text)): # <<<<<<<<<<<<<<
|
|
* line = text[i]
|
|
* if type(line) == d[x]:
|
|
*/
|
|
__pyx_t_1 = PyNumber_Add(__pyx_v_begin, __pyx_int_1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 774; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
if (unlikely(!__pyx_cur_scope->__pyx_v_text)) { __Pyx_RaiseClosureNameError("text"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 774; __pyx_clineno = __LINE__; goto __pyx_L1_error;} }__pyx_t_2 = __pyx_cur_scope->__pyx_v_text;
|
|
__Pyx_INCREF(__pyx_t_2);
|
|
__pyx_t_3 = PyObject_Length(__pyx_t_2); if (unlikely(__pyx_t_3 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 774; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_2 = PyInt_FromSsize_t(__pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 774; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 774; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
|
|
__Pyx_GIVEREF(__pyx_t_1);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2);
|
|
__Pyx_GIVEREF(__pyx_t_2);
|
|
__pyx_t_1 = 0;
|
|
__pyx_t_2 = 0;
|
|
__pyx_t_2 = PyObject_Call(__pyx_builtin_range, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 774; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
|
|
if (PyList_CheckExact(__pyx_t_2) || PyTuple_CheckExact(__pyx_t_2)) {
|
|
__pyx_t_4 = __pyx_t_2; __Pyx_INCREF(__pyx_t_4); __pyx_t_3 = 0;
|
|
__pyx_t_5 = NULL;
|
|
} else {
|
|
__pyx_t_3 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 774; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_5 = Py_TYPE(__pyx_t_4)->tp_iternext;
|
|
}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
for (;;) {
|
|
if (PyList_CheckExact(__pyx_t_4)) {
|
|
if (__pyx_t_3 >= PyList_GET_SIZE(__pyx_t_4)) break;
|
|
__pyx_t_2 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_3); __Pyx_INCREF(__pyx_t_2); __pyx_t_3++;
|
|
} else if (PyTuple_CheckExact(__pyx_t_4)) {
|
|
if (__pyx_t_3 >= PyTuple_GET_SIZE(__pyx_t_4)) break;
|
|
__pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_3); __Pyx_INCREF(__pyx_t_2); __pyx_t_3++;
|
|
} else {
|
|
__pyx_t_2 = __pyx_t_5(__pyx_t_4);
|
|
if (unlikely(!__pyx_t_2)) {
|
|
if (PyErr_Occurred()) {
|
|
if (likely(PyErr_ExceptionMatches(PyExc_StopIteration))) PyErr_Clear();
|
|
else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 774; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
break;
|
|
}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
}
|
|
__Pyx_XDECREF(__pyx_v_i);
|
|
__pyx_v_i = __pyx_t_2;
|
|
__pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":775
|
|
* level = 1
|
|
* for i in range(begin+1,len(text)):
|
|
* line = text[i] # <<<<<<<<<<<<<<
|
|
* if type(line) == d[x]:
|
|
* level += 1
|
|
*/
|
|
__pyx_t_2 = PyObject_GetItem(__pyx_cur_scope->__pyx_v_text, __pyx_v_i); if (!__pyx_t_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 775; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_XDECREF(__pyx_v_line);
|
|
__pyx_v_line = __pyx_t_2;
|
|
__pyx_t_2 = 0;
|
|
if (unlikely(!__pyx_cur_scope->__pyx_v_d)) { __Pyx_RaiseClosureNameError("d"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 776; __pyx_clineno = __LINE__; goto __pyx_L1_error;} }__pyx_t_2 = PyObject_GetItem(__pyx_cur_scope->__pyx_v_d, __pyx_v_x); if (!__pyx_t_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 776; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
|
/* "preprocessed_text.py":776
|
|
* for i in range(begin+1,len(text)):
|
|
* line = text[i]
|
|
* if type(line) == d[x]: # <<<<<<<<<<<<<<
|
|
* level += 1
|
|
* elif type(line) == d["end%s"%(x,)]:
|
|
*/
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_1 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_line)), __pyx_t_2, Py_EQ); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 776; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 776; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
if (__pyx_t_6) {
|
|
|
|
/* "preprocessed_text.py":777
|
|
* line = text[i]
|
|
* if type(line) == d[x]:
|
|
* level += 1 # <<<<<<<<<<<<<<
|
|
* elif type(line) == d["end%s"%(x,)]:
|
|
* level -= 1
|
|
*/
|
|
__pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_level, __pyx_int_1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 777; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_v_level);
|
|
__pyx_v_level = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
goto __pyx_L8;
|
|
}
|
|
|
|
/* "preprocessed_text.py":778
|
|
* if type(line) == d[x]:
|
|
* level += 1
|
|
* elif type(line) == d["end%s"%(x,)]: # <<<<<<<<<<<<<<
|
|
* level -= 1
|
|
* if level == 0:
|
|
*/
|
|
__pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 778; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(__pyx_v_x);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_x);
|
|
__Pyx_GIVEREF(__pyx_v_x);
|
|
__pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_137), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 778; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
__pyx_t_1 = PyObject_GetItem(__pyx_cur_scope->__pyx_v_d, ((PyObject *)__pyx_t_2)); if (!__pyx_t_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 778; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
|
__pyx_t_2 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_line)), __pyx_t_1, Py_EQ); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 778; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 778; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
if (__pyx_t_6) {
|
|
|
|
/* "preprocessed_text.py":779
|
|
* level += 1
|
|
* elif type(line) == d["end%s"%(x,)]:
|
|
* level -= 1 # <<<<<<<<<<<<<<
|
|
* if level == 0:
|
|
* return True
|
|
*/
|
|
__pyx_t_2 = PyNumber_InPlaceSubtract(__pyx_v_level, __pyx_int_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 779; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_v_level);
|
|
__pyx_v_level = __pyx_t_2;
|
|
__pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":780
|
|
* elif type(line) == d["end%s"%(x,)]:
|
|
* level -= 1
|
|
* if level == 0: # <<<<<<<<<<<<<<
|
|
* return True
|
|
* elif type(line) in [End, End_provider]:
|
|
*/
|
|
__pyx_t_2 = PyObject_RichCompare(__pyx_v_level, __pyx_int_0, Py_EQ); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 780; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 780; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
if (__pyx_t_6) {
|
|
|
|
/* "preprocessed_text.py":781
|
|
* level -= 1
|
|
* if level == 0:
|
|
* return True # <<<<<<<<<<<<<<
|
|
* elif type(line) in [End, End_provider]:
|
|
* break
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__pyx_t_2 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 781; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_r = __pyx_t_2;
|
|
__pyx_t_2 = 0;
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
goto __pyx_L0;
|
|
goto __pyx_L9;
|
|
}
|
|
__pyx_L9:;
|
|
goto __pyx_L8;
|
|
}
|
|
|
|
/* "preprocessed_text.py":782
|
|
* if level == 0:
|
|
* return True
|
|
* elif type(line) in [End, End_provider]: # <<<<<<<<<<<<<<
|
|
* break
|
|
* error.fail(text[begin],"Missing 'end%s'"%(x,))
|
|
*/
|
|
__Pyx_INCREF(((PyObject *)Py_TYPE(__pyx_v_line)));
|
|
__pyx_t_2 = ((PyObject *)Py_TYPE(__pyx_v_line));
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__End); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 782; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_7 = PyObject_RichCompare(((PyObject *)__pyx_t_2), __pyx_t_1, Py_EQ); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 782; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 782; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
if (!((int)__pyx_t_6)) {
|
|
__pyx_t_7 = __Pyx_GetName(__pyx_m, __pyx_n_s__End_provider); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 782; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__pyx_t_1 = PyObject_RichCompare(((PyObject *)__pyx_t_2), __pyx_t_7, Py_EQ); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 782; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
__pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_8 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 782; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_9 = ((int)__pyx_t_8);
|
|
} else {
|
|
__pyx_t_9 = ((int)__pyx_t_6);
|
|
}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_6 = __pyx_t_9;
|
|
if (__pyx_t_6) {
|
|
|
|
/* "preprocessed_text.py":783
|
|
* return True
|
|
* elif type(line) in [End, End_provider]:
|
|
* break # <<<<<<<<<<<<<<
|
|
* error.fail(text[begin],"Missing 'end%s'"%(x,))
|
|
*
|
|
*/
|
|
goto __pyx_L7_break;
|
|
goto __pyx_L8;
|
|
}
|
|
__pyx_L8:;
|
|
}
|
|
__pyx_L7_break:;
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
|
|
/* "preprocessed_text.py":784
|
|
* elif type(line) in [End, End_provider]:
|
|
* break
|
|
* error.fail(text[begin],"Missing 'end%s'"%(x,)) # <<<<<<<<<<<<<<
|
|
*
|
|
* def find_matching_end_subfunpro(begin,x):
|
|
*/
|
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__error); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 784; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_t_4, __pyx_n_s__fail); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 784; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__pyx_t_4 = PyObject_GetItem(__pyx_cur_scope->__pyx_v_text, __pyx_v_begin); if (!__pyx_t_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 784; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 784; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(__pyx_v_x);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_x);
|
|
__Pyx_GIVEREF(__pyx_v_x);
|
|
__pyx_t_7 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_138), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 784; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_7));
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
__pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 784; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_4);
|
|
__Pyx_GIVEREF(__pyx_t_4);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_t_7));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_t_7));
|
|
__pyx_t_4 = 0;
|
|
__pyx_t_7 = 0;
|
|
__pyx_t_7 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 784; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
|
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
|
goto __pyx_L0;
|
|
__pyx_L1_error:;
|
|
__Pyx_XDECREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_t_2);
|
|
__Pyx_XDECREF(__pyx_t_4);
|
|
__Pyx_XDECREF(__pyx_t_7);
|
|
__Pyx_AddTraceback("preprocessed_text.check_begin_end.find_matching_end_ifdo", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__pyx_r = NULL;
|
|
__pyx_L0:;
|
|
__Pyx_XDECREF(__pyx_v_level);
|
|
__Pyx_XDECREF(__pyx_v_i);
|
|
__Pyx_XDECREF(__pyx_v_line);
|
|
__Pyx_XGIVEREF(__pyx_r);
|
|
__Pyx_RefNannyFinishContext();
|
|
return __pyx_r;
|
|
}
|
|
|
|
/* "preprocessed_text.py":786
|
|
* error.fail(text[begin],"Missing 'end%s'"%(x,))
|
|
*
|
|
* def find_matching_end_subfunpro(begin,x): # <<<<<<<<<<<<<<
|
|
* for i in range(begin+1,len(text)):
|
|
* line = text[i]
|
|
*/
|
|
|
|
static PyObject *__pyx_pf_17preprocessed_text_15check_begin_end_1find_matching_end_subfunpro(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
|
|
static PyMethodDef __pyx_mdef_17preprocessed_text_15check_begin_end_1find_matching_end_subfunpro = {__Pyx_NAMESTR("find_matching_end_subfunpro"), (PyCFunction)__pyx_pf_17preprocessed_text_15check_begin_end_1find_matching_end_subfunpro, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(0)};
|
|
static PyObject *__pyx_pf_17preprocessed_text_15check_begin_end_1find_matching_end_subfunpro(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
|
|
struct __pyx_obj_17preprocessed_text___pyx_scope_struct_3_check_begin_end *__pyx_cur_scope;
|
|
struct __pyx_obj_17preprocessed_text___pyx_scope_struct_3_check_begin_end *__pyx_outer_scope;
|
|
PyObject *__pyx_v_begin = 0;
|
|
PyObject *__pyx_v_x = 0;
|
|
PyObject *__pyx_v_i = NULL;
|
|
PyObject *__pyx_v_line = NULL;
|
|
PyObject *__pyx_r = NULL;
|
|
__Pyx_RefNannyDeclarations
|
|
PyObject *__pyx_t_1 = NULL;
|
|
PyObject *__pyx_t_2 = NULL;
|
|
Py_ssize_t __pyx_t_3;
|
|
PyObject *__pyx_t_4 = NULL;
|
|
PyObject *(*__pyx_t_5)(PyObject *);
|
|
int __pyx_t_6;
|
|
PyObject *__pyx_t_7 = NULL;
|
|
int __pyx_t_8;
|
|
int __pyx_t_9;
|
|
PyObject *__pyx_t_10 = NULL;
|
|
int __pyx_lineno = 0;
|
|
const char *__pyx_filename = NULL;
|
|
int __pyx_clineno = 0;
|
|
static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__begin,&__pyx_n_s__x,0};
|
|
__Pyx_RefNannySetupContext("find_matching_end_subfunpro");
|
|
__pyx_outer_scope = (struct __pyx_obj_17preprocessed_text___pyx_scope_struct_3_check_begin_end *)__pyx_self;
|
|
__pyx_cur_scope = __pyx_outer_scope;
|
|
__pyx_self = __pyx_self;
|
|
{
|
|
PyObject* values[2] = {0,0};
|
|
if (unlikely(__pyx_kwds)) {
|
|
Py_ssize_t kw_args;
|
|
switch (PyTuple_GET_SIZE(__pyx_args)) {
|
|
case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
|
|
case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
|
|
case 0: break;
|
|
default: goto __pyx_L5_argtuple_error;
|
|
}
|
|
kw_args = PyDict_Size(__pyx_kwds);
|
|
switch (PyTuple_GET_SIZE(__pyx_args)) {
|
|
case 0:
|
|
values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__begin);
|
|
if (likely(values[0])) kw_args--;
|
|
else goto __pyx_L5_argtuple_error;
|
|
case 1:
|
|
values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__x);
|
|
if (likely(values[1])) kw_args--;
|
|
else {
|
|
__Pyx_RaiseArgtupleInvalid("find_matching_end_subfunpro", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 786; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
|
|
}
|
|
}
|
|
if (unlikely(kw_args > 0)) {
|
|
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "find_matching_end_subfunpro") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 786; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
|
|
}
|
|
} else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
|
|
goto __pyx_L5_argtuple_error;
|
|
} else {
|
|
values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
|
|
values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
|
|
}
|
|
__pyx_v_begin = values[0];
|
|
__pyx_v_x = values[1];
|
|
}
|
|
goto __pyx_L4_argument_unpacking_done;
|
|
__pyx_L5_argtuple_error:;
|
|
__Pyx_RaiseArgtupleInvalid("find_matching_end_subfunpro", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 786; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
|
|
__pyx_L3_error:;
|
|
__Pyx_AddTraceback("preprocessed_text.check_begin_end.find_matching_end_subfunpro", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__Pyx_RefNannyFinishContext();
|
|
return NULL;
|
|
__pyx_L4_argument_unpacking_done:;
|
|
|
|
/* "preprocessed_text.py":787
|
|
*
|
|
* def find_matching_end_subfunpro(begin,x):
|
|
* for i in range(begin+1,len(text)): # <<<<<<<<<<<<<<
|
|
* line = text[i]
|
|
* if type(line) == x:
|
|
*/
|
|
__pyx_t_1 = PyNumber_Add(__pyx_v_begin, __pyx_int_1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 787; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
if (unlikely(!__pyx_cur_scope->__pyx_v_text)) { __Pyx_RaiseClosureNameError("text"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 787; __pyx_clineno = __LINE__; goto __pyx_L1_error;} }__pyx_t_2 = __pyx_cur_scope->__pyx_v_text;
|
|
__Pyx_INCREF(__pyx_t_2);
|
|
__pyx_t_3 = PyObject_Length(__pyx_t_2); if (unlikely(__pyx_t_3 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 787; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_2 = PyInt_FromSsize_t(__pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 787; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 787; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
|
|
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
|
|
__Pyx_GIVEREF(__pyx_t_1);
|
|
PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2);
|
|
__Pyx_GIVEREF(__pyx_t_2);
|
|
__pyx_t_1 = 0;
|
|
__pyx_t_2 = 0;
|
|
__pyx_t_2 = PyObject_Call(__pyx_builtin_range, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 787; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
|
|
if (PyList_CheckExact(__pyx_t_2) || PyTuple_CheckExact(__pyx_t_2)) {
|
|
__pyx_t_4 = __pyx_t_2; __Pyx_INCREF(__pyx_t_4); __pyx_t_3 = 0;
|
|
__pyx_t_5 = NULL;
|
|
} else {
|
|
__pyx_t_3 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 787; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_5 = Py_TYPE(__pyx_t_4)->tp_iternext;
|
|
}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
for (;;) {
|
|
if (PyList_CheckExact(__pyx_t_4)) {
|
|
if (__pyx_t_3 >= PyList_GET_SIZE(__pyx_t_4)) break;
|
|
__pyx_t_2 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_3); __Pyx_INCREF(__pyx_t_2); __pyx_t_3++;
|
|
} else if (PyTuple_CheckExact(__pyx_t_4)) {
|
|
if (__pyx_t_3 >= PyTuple_GET_SIZE(__pyx_t_4)) break;
|
|
__pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_3); __Pyx_INCREF(__pyx_t_2); __pyx_t_3++;
|
|
} else {
|
|
__pyx_t_2 = __pyx_t_5(__pyx_t_4);
|
|
if (unlikely(!__pyx_t_2)) {
|
|
if (PyErr_Occurred()) {
|
|
if (likely(PyErr_ExceptionMatches(PyExc_StopIteration))) PyErr_Clear();
|
|
else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 787; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
break;
|
|
}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
}
|
|
__Pyx_XDECREF(__pyx_v_i);
|
|
__pyx_v_i = __pyx_t_2;
|
|
__pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":788
|
|
* def find_matching_end_subfunpro(begin,x):
|
|
* for i in range(begin+1,len(text)):
|
|
* line = text[i] # <<<<<<<<<<<<<<
|
|
* if type(line) == x:
|
|
* return
|
|
*/
|
|
__pyx_t_2 = PyObject_GetItem(__pyx_cur_scope->__pyx_v_text, __pyx_v_i); if (!__pyx_t_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 788; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_XDECREF(__pyx_v_line);
|
|
__pyx_v_line = __pyx_t_2;
|
|
__pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":789
|
|
* for i in range(begin+1,len(text)):
|
|
* line = text[i]
|
|
* if type(line) == x: # <<<<<<<<<<<<<<
|
|
* return
|
|
* if type(line) in [ Subroutine, Function, Program, Begin_provider ]:
|
|
*/
|
|
__pyx_t_2 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_line)), __pyx_v_x, Py_EQ); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 789; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 789; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
if (__pyx_t_6) {
|
|
|
|
/* "preprocessed_text.py":790
|
|
* line = text[i]
|
|
* if type(line) == x:
|
|
* return # <<<<<<<<<<<<<<
|
|
* if type(line) in [ Subroutine, Function, Program, Begin_provider ]:
|
|
* error.fail(text[begin],type(line).str+" is not closed")
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
goto __pyx_L0;
|
|
goto __pyx_L8;
|
|
}
|
|
__pyx_L8:;
|
|
|
|
/* "preprocessed_text.py":791
|
|
* if type(line) == x:
|
|
* return
|
|
* if type(line) in [ Subroutine, Function, Program, Begin_provider ]: # <<<<<<<<<<<<<<
|
|
* error.fail(text[begin],type(line).str+" is not closed")
|
|
* error.fail(text[begin],type(line).str + " is not closed")
|
|
*/
|
|
__Pyx_INCREF(((PyObject *)Py_TYPE(__pyx_v_line)));
|
|
__pyx_t_2 = ((PyObject *)Py_TYPE(__pyx_v_line));
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__Subroutine); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 791; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_7 = PyObject_RichCompare(((PyObject *)__pyx_t_2), __pyx_t_1, Py_EQ); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 791; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 791; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
if (!((int)__pyx_t_6)) {
|
|
__pyx_t_7 = __Pyx_GetName(__pyx_m, __pyx_n_s__Function); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 791; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__pyx_t_1 = PyObject_RichCompare(((PyObject *)__pyx_t_2), __pyx_t_7, Py_EQ); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 791; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
__pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_8 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 791; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_9 = ((int)__pyx_t_8);
|
|
} else {
|
|
__pyx_t_9 = ((int)__pyx_t_6);
|
|
}
|
|
if (!__pyx_t_9) {
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__Program); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 791; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_7 = PyObject_RichCompare(((PyObject *)__pyx_t_2), __pyx_t_1, Py_EQ); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 791; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 791; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
__pyx_t_8 = ((int)__pyx_t_6);
|
|
} else {
|
|
__pyx_t_8 = __pyx_t_9;
|
|
}
|
|
if (!__pyx_t_8) {
|
|
__pyx_t_7 = __Pyx_GetName(__pyx_m, __pyx_n_s__Begin_provider); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 791; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__pyx_t_1 = PyObject_RichCompare(((PyObject *)__pyx_t_2), __pyx_t_7, Py_EQ); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 791; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
__pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_9 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 791; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_6 = ((int)__pyx_t_9);
|
|
} else {
|
|
__pyx_t_6 = __pyx_t_8;
|
|
}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_8 = __pyx_t_6;
|
|
if (__pyx_t_8) {
|
|
|
|
/* "preprocessed_text.py":792
|
|
* return
|
|
* if type(line) in [ Subroutine, Function, Program, Begin_provider ]:
|
|
* error.fail(text[begin],type(line).str+" is not closed") # <<<<<<<<<<<<<<
|
|
* error.fail(text[begin],type(line).str + " is not closed")
|
|
*
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__error); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 792; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__fail); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 792; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_2 = PyObject_GetItem(__pyx_cur_scope->__pyx_v_text, __pyx_v_begin); if (!__pyx_t_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 792; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_7 = PyObject_GetAttr(((PyObject *)Py_TYPE(__pyx_v_line)), __pyx_n_s__str); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 792; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__pyx_t_10 = PyNumber_Add(__pyx_t_7, ((PyObject *)__pyx_kp_s_139)); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 792; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_10);
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
__pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 792; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_7));
|
|
PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_2);
|
|
__Pyx_GIVEREF(__pyx_t_2);
|
|
PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_10);
|
|
__Pyx_GIVEREF(__pyx_t_10);
|
|
__pyx_t_2 = 0;
|
|
__pyx_t_10 = 0;
|
|
__pyx_t_10 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_7), NULL); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 792; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_10);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0;
|
|
__Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
|
|
goto __pyx_L9;
|
|
}
|
|
__pyx_L9:;
|
|
}
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
|
|
/* "preprocessed_text.py":793
|
|
* if type(line) in [ Subroutine, Function, Program, Begin_provider ]:
|
|
* error.fail(text[begin],type(line).str+" is not closed")
|
|
* error.fail(text[begin],type(line).str + " is not closed") # <<<<<<<<<<<<<<
|
|
*
|
|
*
|
|
*/
|
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__error); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 793; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_10 = PyObject_GetAttr(__pyx_t_4, __pyx_n_s__fail); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 793; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_10);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__pyx_t_4 = PyObject_GetItem(__pyx_cur_scope->__pyx_v_text, __pyx_v_begin); if (!__pyx_t_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 793; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
if (unlikely(!__pyx_v_line)) { __Pyx_RaiseUnboundLocalError("line"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 793; __pyx_clineno = __LINE__; goto __pyx_L1_error;} }__pyx_t_7 = PyObject_GetAttr(((PyObject *)Py_TYPE(__pyx_v_line)), __pyx_n_s__str); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 793; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__pyx_t_1 = PyNumber_Add(__pyx_t_7, ((PyObject *)__pyx_kp_s_139)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 793; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
__pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 793; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_7));
|
|
PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4);
|
|
__Pyx_GIVEREF(__pyx_t_4);
|
|
PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_1);
|
|
__Pyx_GIVEREF(__pyx_t_1);
|
|
__pyx_t_4 = 0;
|
|
__pyx_t_1 = 0;
|
|
__pyx_t_1 = PyObject_Call(__pyx_t_10, ((PyObject *)__pyx_t_7), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 793; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0;
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
|
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
|
goto __pyx_L0;
|
|
__pyx_L1_error:;
|
|
__Pyx_XDECREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_t_2);
|
|
__Pyx_XDECREF(__pyx_t_4);
|
|
__Pyx_XDECREF(__pyx_t_7);
|
|
__Pyx_XDECREF(__pyx_t_10);
|
|
__Pyx_AddTraceback("preprocessed_text.check_begin_end.find_matching_end_subfunpro", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__pyx_r = NULL;
|
|
__pyx_L0:;
|
|
__Pyx_XDECREF(__pyx_v_i);
|
|
__Pyx_XDECREF(__pyx_v_line);
|
|
__Pyx_XGIVEREF(__pyx_r);
|
|
__Pyx_RefNannyFinishContext();
|
|
return __pyx_r;
|
|
}
|
|
|
|
/* "preprocessed_text.py":762
|
|
* '''Checks x...endx consistence'''
|
|
*
|
|
* filter_line = lambda line: type(line) in [ Do, Enddo, If, Endif, \ # <<<<<<<<<<<<<<
|
|
* Program, Begin_provider, End_provider, \
|
|
* Subroutine, Function, End, Begin_doc, End_doc ]
|
|
*/
|
|
|
|
static PyObject *__pyx_lambda_funcdef_lambda3(PyObject *__pyx_self, PyObject *__pyx_v_line); /*proto*/
|
|
static PyMethodDef __pyx_lambda_methdef_lambda3 = {__Pyx_NAMESTR("lambda3"), (PyCFunction)__pyx_lambda_funcdef_lambda3, METH_O, __Pyx_DOCSTR(0)};
|
|
static PyObject *__pyx_lambda_funcdef_lambda3(PyObject *__pyx_self, PyObject *__pyx_v_line) {
|
|
PyObject *__pyx_r = NULL;
|
|
__Pyx_RefNannyDeclarations
|
|
PyObject *__pyx_t_1 = NULL;
|
|
PyObject *__pyx_t_2 = NULL;
|
|
PyObject *__pyx_t_3 = NULL;
|
|
int __pyx_t_4;
|
|
int __pyx_t_5;
|
|
int __pyx_t_6;
|
|
int __pyx_lineno = 0;
|
|
const char *__pyx_filename = NULL;
|
|
int __pyx_clineno = 0;
|
|
__Pyx_RefNannySetupContext("lambda3");
|
|
__pyx_self = __pyx_self;
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__Pyx_INCREF(((PyObject *)Py_TYPE(__pyx_v_line)));
|
|
__pyx_t_1 = ((PyObject *)Py_TYPE(__pyx_v_line));
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Do); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 762; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_3 = PyObject_RichCompare(((PyObject *)__pyx_t_1), __pyx_t_2, Py_EQ); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 762; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 762; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
if (!((int)__pyx_t_4)) {
|
|
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__Enddo); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 762; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__pyx_t_2 = PyObject_RichCompare(((PyObject *)__pyx_t_1), __pyx_t_3, Py_EQ); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 762; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
__pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 762; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_6 = ((int)__pyx_t_5);
|
|
} else {
|
|
__pyx_t_6 = ((int)__pyx_t_4);
|
|
}
|
|
if (!__pyx_t_6) {
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__If); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 762; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_3 = PyObject_RichCompare(((PyObject *)__pyx_t_1), __pyx_t_2, Py_EQ); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 762; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 762; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
__pyx_t_5 = ((int)__pyx_t_4);
|
|
} else {
|
|
__pyx_t_5 = __pyx_t_6;
|
|
}
|
|
if (!__pyx_t_5) {
|
|
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__Endif); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 762; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__pyx_t_2 = PyObject_RichCompare(((PyObject *)__pyx_t_1), __pyx_t_3, Py_EQ); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 762; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 762; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_4 = ((int)__pyx_t_6);
|
|
} else {
|
|
__pyx_t_4 = __pyx_t_5;
|
|
}
|
|
if (!__pyx_t_4) {
|
|
|
|
/* "preprocessed_text.py":763
|
|
*
|
|
* filter_line = lambda line: type(line) in [ Do, Enddo, If, Endif, \
|
|
* Program, Begin_provider, End_provider, \ # <<<<<<<<<<<<<<
|
|
* Subroutine, Function, End, Begin_doc, End_doc ]
|
|
* text = filter(filter_line, text)
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Program); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 763; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_3 = PyObject_RichCompare(((PyObject *)__pyx_t_1), __pyx_t_2, Py_EQ); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 762; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 762; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
__pyx_t_6 = ((int)__pyx_t_5);
|
|
} else {
|
|
__pyx_t_6 = __pyx_t_4;
|
|
}
|
|
if (!__pyx_t_6) {
|
|
|
|
/* "preprocessed_text.py":762
|
|
* '''Checks x...endx consistence'''
|
|
*
|
|
* filter_line = lambda line: type(line) in [ Do, Enddo, If, Endif, \ # <<<<<<<<<<<<<<
|
|
* Program, Begin_provider, End_provider, \
|
|
* Subroutine, Function, End, Begin_doc, End_doc ]
|
|
*/
|
|
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__Begin_provider); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 763; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__pyx_t_2 = PyObject_RichCompare(((PyObject *)__pyx_t_1), __pyx_t_3, Py_EQ); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 762; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
__pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 762; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_5 = ((int)__pyx_t_4);
|
|
} else {
|
|
__pyx_t_5 = __pyx_t_6;
|
|
}
|
|
if (!__pyx_t_5) {
|
|
|
|
/* "preprocessed_text.py":763
|
|
*
|
|
* filter_line = lambda line: type(line) in [ Do, Enddo, If, Endif, \
|
|
* Program, Begin_provider, End_provider, \ # <<<<<<<<<<<<<<
|
|
* Subroutine, Function, End, Begin_doc, End_doc ]
|
|
* text = filter(filter_line, text)
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__End_provider); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 763; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_3 = PyObject_RichCompare(((PyObject *)__pyx_t_1), __pyx_t_2, Py_EQ); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 762; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 762; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
__pyx_t_4 = ((int)__pyx_t_6);
|
|
} else {
|
|
__pyx_t_4 = __pyx_t_5;
|
|
}
|
|
if (!__pyx_t_4) {
|
|
|
|
/* "preprocessed_text.py":764
|
|
* filter_line = lambda line: type(line) in [ Do, Enddo, If, Endif, \
|
|
* Program, Begin_provider, End_provider, \
|
|
* Subroutine, Function, End, Begin_doc, End_doc ] # <<<<<<<<<<<<<<
|
|
* text = filter(filter_line, text)
|
|
*
|
|
*/
|
|
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__Subroutine); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 764; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__pyx_t_2 = PyObject_RichCompare(((PyObject *)__pyx_t_1), __pyx_t_3, Py_EQ); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 762; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
__pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 762; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_6 = ((int)__pyx_t_5);
|
|
} else {
|
|
__pyx_t_6 = __pyx_t_4;
|
|
}
|
|
if (!__pyx_t_6) {
|
|
|
|
/* "preprocessed_text.py":762
|
|
* '''Checks x...endx consistence'''
|
|
*
|
|
* filter_line = lambda line: type(line) in [ Do, Enddo, If, Endif, \ # <<<<<<<<<<<<<<
|
|
* Program, Begin_provider, End_provider, \
|
|
* Subroutine, Function, End, Begin_doc, End_doc ]
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Function); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 764; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_3 = PyObject_RichCompare(((PyObject *)__pyx_t_1), __pyx_t_2, Py_EQ); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 762; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 762; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
__pyx_t_5 = ((int)__pyx_t_4);
|
|
} else {
|
|
__pyx_t_5 = __pyx_t_6;
|
|
}
|
|
if (!__pyx_t_5) {
|
|
|
|
/* "preprocessed_text.py":764
|
|
* filter_line = lambda line: type(line) in [ Do, Enddo, If, Endif, \
|
|
* Program, Begin_provider, End_provider, \
|
|
* Subroutine, Function, End, Begin_doc, End_doc ] # <<<<<<<<<<<<<<
|
|
* text = filter(filter_line, text)
|
|
*
|
|
*/
|
|
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__End); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 764; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__pyx_t_2 = PyObject_RichCompare(((PyObject *)__pyx_t_1), __pyx_t_3, Py_EQ); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 762; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 762; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_4 = ((int)__pyx_t_6);
|
|
} else {
|
|
__pyx_t_4 = __pyx_t_5;
|
|
}
|
|
if (!__pyx_t_4) {
|
|
|
|
/* "preprocessed_text.py":762
|
|
* '''Checks x...endx consistence'''
|
|
*
|
|
* filter_line = lambda line: type(line) in [ Do, Enddo, If, Endif, \ # <<<<<<<<<<<<<<
|
|
* Program, Begin_provider, End_provider, \
|
|
* Subroutine, Function, End, Begin_doc, End_doc ]
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Begin_doc); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 764; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_3 = PyObject_RichCompare(((PyObject *)__pyx_t_1), __pyx_t_2, Py_EQ); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 762; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 762; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
__pyx_t_6 = ((int)__pyx_t_5);
|
|
} else {
|
|
__pyx_t_6 = __pyx_t_4;
|
|
}
|
|
if (!__pyx_t_6) {
|
|
|
|
/* "preprocessed_text.py":764
|
|
* filter_line = lambda line: type(line) in [ Do, Enddo, If, Endif, \
|
|
* Program, Begin_provider, End_provider, \
|
|
* Subroutine, Function, End, Begin_doc, End_doc ] # <<<<<<<<<<<<<<
|
|
* text = filter(filter_line, text)
|
|
*
|
|
*/
|
|
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__End_doc); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 764; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__pyx_t_2 = PyObject_RichCompare(((PyObject *)__pyx_t_1), __pyx_t_3, Py_EQ); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 762; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
__pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 762; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_t_5 = ((int)__pyx_t_4);
|
|
} else {
|
|
__pyx_t_5 = __pyx_t_6;
|
|
}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_5); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 762; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_r = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
goto __pyx_L0;
|
|
|
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
|
goto __pyx_L0;
|
|
__pyx_L1_error:;
|
|
__Pyx_XDECREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_t_2);
|
|
__Pyx_XDECREF(__pyx_t_3);
|
|
__Pyx_AddTraceback("preprocessed_text.check_begin_end.lambda3", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__pyx_r = NULL;
|
|
__pyx_L0:;
|
|
__Pyx_XGIVEREF(__pyx_r);
|
|
__Pyx_RefNannyFinishContext();
|
|
return __pyx_r;
|
|
}
|
|
|
|
/* "preprocessed_text.py":759
|
|
*
|
|
* ######################################################################
|
|
* def check_begin_end(text): # <<<<<<<<<<<<<<
|
|
* '''Checks x...endx consistence'''
|
|
*
|
|
*/
|
|
|
|
static PyObject *__pyx_pf_17preprocessed_text_12check_begin_end(PyObject *__pyx_self, PyObject *__pyx_v_text); /*proto*/
|
|
static char __pyx_doc_17preprocessed_text_12check_begin_end[] = "Checks x...endx consistence";
|
|
static PyMethodDef __pyx_mdef_17preprocessed_text_12check_begin_end = {__Pyx_NAMESTR("check_begin_end"), (PyCFunction)__pyx_pf_17preprocessed_text_12check_begin_end, METH_O, __Pyx_DOCSTR(__pyx_doc_17preprocessed_text_12check_begin_end)};
|
|
static PyObject *__pyx_pf_17preprocessed_text_12check_begin_end(PyObject *__pyx_self, PyObject *__pyx_v_text) {
|
|
struct __pyx_obj_17preprocessed_text___pyx_scope_struct_3_check_begin_end *__pyx_cur_scope;
|
|
PyObject *__pyx_v_filter_line = NULL;
|
|
PyObject *__pyx_v_find_matching_end_ifdo = 0;
|
|
PyObject *__pyx_v_find_matching_end_subfunpro = 0;
|
|
PyObject *__pyx_v_level = NULL;
|
|
PyObject *__pyx_v_i = NULL;
|
|
PyObject *__pyx_v_line = NULL;
|
|
PyObject *__pyx_r = NULL;
|
|
__Pyx_RefNannyDeclarations
|
|
PyObject *__pyx_t_1 = NULL;
|
|
PyObject *__pyx_t_2 = NULL;
|
|
int __pyx_t_3;
|
|
Py_ssize_t __pyx_t_4;
|
|
PyObject *(*__pyx_t_5)(PyObject *);
|
|
PyObject *__pyx_t_6 = NULL;
|
|
PyObject *__pyx_t_7 = NULL;
|
|
PyObject *__pyx_t_8 = NULL;
|
|
int __pyx_t_9;
|
|
int __pyx_t_10;
|
|
int __pyx_lineno = 0;
|
|
const char *__pyx_filename = NULL;
|
|
int __pyx_clineno = 0;
|
|
__Pyx_RefNannySetupContext("check_begin_end");
|
|
__pyx_cur_scope = (struct __pyx_obj_17preprocessed_text___pyx_scope_struct_3_check_begin_end *)__pyx_ptype_17preprocessed_text___pyx_scope_struct_3_check_begin_end->tp_new(__pyx_ptype_17preprocessed_text___pyx_scope_struct_3_check_begin_end, __pyx_empty_tuple, NULL);
|
|
if (unlikely(!__pyx_cur_scope)) {
|
|
__Pyx_RefNannyFinishContext();
|
|
return NULL;
|
|
}
|
|
__Pyx_GOTREF(__pyx_cur_scope);
|
|
__pyx_self = __pyx_self;
|
|
__Pyx_INCREF(__pyx_v_text);
|
|
__pyx_cur_scope->__pyx_v_text = __pyx_v_text;
|
|
__Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_text);
|
|
|
|
/* "preprocessed_text.py":762
|
|
* '''Checks x...endx consistence'''
|
|
*
|
|
* filter_line = lambda line: type(line) in [ Do, Enddo, If, Endif, \ # <<<<<<<<<<<<<<
|
|
* Program, Begin_provider, End_provider, \
|
|
* Subroutine, Function, End, Begin_doc, End_doc ]
|
|
*/
|
|
__pyx_t_1 = __pyx_binding_PyCFunctionType_NewEx(&__pyx_lambda_methdef_lambda3, NULL, __pyx_n_s__preprocessed_text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 762; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_v_filter_line = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":765
|
|
* Program, Begin_provider, End_provider, \
|
|
* Subroutine, Function, End, Begin_doc, End_doc ]
|
|
* text = filter(filter_line, text) # <<<<<<<<<<<<<<
|
|
*
|
|
* d = { 'do' : Do, 'enddo': Enddo,
|
|
*/
|
|
__pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 765; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(__pyx_v_filter_line);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_filter_line);
|
|
__Pyx_GIVEREF(__pyx_v_filter_line);
|
|
__Pyx_INCREF(__pyx_cur_scope->__pyx_v_text);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_cur_scope->__pyx_v_text);
|
|
__Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_text);
|
|
__pyx_t_2 = PyObject_Call(__pyx_builtin_filter, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 765; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
__Pyx_GOTREF(__pyx_cur_scope->__pyx_v_text);
|
|
__Pyx_DECREF(__pyx_cur_scope->__pyx_v_text);
|
|
__Pyx_GIVEREF(__pyx_t_2);
|
|
__pyx_cur_scope->__pyx_v_text = __pyx_t_2;
|
|
__pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":767
|
|
* text = filter(filter_line, text)
|
|
*
|
|
* d = { 'do' : Do, 'enddo': Enddo, # <<<<<<<<<<<<<<
|
|
* 'if' : If, 'endif': Endif,
|
|
* '_doc': Begin_doc, 'end_doc': End_doc}
|
|
*/
|
|
__pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 767; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__Do); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 767; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
if (PyDict_SetItem(__pyx_t_2, ((PyObject *)__pyx_n_s__do), __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 767; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__Enddo); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 767; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
if (PyDict_SetItem(__pyx_t_2, ((PyObject *)__pyx_n_s__enddo), __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 767; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":768
|
|
*
|
|
* d = { 'do' : Do, 'enddo': Enddo,
|
|
* 'if' : If, 'endif': Endif, # <<<<<<<<<<<<<<
|
|
* '_doc': Begin_doc, 'end_doc': End_doc}
|
|
* assert type(text) == list
|
|
*/
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__If); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 768; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
if (PyDict_SetItem(__pyx_t_2, ((PyObject *)__pyx_n_s__if), __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 767; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__Endif); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 768; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
if (PyDict_SetItem(__pyx_t_2, ((PyObject *)__pyx_n_s__endif), __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 767; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":769
|
|
* d = { 'do' : Do, 'enddo': Enddo,
|
|
* 'if' : If, 'endif': Endif,
|
|
* '_doc': Begin_doc, 'end_doc': End_doc} # <<<<<<<<<<<<<<
|
|
* assert type(text) == list
|
|
*
|
|
*/
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__Begin_doc); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 769; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
if (PyDict_SetItem(__pyx_t_2, ((PyObject *)__pyx_n_s___doc), __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 767; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__End_doc); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 769; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
if (PyDict_SetItem(__pyx_t_2, ((PyObject *)__pyx_n_s__end_doc), __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 767; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_t_2));
|
|
__pyx_cur_scope->__pyx_v_d = ((PyObject *)__pyx_t_2);
|
|
__pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":770
|
|
* 'if' : If, 'endif': Endif,
|
|
* '_doc': Begin_doc, 'end_doc': End_doc}
|
|
* assert type(text) == list # <<<<<<<<<<<<<<
|
|
*
|
|
* def find_matching_end_ifdo(begin,x):
|
|
*/
|
|
#ifndef CYTHON_WITHOUT_ASSERTIONS
|
|
__pyx_t_2 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_cur_scope->__pyx_v_text)), ((PyObject *)((PyObject*)(&PyList_Type))), Py_EQ); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 770; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 770; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
if (unlikely(!__pyx_t_3)) {
|
|
PyErr_SetNone(PyExc_AssertionError);
|
|
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 770; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
#endif
|
|
|
|
/* "preprocessed_text.py":772
|
|
* assert type(text) == list
|
|
*
|
|
* def find_matching_end_ifdo(begin,x): # <<<<<<<<<<<<<<
|
|
* level = 1
|
|
* for i in range(begin+1,len(text)):
|
|
*/
|
|
__pyx_t_2 = __pyx_binding_PyCFunctionType_NewEx(&__pyx_mdef_17preprocessed_text_15check_begin_end_find_matching_end_ifdo, ((PyObject*)__pyx_cur_scope), __pyx_n_s__preprocessed_text); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 772; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_XDECREF(__pyx_v_find_matching_end_ifdo);
|
|
__pyx_v_find_matching_end_ifdo = __pyx_t_2;
|
|
__pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":786
|
|
* error.fail(text[begin],"Missing 'end%s'"%(x,))
|
|
*
|
|
* def find_matching_end_subfunpro(begin,x): # <<<<<<<<<<<<<<
|
|
* for i in range(begin+1,len(text)):
|
|
* line = text[i]
|
|
*/
|
|
__pyx_t_2 = __pyx_binding_PyCFunctionType_NewEx(&__pyx_mdef_17preprocessed_text_15check_begin_end_1find_matching_end_subfunpro, ((PyObject*)__pyx_cur_scope), __pyx_n_s__preprocessed_text); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 786; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_XDECREF(__pyx_v_find_matching_end_subfunpro);
|
|
__pyx_v_find_matching_end_subfunpro = __pyx_t_2;
|
|
__pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":796
|
|
*
|
|
*
|
|
* level = 0 # <<<<<<<<<<<<<<
|
|
* for i,line in enumerate(text):
|
|
* if type(line) == Begin_doc:
|
|
*/
|
|
__Pyx_INCREF(__pyx_int_0);
|
|
__pyx_v_level = __pyx_int_0;
|
|
|
|
/* "preprocessed_text.py":797
|
|
*
|
|
* level = 0
|
|
* for i,line in enumerate(text): # <<<<<<<<<<<<<<
|
|
* if type(line) == Begin_doc:
|
|
* find_matching_end_ifdo(i,'_doc')
|
|
*/
|
|
__Pyx_INCREF(__pyx_int_0);
|
|
__pyx_t_2 = __pyx_int_0;
|
|
if (PyList_CheckExact(__pyx_cur_scope->__pyx_v_text) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_v_text)) {
|
|
__pyx_t_1 = __pyx_cur_scope->__pyx_v_text; __Pyx_INCREF(__pyx_t_1); __pyx_t_4 = 0;
|
|
__pyx_t_5 = NULL;
|
|
} else {
|
|
__pyx_t_4 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_v_text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 797; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_5 = Py_TYPE(__pyx_t_1)->tp_iternext;
|
|
}
|
|
for (;;) {
|
|
if (PyList_CheckExact(__pyx_t_1)) {
|
|
if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_1)) break;
|
|
__pyx_t_6 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_4); __Pyx_INCREF(__pyx_t_6); __pyx_t_4++;
|
|
} else if (PyTuple_CheckExact(__pyx_t_1)) {
|
|
if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_1)) break;
|
|
__pyx_t_6 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_4); __Pyx_INCREF(__pyx_t_6); __pyx_t_4++;
|
|
} else {
|
|
__pyx_t_6 = __pyx_t_5(__pyx_t_1);
|
|
if (unlikely(!__pyx_t_6)) {
|
|
if (PyErr_Occurred()) {
|
|
if (likely(PyErr_ExceptionMatches(PyExc_StopIteration))) PyErr_Clear();
|
|
else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 797; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
break;
|
|
}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
}
|
|
__Pyx_XDECREF(__pyx_v_line);
|
|
__pyx_v_line = __pyx_t_6;
|
|
__pyx_t_6 = 0;
|
|
__Pyx_INCREF(__pyx_t_2);
|
|
__Pyx_XDECREF(__pyx_v_i);
|
|
__pyx_v_i = __pyx_t_2;
|
|
__pyx_t_6 = PyNumber_Add(__pyx_t_2, __pyx_int_1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 797; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_2);
|
|
__pyx_t_2 = __pyx_t_6;
|
|
__pyx_t_6 = 0;
|
|
|
|
/* "preprocessed_text.py":798
|
|
* level = 0
|
|
* for i,line in enumerate(text):
|
|
* if type(line) == Begin_doc: # <<<<<<<<<<<<<<
|
|
* find_matching_end_ifdo(i,'_doc')
|
|
* for i,line in enumerate(text):
|
|
*/
|
|
__pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__Begin_doc); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 798; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_7 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_line)), __pyx_t_6, Py_EQ); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 798; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 798; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
if (__pyx_t_3) {
|
|
|
|
/* "preprocessed_text.py":799
|
|
* for i,line in enumerate(text):
|
|
* if type(line) == Begin_doc:
|
|
* find_matching_end_ifdo(i,'_doc') # <<<<<<<<<<<<<<
|
|
* for i,line in enumerate(text):
|
|
* if type(line) == Do:
|
|
*/
|
|
__pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 799; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_7));
|
|
__Pyx_INCREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_v_i);
|
|
__Pyx_GIVEREF(__pyx_v_i);
|
|
__Pyx_INCREF(((PyObject *)__pyx_n_s___doc));
|
|
PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_n_s___doc));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_n_s___doc));
|
|
__pyx_t_6 = PyObject_Call(__pyx_v_find_matching_end_ifdo, ((PyObject *)__pyx_t_7), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 799; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0;
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
goto __pyx_L7;
|
|
}
|
|
__pyx_L7:;
|
|
}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":800
|
|
* if type(line) == Begin_doc:
|
|
* find_matching_end_ifdo(i,'_doc')
|
|
* for i,line in enumerate(text): # <<<<<<<<<<<<<<
|
|
* if type(line) == Do:
|
|
* find_matching_end_ifdo(i,'do')
|
|
*/
|
|
__Pyx_INCREF(__pyx_int_0);
|
|
__pyx_t_2 = __pyx_int_0;
|
|
if (PyList_CheckExact(__pyx_cur_scope->__pyx_v_text) || PyTuple_CheckExact(__pyx_cur_scope->__pyx_v_text)) {
|
|
__pyx_t_1 = __pyx_cur_scope->__pyx_v_text; __Pyx_INCREF(__pyx_t_1); __pyx_t_4 = 0;
|
|
__pyx_t_5 = NULL;
|
|
} else {
|
|
__pyx_t_4 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_cur_scope->__pyx_v_text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 800; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_5 = Py_TYPE(__pyx_t_1)->tp_iternext;
|
|
}
|
|
for (;;) {
|
|
if (PyList_CheckExact(__pyx_t_1)) {
|
|
if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_1)) break;
|
|
__pyx_t_6 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_4); __Pyx_INCREF(__pyx_t_6); __pyx_t_4++;
|
|
} else if (PyTuple_CheckExact(__pyx_t_1)) {
|
|
if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_1)) break;
|
|
__pyx_t_6 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_4); __Pyx_INCREF(__pyx_t_6); __pyx_t_4++;
|
|
} else {
|
|
__pyx_t_6 = __pyx_t_5(__pyx_t_1);
|
|
if (unlikely(!__pyx_t_6)) {
|
|
if (PyErr_Occurred()) {
|
|
if (likely(PyErr_ExceptionMatches(PyExc_StopIteration))) PyErr_Clear();
|
|
else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 800; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
break;
|
|
}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
}
|
|
__Pyx_XDECREF(__pyx_v_line);
|
|
__pyx_v_line = __pyx_t_6;
|
|
__pyx_t_6 = 0;
|
|
__Pyx_INCREF(__pyx_t_2);
|
|
__Pyx_XDECREF(__pyx_v_i);
|
|
__pyx_v_i = __pyx_t_2;
|
|
__pyx_t_6 = PyNumber_Add(__pyx_t_2, __pyx_int_1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 800; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_2);
|
|
__pyx_t_2 = __pyx_t_6;
|
|
__pyx_t_6 = 0;
|
|
|
|
/* "preprocessed_text.py":801
|
|
* find_matching_end_ifdo(i,'_doc')
|
|
* for i,line in enumerate(text):
|
|
* if type(line) == Do: # <<<<<<<<<<<<<<
|
|
* find_matching_end_ifdo(i,'do')
|
|
* elif type(line) == If:
|
|
*/
|
|
__pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__Do); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 801; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_7 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_line)), __pyx_t_6, Py_EQ); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 801; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 801; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
if (__pyx_t_3) {
|
|
|
|
/* "preprocessed_text.py":802
|
|
* for i,line in enumerate(text):
|
|
* if type(line) == Do:
|
|
* find_matching_end_ifdo(i,'do') # <<<<<<<<<<<<<<
|
|
* elif type(line) == If:
|
|
* find_matching_end_ifdo(i,'if')
|
|
*/
|
|
__pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 802; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_7));
|
|
__Pyx_INCREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_v_i);
|
|
__Pyx_GIVEREF(__pyx_v_i);
|
|
__Pyx_INCREF(((PyObject *)__pyx_n_s__do));
|
|
PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_n_s__do));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_n_s__do));
|
|
__pyx_t_6 = PyObject_Call(__pyx_v_find_matching_end_ifdo, ((PyObject *)__pyx_t_7), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 802; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0;
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
goto __pyx_L10;
|
|
}
|
|
|
|
/* "preprocessed_text.py":803
|
|
* if type(line) == Do:
|
|
* find_matching_end_ifdo(i,'do')
|
|
* elif type(line) == If: # <<<<<<<<<<<<<<
|
|
* find_matching_end_ifdo(i,'if')
|
|
* elif type(line) in [Subroutine, Function, Program]:
|
|
*/
|
|
__pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__If); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 803; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_7 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_line)), __pyx_t_6, Py_EQ); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 803; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 803; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
if (__pyx_t_3) {
|
|
|
|
/* "preprocessed_text.py":804
|
|
* find_matching_end_ifdo(i,'do')
|
|
* elif type(line) == If:
|
|
* find_matching_end_ifdo(i,'if') # <<<<<<<<<<<<<<
|
|
* elif type(line) in [Subroutine, Function, Program]:
|
|
* level += 1
|
|
*/
|
|
__pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 804; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_7));
|
|
__Pyx_INCREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_v_i);
|
|
__Pyx_GIVEREF(__pyx_v_i);
|
|
__Pyx_INCREF(((PyObject *)__pyx_n_s__if));
|
|
PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_n_s__if));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_n_s__if));
|
|
__pyx_t_6 = PyObject_Call(__pyx_v_find_matching_end_ifdo, ((PyObject *)__pyx_t_7), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 804; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0;
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
goto __pyx_L10;
|
|
}
|
|
|
|
/* "preprocessed_text.py":805
|
|
* elif type(line) == If:
|
|
* find_matching_end_ifdo(i,'if')
|
|
* elif type(line) in [Subroutine, Function, Program]: # <<<<<<<<<<<<<<
|
|
* level += 1
|
|
* find_matching_end_subfunpro(i,End)
|
|
*/
|
|
__Pyx_INCREF(((PyObject *)Py_TYPE(__pyx_v_line)));
|
|
__pyx_t_6 = ((PyObject *)Py_TYPE(__pyx_v_line));
|
|
__pyx_t_7 = __Pyx_GetName(__pyx_m, __pyx_n_s__Subroutine); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 805; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__pyx_t_8 = PyObject_RichCompare(((PyObject *)__pyx_t_6), __pyx_t_7, Py_EQ); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 805; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_8);
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
__pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_8); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 805; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
if (!((int)__pyx_t_3)) {
|
|
__pyx_t_8 = __Pyx_GetName(__pyx_m, __pyx_n_s__Function); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 805; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_8);
|
|
__pyx_t_7 = PyObject_RichCompare(((PyObject *)__pyx_t_6), __pyx_t_8, Py_EQ); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 805; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
__pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely((__pyx_t_9 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 805; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
__pyx_t_10 = ((int)__pyx_t_9);
|
|
} else {
|
|
__pyx_t_10 = ((int)__pyx_t_3);
|
|
}
|
|
if (!__pyx_t_10) {
|
|
__pyx_t_7 = __Pyx_GetName(__pyx_m, __pyx_n_s__Program); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 805; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__pyx_t_8 = PyObject_RichCompare(((PyObject *)__pyx_t_6), __pyx_t_7, Py_EQ); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 805; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_8);
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
__pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_8); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 805; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
__pyx_t_9 = ((int)__pyx_t_3);
|
|
} else {
|
|
__pyx_t_9 = __pyx_t_10;
|
|
}
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__pyx_t_10 = __pyx_t_9;
|
|
if (__pyx_t_10) {
|
|
|
|
/* "preprocessed_text.py":806
|
|
* find_matching_end_ifdo(i,'if')
|
|
* elif type(line) in [Subroutine, Function, Program]:
|
|
* level += 1 # <<<<<<<<<<<<<<
|
|
* find_matching_end_subfunpro(i,End)
|
|
* elif type(line) == Begin_provider:
|
|
*/
|
|
__pyx_t_6 = PyNumber_InPlaceAdd(__pyx_v_level, __pyx_int_1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 806; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_v_level);
|
|
__pyx_v_level = __pyx_t_6;
|
|
__pyx_t_6 = 0;
|
|
|
|
/* "preprocessed_text.py":807
|
|
* elif type(line) in [Subroutine, Function, Program]:
|
|
* level += 1
|
|
* find_matching_end_subfunpro(i,End) # <<<<<<<<<<<<<<
|
|
* elif type(line) == Begin_provider:
|
|
* level += 1
|
|
*/
|
|
__pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__End); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 807; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 807; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_8));
|
|
__Pyx_INCREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_v_i);
|
|
__Pyx_GIVEREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_6);
|
|
__Pyx_GIVEREF(__pyx_t_6);
|
|
__pyx_t_6 = 0;
|
|
__pyx_t_6 = PyObject_Call(__pyx_v_find_matching_end_subfunpro, ((PyObject *)__pyx_t_8), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 807; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_8)); __pyx_t_8 = 0;
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
goto __pyx_L10;
|
|
}
|
|
|
|
/* "preprocessed_text.py":808
|
|
* level += 1
|
|
* find_matching_end_subfunpro(i,End)
|
|
* elif type(line) == Begin_provider: # <<<<<<<<<<<<<<
|
|
* level += 1
|
|
* find_matching_end_subfunpro(i,End_provider)
|
|
*/
|
|
__pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__Begin_provider); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 808; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_8 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_line)), __pyx_t_6, Py_EQ); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 808; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_8);
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__pyx_t_10 = __Pyx_PyObject_IsTrue(__pyx_t_8); if (unlikely(__pyx_t_10 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 808; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
if (__pyx_t_10) {
|
|
|
|
/* "preprocessed_text.py":809
|
|
* find_matching_end_subfunpro(i,End)
|
|
* elif type(line) == Begin_provider:
|
|
* level += 1 # <<<<<<<<<<<<<<
|
|
* find_matching_end_subfunpro(i,End_provider)
|
|
* elif type(line) == End:
|
|
*/
|
|
__pyx_t_8 = PyNumber_InPlaceAdd(__pyx_v_level, __pyx_int_1); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 809; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_8);
|
|
__Pyx_DECREF(__pyx_v_level);
|
|
__pyx_v_level = __pyx_t_8;
|
|
__pyx_t_8 = 0;
|
|
|
|
/* "preprocessed_text.py":810
|
|
* elif type(line) == Begin_provider:
|
|
* level += 1
|
|
* find_matching_end_subfunpro(i,End_provider) # <<<<<<<<<<<<<<
|
|
* elif type(line) == End:
|
|
* level -= 1
|
|
*/
|
|
__pyx_t_8 = __Pyx_GetName(__pyx_m, __pyx_n_s__End_provider); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 810; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_8);
|
|
__pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 810; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_6));
|
|
__Pyx_INCREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v_i);
|
|
__Pyx_GIVEREF(__pyx_v_i);
|
|
PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_8);
|
|
__Pyx_GIVEREF(__pyx_t_8);
|
|
__pyx_t_8 = 0;
|
|
__pyx_t_8 = PyObject_Call(__pyx_v_find_matching_end_subfunpro, ((PyObject *)__pyx_t_6), NULL); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 810; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_8);
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
|
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
goto __pyx_L10;
|
|
}
|
|
|
|
/* "preprocessed_text.py":811
|
|
* level += 1
|
|
* find_matching_end_subfunpro(i,End_provider)
|
|
* elif type(line) == End: # <<<<<<<<<<<<<<
|
|
* level -= 1
|
|
* elif type(line) == End_provider:
|
|
*/
|
|
__pyx_t_8 = __Pyx_GetName(__pyx_m, __pyx_n_s__End); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 811; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_8);
|
|
__pyx_t_6 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_line)), __pyx_t_8, Py_EQ); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 811; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
__pyx_t_10 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely(__pyx_t_10 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 811; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
if (__pyx_t_10) {
|
|
|
|
/* "preprocessed_text.py":812
|
|
* find_matching_end_subfunpro(i,End_provider)
|
|
* elif type(line) == End:
|
|
* level -= 1 # <<<<<<<<<<<<<<
|
|
* elif type(line) == End_provider:
|
|
* level -= 1
|
|
*/
|
|
__pyx_t_6 = PyNumber_InPlaceSubtract(__pyx_v_level, __pyx_int_1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 812; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_v_level);
|
|
__pyx_v_level = __pyx_t_6;
|
|
__pyx_t_6 = 0;
|
|
goto __pyx_L10;
|
|
}
|
|
|
|
/* "preprocessed_text.py":813
|
|
* elif type(line) == End:
|
|
* level -= 1
|
|
* elif type(line) == End_provider: # <<<<<<<<<<<<<<
|
|
* level -= 1
|
|
* if level < 0:
|
|
*/
|
|
__pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__End_provider); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 813; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_8 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_line)), __pyx_t_6, Py_EQ); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 813; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_8);
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__pyx_t_10 = __Pyx_PyObject_IsTrue(__pyx_t_8); if (unlikely(__pyx_t_10 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 813; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
if (__pyx_t_10) {
|
|
|
|
/* "preprocessed_text.py":814
|
|
* level -= 1
|
|
* elif type(line) == End_provider:
|
|
* level -= 1 # <<<<<<<<<<<<<<
|
|
* if level < 0:
|
|
* error.fail(line,"Beginning of block not matched")
|
|
*/
|
|
__pyx_t_8 = PyNumber_InPlaceSubtract(__pyx_v_level, __pyx_int_1); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 814; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_8);
|
|
__Pyx_DECREF(__pyx_v_level);
|
|
__pyx_v_level = __pyx_t_8;
|
|
__pyx_t_8 = 0;
|
|
goto __pyx_L10;
|
|
}
|
|
__pyx_L10:;
|
|
|
|
/* "preprocessed_text.py":815
|
|
* elif type(line) == End_provider:
|
|
* level -= 1
|
|
* if level < 0: # <<<<<<<<<<<<<<
|
|
* error.fail(line,"Beginning of block not matched")
|
|
*
|
|
*/
|
|
__pyx_t_8 = PyObject_RichCompare(__pyx_v_level, __pyx_int_0, Py_LT); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 815; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_8);
|
|
__pyx_t_10 = __Pyx_PyObject_IsTrue(__pyx_t_8); if (unlikely(__pyx_t_10 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 815; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
if (__pyx_t_10) {
|
|
|
|
/* "preprocessed_text.py":816
|
|
* level -= 1
|
|
* if level < 0:
|
|
* error.fail(line,"Beginning of block not matched") # <<<<<<<<<<<<<<
|
|
*
|
|
* return True
|
|
*/
|
|
__pyx_t_8 = __Pyx_GetName(__pyx_m, __pyx_n_s__error); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 816; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_8);
|
|
__pyx_t_6 = PyObject_GetAttr(__pyx_t_8, __pyx_n_s__fail); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 816; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
__pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 816; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_8));
|
|
__Pyx_INCREF(__pyx_v_line);
|
|
PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_v_line);
|
|
__Pyx_GIVEREF(__pyx_v_line);
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_140));
|
|
PyTuple_SET_ITEM(__pyx_t_8, 1, ((PyObject *)__pyx_kp_s_140));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_140));
|
|
__pyx_t_7 = PyObject_Call(__pyx_t_6, ((PyObject *)__pyx_t_8), NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 816; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_8)); __pyx_t_8 = 0;
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
goto __pyx_L11;
|
|
}
|
|
__pyx_L11:;
|
|
}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":818
|
|
* error.fail(line,"Beginning of block not matched")
|
|
*
|
|
* return True # <<<<<<<<<<<<<<
|
|
*
|
|
* ######################################################################
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__pyx_t_2 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 818; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_r = __pyx_t_2;
|
|
__pyx_t_2 = 0;
|
|
goto __pyx_L0;
|
|
|
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
|
goto __pyx_L0;
|
|
__pyx_L1_error:;
|
|
__Pyx_XDECREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_t_2);
|
|
__Pyx_XDECREF(__pyx_t_6);
|
|
__Pyx_XDECREF(__pyx_t_7);
|
|
__Pyx_XDECREF(__pyx_t_8);
|
|
__Pyx_AddTraceback("preprocessed_text.check_begin_end", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__pyx_r = NULL;
|
|
__pyx_L0:;
|
|
__Pyx_XDECREF(__pyx_v_filter_line);
|
|
__Pyx_XDECREF(__pyx_v_find_matching_end_ifdo);
|
|
__Pyx_XDECREF(__pyx_v_find_matching_end_subfunpro);
|
|
__Pyx_XDECREF(__pyx_v_level);
|
|
__Pyx_XDECREF(__pyx_v_i);
|
|
__Pyx_XDECREF(__pyx_v_line);
|
|
__Pyx_DECREF(((PyObject *)__pyx_cur_scope));
|
|
__Pyx_XGIVEREF(__pyx_r);
|
|
__Pyx_RefNannyFinishContext();
|
|
return __pyx_r;
|
|
}
|
|
|
|
/* "preprocessed_text.py":821
|
|
*
|
|
* ######################################################################
|
|
* def remove_ifdefs(text): # <<<<<<<<<<<<<<
|
|
* assert type(text) == list
|
|
* result = []
|
|
*/
|
|
|
|
static PyObject *__pyx_pf_17preprocessed_text_13remove_ifdefs(PyObject *__pyx_self, PyObject *__pyx_v_text); /*proto*/
|
|
static PyMethodDef __pyx_mdef_17preprocessed_text_13remove_ifdefs = {__Pyx_NAMESTR("remove_ifdefs"), (PyCFunction)__pyx_pf_17preprocessed_text_13remove_ifdefs, METH_O, __Pyx_DOCSTR(0)};
|
|
static PyObject *__pyx_pf_17preprocessed_text_13remove_ifdefs(PyObject *__pyx_self, PyObject *__pyx_v_text) {
|
|
PyObject *__pyx_v_result = NULL;
|
|
PyObject *__pyx_v_do_print = NULL;
|
|
PyObject *__pyx_v_line = NULL;
|
|
PyObject *__pyx_v_var = NULL;
|
|
PyObject *__pyx_r = NULL;
|
|
__Pyx_RefNannyDeclarations
|
|
PyObject *__pyx_t_1 = NULL;
|
|
int __pyx_t_2;
|
|
Py_ssize_t __pyx_t_3;
|
|
PyObject *(*__pyx_t_4)(PyObject *);
|
|
PyObject *__pyx_t_5 = NULL;
|
|
PyObject *__pyx_t_6 = NULL;
|
|
int __pyx_t_7;
|
|
int __pyx_lineno = 0;
|
|
const char *__pyx_filename = NULL;
|
|
int __pyx_clineno = 0;
|
|
__Pyx_RefNannySetupContext("remove_ifdefs");
|
|
__pyx_self = __pyx_self;
|
|
|
|
/* "preprocessed_text.py":822
|
|
* ######################################################################
|
|
* def remove_ifdefs(text):
|
|
* assert type(text) == list # <<<<<<<<<<<<<<
|
|
* result = []
|
|
* do_print = True
|
|
*/
|
|
#ifndef CYTHON_WITHOUT_ASSERTIONS
|
|
__pyx_t_1 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_text)), ((PyObject *)((PyObject*)(&PyList_Type))), Py_EQ); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 822; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 822; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
if (unlikely(!__pyx_t_2)) {
|
|
PyErr_SetNone(PyExc_AssertionError);
|
|
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 822; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
#endif
|
|
|
|
/* "preprocessed_text.py":823
|
|
* def remove_ifdefs(text):
|
|
* assert type(text) == list
|
|
* result = [] # <<<<<<<<<<<<<<
|
|
* do_print = True
|
|
* for line in text:
|
|
*/
|
|
__pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 823; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__pyx_v_result = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":824
|
|
* assert type(text) == list
|
|
* result = []
|
|
* do_print = True # <<<<<<<<<<<<<<
|
|
* for line in text:
|
|
* if type(line) == Irp_If:
|
|
*/
|
|
__pyx_t_1 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 824; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_v_do_print = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":825
|
|
* result = []
|
|
* do_print = True
|
|
* for line in text: # <<<<<<<<<<<<<<
|
|
* if type(line) == Irp_If:
|
|
* var = line.text.split()[1]
|
|
*/
|
|
if (PyList_CheckExact(__pyx_v_text) || PyTuple_CheckExact(__pyx_v_text)) {
|
|
__pyx_t_1 = __pyx_v_text; __Pyx_INCREF(__pyx_t_1); __pyx_t_3 = 0;
|
|
__pyx_t_4 = NULL;
|
|
} else {
|
|
__pyx_t_3 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 825; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_4 = Py_TYPE(__pyx_t_1)->tp_iternext;
|
|
}
|
|
for (;;) {
|
|
if (PyList_CheckExact(__pyx_t_1)) {
|
|
if (__pyx_t_3 >= PyList_GET_SIZE(__pyx_t_1)) break;
|
|
__pyx_t_5 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_3); __Pyx_INCREF(__pyx_t_5); __pyx_t_3++;
|
|
} else if (PyTuple_CheckExact(__pyx_t_1)) {
|
|
if (__pyx_t_3 >= PyTuple_GET_SIZE(__pyx_t_1)) break;
|
|
__pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_3); __Pyx_INCREF(__pyx_t_5); __pyx_t_3++;
|
|
} else {
|
|
__pyx_t_5 = __pyx_t_4(__pyx_t_1);
|
|
if (unlikely(!__pyx_t_5)) {
|
|
if (PyErr_Occurred()) {
|
|
if (likely(PyErr_ExceptionMatches(PyExc_StopIteration))) PyErr_Clear();
|
|
else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 825; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
break;
|
|
}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
}
|
|
__Pyx_XDECREF(__pyx_v_line);
|
|
__pyx_v_line = __pyx_t_5;
|
|
__pyx_t_5 = 0;
|
|
|
|
/* "preprocessed_text.py":826
|
|
* do_print = True
|
|
* for line in text:
|
|
* if type(line) == Irp_If: # <<<<<<<<<<<<<<
|
|
* var = line.text.split()[1]
|
|
* do_print = var in command_line.defined
|
|
*/
|
|
__pyx_t_5 = __Pyx_GetName(__pyx_m, __pyx_n_s__Irp_If); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 826; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__pyx_t_6 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_line)), __pyx_t_5, Py_EQ); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 826; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
__pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 826; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
if (__pyx_t_2) {
|
|
|
|
/* "preprocessed_text.py":827
|
|
* for line in text:
|
|
* if type(line) == Irp_If:
|
|
* var = line.text.split()[1] # <<<<<<<<<<<<<<
|
|
* do_print = var in command_line.defined
|
|
* elif type(line) == Irp_Else:
|
|
*/
|
|
__pyx_t_6 = PyObject_GetAttr(__pyx_v_line, __pyx_n_s__text); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 827; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_5 = PyObject_GetAttr(__pyx_t_6, __pyx_n_s__split); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 827; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__pyx_t_6 = PyObject_Call(__pyx_t_5, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 827; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
__pyx_t_5 = __Pyx_GetItemInt(__pyx_t_6, 1, sizeof(long), PyInt_FromLong); if (!__pyx_t_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 827; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__Pyx_XDECREF(__pyx_v_var);
|
|
__pyx_v_var = __pyx_t_5;
|
|
__pyx_t_5 = 0;
|
|
|
|
/* "preprocessed_text.py":828
|
|
* if type(line) == Irp_If:
|
|
* var = line.text.split()[1]
|
|
* do_print = var in command_line.defined # <<<<<<<<<<<<<<
|
|
* elif type(line) == Irp_Else:
|
|
* do_print = not do_print
|
|
*/
|
|
__pyx_t_5 = __Pyx_GetName(__pyx_m, __pyx_n_s__command_line); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 828; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__pyx_t_6 = PyObject_GetAttr(__pyx_t_5, __pyx_n_s__defined); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 828; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
__pyx_t_2 = ((PySequence_Contains(__pyx_t_6, __pyx_v_var))); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 828; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__pyx_t_6 = __Pyx_PyBool_FromLong(__pyx_t_2); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 828; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_v_do_print);
|
|
__pyx_v_do_print = __pyx_t_6;
|
|
__pyx_t_6 = 0;
|
|
goto __pyx_L7;
|
|
}
|
|
|
|
/* "preprocessed_text.py":829
|
|
* var = line.text.split()[1]
|
|
* do_print = var in command_line.defined
|
|
* elif type(line) == Irp_Else: # <<<<<<<<<<<<<<
|
|
* do_print = not do_print
|
|
* elif type(line) == Irp_Endif:
|
|
*/
|
|
__pyx_t_6 = __Pyx_GetName(__pyx_m, __pyx_n_s__Irp_Else); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 829; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_5 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_line)), __pyx_t_6, Py_EQ); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 829; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
__pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 829; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
if (__pyx_t_2) {
|
|
|
|
/* "preprocessed_text.py":830
|
|
* do_print = var in command_line.defined
|
|
* elif type(line) == Irp_Else:
|
|
* do_print = not do_print # <<<<<<<<<<<<<<
|
|
* elif type(line) == Irp_Endif:
|
|
* do_print = True
|
|
*/
|
|
__pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_do_print); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 830; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__pyx_t_5 = __Pyx_PyBool_FromLong((!__pyx_t_2)); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 830; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__Pyx_DECREF(__pyx_v_do_print);
|
|
__pyx_v_do_print = __pyx_t_5;
|
|
__pyx_t_5 = 0;
|
|
goto __pyx_L7;
|
|
}
|
|
|
|
/* "preprocessed_text.py":831
|
|
* elif type(line) == Irp_Else:
|
|
* do_print = not do_print
|
|
* elif type(line) == Irp_Endif: # <<<<<<<<<<<<<<
|
|
* do_print = True
|
|
* else:
|
|
*/
|
|
__pyx_t_5 = __Pyx_GetName(__pyx_m, __pyx_n_s__Irp_Endif); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 831; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__pyx_t_6 = PyObject_RichCompare(((PyObject *)Py_TYPE(__pyx_v_line)), __pyx_t_5, Py_EQ); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 831; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
__pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 831; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
if (__pyx_t_2) {
|
|
|
|
/* "preprocessed_text.py":832
|
|
* do_print = not do_print
|
|
* elif type(line) == Irp_Endif:
|
|
* do_print = True # <<<<<<<<<<<<<<
|
|
* else:
|
|
* if do_print:
|
|
*/
|
|
__pyx_t_6 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 832; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_v_do_print);
|
|
__pyx_v_do_print = __pyx_t_6;
|
|
__pyx_t_6 = 0;
|
|
goto __pyx_L7;
|
|
}
|
|
/*else*/ {
|
|
|
|
/* "preprocessed_text.py":834
|
|
* do_print = True
|
|
* else:
|
|
* if do_print: # <<<<<<<<<<<<<<
|
|
* result.append(line)
|
|
* return result
|
|
*/
|
|
__pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_do_print); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 834; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
if (__pyx_t_2) {
|
|
|
|
/* "preprocessed_text.py":835
|
|
* else:
|
|
* if do_print:
|
|
* result.append(line) # <<<<<<<<<<<<<<
|
|
* return result
|
|
*
|
|
*/
|
|
if (unlikely(((PyObject *)__pyx_v_result) == Py_None)) {
|
|
PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%s'", "append"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 835; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
__pyx_t_7 = PyList_Append(__pyx_v_result, __pyx_v_line); if (unlikely(__pyx_t_7 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 835; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
goto __pyx_L8;
|
|
}
|
|
__pyx_L8:;
|
|
}
|
|
__pyx_L7:;
|
|
}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":836
|
|
* if do_print:
|
|
* result.append(line)
|
|
* return result # <<<<<<<<<<<<<<
|
|
*
|
|
* ######################################################################
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__Pyx_INCREF(((PyObject *)__pyx_v_result));
|
|
__pyx_r = ((PyObject *)__pyx_v_result);
|
|
goto __pyx_L0;
|
|
|
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
|
goto __pyx_L0;
|
|
__pyx_L1_error:;
|
|
__Pyx_XDECREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_t_5);
|
|
__Pyx_XDECREF(__pyx_t_6);
|
|
__Pyx_AddTraceback("preprocessed_text.remove_ifdefs", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__pyx_r = NULL;
|
|
__pyx_L0:;
|
|
__Pyx_XDECREF(__pyx_v_result);
|
|
__Pyx_XDECREF(__pyx_v_do_print);
|
|
__Pyx_XDECREF(__pyx_v_line);
|
|
__Pyx_XDECREF(__pyx_v_var);
|
|
__Pyx_XGIVEREF(__pyx_r);
|
|
__Pyx_RefNannyFinishContext();
|
|
return __pyx_r;
|
|
}
|
|
|
|
/* "preprocessed_text.py":839
|
|
*
|
|
* ######################################################################
|
|
* def create_preprocessed_text(filename): # <<<<<<<<<<<<<<
|
|
* file = open(filename,"r")
|
|
* lines = file.readlines()
|
|
*/
|
|
|
|
static PyObject *__pyx_pf_17preprocessed_text_14create_preprocessed_text(PyObject *__pyx_self, PyObject *__pyx_v_filename); /*proto*/
|
|
static PyMethodDef __pyx_mdef_17preprocessed_text_14create_preprocessed_text = {__Pyx_NAMESTR("create_preprocessed_text"), (PyCFunction)__pyx_pf_17preprocessed_text_14create_preprocessed_text, METH_O, __Pyx_DOCSTR(0)};
|
|
static PyObject *__pyx_pf_17preprocessed_text_14create_preprocessed_text(PyObject *__pyx_self, PyObject *__pyx_v_filename) {
|
|
PyObject *__pyx_v_file = NULL;
|
|
PyObject *__pyx_v_lines = NULL;
|
|
PyObject *__pyx_v_result = NULL;
|
|
PyObject *__pyx_v_fortran_form = NULL;
|
|
PyObject *__pyx_r = NULL;
|
|
__Pyx_RefNannyDeclarations
|
|
PyObject *__pyx_t_1 = NULL;
|
|
PyObject *__pyx_t_2 = NULL;
|
|
PyObject *__pyx_t_3 = NULL;
|
|
int __pyx_lineno = 0;
|
|
const char *__pyx_filename = NULL;
|
|
int __pyx_clineno = 0;
|
|
__Pyx_RefNannySetupContext("create_preprocessed_text");
|
|
__pyx_self = __pyx_self;
|
|
|
|
/* "preprocessed_text.py":840
|
|
* ######################################################################
|
|
* def create_preprocessed_text(filename):
|
|
* file = open(filename,"r") # <<<<<<<<<<<<<<
|
|
* lines = file.readlines()
|
|
* file.close()
|
|
*/
|
|
__pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 840; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(__pyx_v_filename);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_filename);
|
|
__Pyx_GIVEREF(__pyx_v_filename);
|
|
__Pyx_INCREF(((PyObject *)__pyx_n_s__r));
|
|
PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_n_s__r));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_n_s__r));
|
|
__pyx_t_2 = PyObject_Call(__pyx_builtin_open, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 840; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
__pyx_v_file = __pyx_t_2;
|
|
__pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":841
|
|
* def create_preprocessed_text(filename):
|
|
* file = open(filename,"r")
|
|
* lines = file.readlines() # <<<<<<<<<<<<<<
|
|
* file.close()
|
|
* result = get_text(lines,filename)
|
|
*/
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_v_file, __pyx_n_s__readlines); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 841; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_1 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 841; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__pyx_v_lines = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":842
|
|
* file = open(filename,"r")
|
|
* lines = file.readlines()
|
|
* file.close() # <<<<<<<<<<<<<<
|
|
* result = get_text(lines,filename)
|
|
* result = execute_templates(result)
|
|
*/
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_v_file, __pyx_n_s__close); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 842; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 842; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":843
|
|
* lines = file.readlines()
|
|
* file.close()
|
|
* result = get_text(lines,filename) # <<<<<<<<<<<<<<
|
|
* result = execute_templates(result)
|
|
* result = execute_shell(result)
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__get_text); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 843; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 843; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(__pyx_v_lines);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_lines);
|
|
__Pyx_GIVEREF(__pyx_v_lines);
|
|
__Pyx_INCREF(__pyx_v_filename);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_filename);
|
|
__Pyx_GIVEREF(__pyx_v_filename);
|
|
__pyx_t_3 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 843; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
__pyx_v_result = __pyx_t_3;
|
|
__pyx_t_3 = 0;
|
|
|
|
/* "preprocessed_text.py":844
|
|
* file.close()
|
|
* result = get_text(lines,filename)
|
|
* result = execute_templates(result) # <<<<<<<<<<<<<<
|
|
* result = execute_shell(result)
|
|
* fortran_form = form(result)
|
|
*/
|
|
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__execute_templates); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 844; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 844; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(__pyx_v_result);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_result);
|
|
__Pyx_GIVEREF(__pyx_v_result);
|
|
__pyx_t_2 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 844; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(__pyx_v_result);
|
|
__pyx_v_result = __pyx_t_2;
|
|
__pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":845
|
|
* result = get_text(lines,filename)
|
|
* result = execute_templates(result)
|
|
* result = execute_shell(result) # <<<<<<<<<<<<<<
|
|
* fortran_form = form(result)
|
|
* result = remove_ifdefs(result)
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__execute_shell); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 845; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 845; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(__pyx_v_result);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_result);
|
|
__Pyx_GIVEREF(__pyx_v_result);
|
|
__pyx_t_3 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 845; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(__pyx_v_result);
|
|
__pyx_v_result = __pyx_t_3;
|
|
__pyx_t_3 = 0;
|
|
|
|
/* "preprocessed_text.py":846
|
|
* result = execute_templates(result)
|
|
* result = execute_shell(result)
|
|
* fortran_form = form(result) # <<<<<<<<<<<<<<
|
|
* result = remove_ifdefs(result)
|
|
* result = remove_comments(result,fortran_form)
|
|
*/
|
|
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__form); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 846; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 846; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(__pyx_v_result);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_result);
|
|
__Pyx_GIVEREF(__pyx_v_result);
|
|
__pyx_t_2 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 846; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
__pyx_v_fortran_form = __pyx_t_2;
|
|
__pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":847
|
|
* result = execute_shell(result)
|
|
* fortran_form = form(result)
|
|
* result = remove_ifdefs(result) # <<<<<<<<<<<<<<
|
|
* result = remove_comments(result,fortran_form)
|
|
* result = remove_continuation(result,fortran_form)
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__remove_ifdefs); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 847; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 847; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(__pyx_v_result);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_result);
|
|
__Pyx_GIVEREF(__pyx_v_result);
|
|
__pyx_t_3 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 847; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(__pyx_v_result);
|
|
__pyx_v_result = __pyx_t_3;
|
|
__pyx_t_3 = 0;
|
|
|
|
/* "preprocessed_text.py":848
|
|
* fortran_form = form(result)
|
|
* result = remove_ifdefs(result)
|
|
* result = remove_comments(result,fortran_form) # <<<<<<<<<<<<<<
|
|
* result = remove_continuation(result,fortran_form)
|
|
* result = add_operators(result)
|
|
*/
|
|
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__remove_comments); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 848; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 848; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(__pyx_v_result);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_result);
|
|
__Pyx_GIVEREF(__pyx_v_result);
|
|
__Pyx_INCREF(__pyx_v_fortran_form);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_fortran_form);
|
|
__Pyx_GIVEREF(__pyx_v_fortran_form);
|
|
__pyx_t_2 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 848; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(__pyx_v_result);
|
|
__pyx_v_result = __pyx_t_2;
|
|
__pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":849
|
|
* result = remove_ifdefs(result)
|
|
* result = remove_comments(result,fortran_form)
|
|
* result = remove_continuation(result,fortran_form) # <<<<<<<<<<<<<<
|
|
* result = add_operators(result)
|
|
* result = change_includes(result)
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__remove_continuation); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 849; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 849; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(__pyx_v_result);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_result);
|
|
__Pyx_GIVEREF(__pyx_v_result);
|
|
__Pyx_INCREF(__pyx_v_fortran_form);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_fortran_form);
|
|
__Pyx_GIVEREF(__pyx_v_fortran_form);
|
|
__pyx_t_3 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 849; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(__pyx_v_result);
|
|
__pyx_v_result = __pyx_t_3;
|
|
__pyx_t_3 = 0;
|
|
|
|
/* "preprocessed_text.py":850
|
|
* result = remove_comments(result,fortran_form)
|
|
* result = remove_continuation(result,fortran_form)
|
|
* result = add_operators(result) # <<<<<<<<<<<<<<
|
|
* result = change_includes(result)
|
|
* result = change_single_line_ifs(result)
|
|
*/
|
|
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__add_operators); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 850; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 850; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(__pyx_v_result);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_result);
|
|
__Pyx_GIVEREF(__pyx_v_result);
|
|
__pyx_t_2 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 850; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(__pyx_v_result);
|
|
__pyx_v_result = __pyx_t_2;
|
|
__pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":851
|
|
* result = remove_continuation(result,fortran_form)
|
|
* result = add_operators(result)
|
|
* result = change_includes(result) # <<<<<<<<<<<<<<
|
|
* result = change_single_line_ifs(result)
|
|
* result = process_old_style_do(result)
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__change_includes); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 851; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 851; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(__pyx_v_result);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_result);
|
|
__Pyx_GIVEREF(__pyx_v_result);
|
|
__pyx_t_3 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 851; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(__pyx_v_result);
|
|
__pyx_v_result = __pyx_t_3;
|
|
__pyx_t_3 = 0;
|
|
|
|
/* "preprocessed_text.py":852
|
|
* result = add_operators(result)
|
|
* result = change_includes(result)
|
|
* result = change_single_line_ifs(result) # <<<<<<<<<<<<<<
|
|
* result = process_old_style_do(result)
|
|
* result = irp_simple_statements(result)
|
|
*/
|
|
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s_141); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 852; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 852; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(__pyx_v_result);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_result);
|
|
__Pyx_GIVEREF(__pyx_v_result);
|
|
__pyx_t_2 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 852; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(__pyx_v_result);
|
|
__pyx_v_result = __pyx_t_2;
|
|
__pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":853
|
|
* result = change_includes(result)
|
|
* result = change_single_line_ifs(result)
|
|
* result = process_old_style_do(result) # <<<<<<<<<<<<<<
|
|
* result = irp_simple_statements(result)
|
|
* check_begin_end(result)
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s_142); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 853; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 853; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(__pyx_v_result);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_result);
|
|
__Pyx_GIVEREF(__pyx_v_result);
|
|
__pyx_t_3 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 853; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(__pyx_v_result);
|
|
__pyx_v_result = __pyx_t_3;
|
|
__pyx_t_3 = 0;
|
|
|
|
/* "preprocessed_text.py":854
|
|
* result = change_single_line_ifs(result)
|
|
* result = process_old_style_do(result)
|
|
* result = irp_simple_statements(result) # <<<<<<<<<<<<<<
|
|
* check_begin_end(result)
|
|
* return result
|
|
*/
|
|
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s_143); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 854; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 854; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(__pyx_v_result);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_result);
|
|
__Pyx_GIVEREF(__pyx_v_result);
|
|
__pyx_t_2 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 854; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(__pyx_v_result);
|
|
__pyx_v_result = __pyx_t_2;
|
|
__pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":855
|
|
* result = process_old_style_do(result)
|
|
* result = irp_simple_statements(result)
|
|
* check_begin_end(result) # <<<<<<<<<<<<<<
|
|
* return result
|
|
*
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__check_begin_end); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 855; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 855; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(__pyx_v_result);
|
|
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_result);
|
|
__Pyx_GIVEREF(__pyx_v_result);
|
|
__pyx_t_3 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 855; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
|
|
/* "preprocessed_text.py":856
|
|
* result = irp_simple_statements(result)
|
|
* check_begin_end(result)
|
|
* return result # <<<<<<<<<<<<<<
|
|
*
|
|
* ######################################################################
|
|
*/
|
|
__Pyx_XDECREF(__pyx_r);
|
|
__Pyx_INCREF(__pyx_v_result);
|
|
__pyx_r = __pyx_v_result;
|
|
goto __pyx_L0;
|
|
|
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
|
goto __pyx_L0;
|
|
__pyx_L1_error:;
|
|
__Pyx_XDECREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_t_2);
|
|
__Pyx_XDECREF(__pyx_t_3);
|
|
__Pyx_AddTraceback("preprocessed_text.create_preprocessed_text", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__pyx_r = NULL;
|
|
__pyx_L0:;
|
|
__Pyx_XDECREF(__pyx_v_file);
|
|
__Pyx_XDECREF(__pyx_v_lines);
|
|
__Pyx_XDECREF(__pyx_v_result);
|
|
__Pyx_XDECREF(__pyx_v_fortran_form);
|
|
__Pyx_XGIVEREF(__pyx_r);
|
|
__Pyx_RefNannyFinishContext();
|
|
return __pyx_r;
|
|
}
|
|
|
|
/* "preprocessed_text.py":863
|
|
*
|
|
* ######################################################################
|
|
* def debug(): # <<<<<<<<<<<<<<
|
|
* for filename, txt in preprocessed_text:
|
|
* if filename == 'invert.irp.f':
|
|
*/
|
|
|
|
static PyObject *__pyx_pf_17preprocessed_text_15debug(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
|
|
static PyMethodDef __pyx_mdef_17preprocessed_text_15debug = {__Pyx_NAMESTR("debug"), (PyCFunction)__pyx_pf_17preprocessed_text_15debug, METH_NOARGS, __Pyx_DOCSTR(0)};
|
|
static PyObject *__pyx_pf_17preprocessed_text_15debug(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
|
|
PyObject *__pyx_v_filename = NULL;
|
|
PyObject *__pyx_v_txt = NULL;
|
|
PyObject *__pyx_v_line = NULL;
|
|
PyObject *__pyx_r = NULL;
|
|
__Pyx_RefNannyDeclarations
|
|
PyObject *__pyx_t_1 = NULL;
|
|
PyObject *__pyx_t_2 = NULL;
|
|
Py_ssize_t __pyx_t_3;
|
|
PyObject *(*__pyx_t_4)(PyObject *);
|
|
PyObject *__pyx_t_5 = NULL;
|
|
PyObject *__pyx_t_6 = NULL;
|
|
PyObject *__pyx_t_7 = NULL;
|
|
PyObject *(*__pyx_t_8)(PyObject *);
|
|
int __pyx_t_9;
|
|
Py_ssize_t __pyx_t_10;
|
|
PyObject *(*__pyx_t_11)(PyObject *);
|
|
int __pyx_lineno = 0;
|
|
const char *__pyx_filename = NULL;
|
|
int __pyx_clineno = 0;
|
|
__Pyx_RefNannySetupContext("debug");
|
|
__pyx_self = __pyx_self;
|
|
|
|
/* "preprocessed_text.py":864
|
|
* ######################################################################
|
|
* def debug():
|
|
* for filename, txt in preprocessed_text: # <<<<<<<<<<<<<<
|
|
* if filename == 'invert.irp.f':
|
|
* print "=== "+filename+" ==="
|
|
*/
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__preprocessed_text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 864; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
if (PyList_CheckExact(__pyx_t_1) || PyTuple_CheckExact(__pyx_t_1)) {
|
|
__pyx_t_2 = __pyx_t_1; __Pyx_INCREF(__pyx_t_2); __pyx_t_3 = 0;
|
|
__pyx_t_4 = NULL;
|
|
} else {
|
|
__pyx_t_3 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 864; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__pyx_t_4 = Py_TYPE(__pyx_t_2)->tp_iternext;
|
|
}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
for (;;) {
|
|
if (PyList_CheckExact(__pyx_t_2)) {
|
|
if (__pyx_t_3 >= PyList_GET_SIZE(__pyx_t_2)) break;
|
|
__pyx_t_1 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_1); __pyx_t_3++;
|
|
} else if (PyTuple_CheckExact(__pyx_t_2)) {
|
|
if (__pyx_t_3 >= PyTuple_GET_SIZE(__pyx_t_2)) break;
|
|
__pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_1); __pyx_t_3++;
|
|
} else {
|
|
__pyx_t_1 = __pyx_t_4(__pyx_t_2);
|
|
if (unlikely(!__pyx_t_1)) {
|
|
if (PyErr_Occurred()) {
|
|
if (likely(PyErr_ExceptionMatches(PyExc_StopIteration))) PyErr_Clear();
|
|
else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 864; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
break;
|
|
}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
}
|
|
if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) {
|
|
PyObject* sequence = __pyx_t_1;
|
|
if (likely(PyTuple_CheckExact(sequence))) {
|
|
if (unlikely(PyTuple_GET_SIZE(sequence) != 2)) {
|
|
if (PyTuple_GET_SIZE(sequence) > 2) __Pyx_RaiseTooManyValuesError(2);
|
|
else __Pyx_RaiseNeedMoreValuesError(PyTuple_GET_SIZE(sequence));
|
|
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 864; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
__pyx_t_5 = PyTuple_GET_ITEM(sequence, 0);
|
|
__pyx_t_6 = PyTuple_GET_ITEM(sequence, 1);
|
|
} else {
|
|
if (unlikely(PyList_GET_SIZE(sequence) != 2)) {
|
|
if (PyList_GET_SIZE(sequence) > 2) __Pyx_RaiseTooManyValuesError(2);
|
|
else __Pyx_RaiseNeedMoreValuesError(PyList_GET_SIZE(sequence));
|
|
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 864; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
__pyx_t_5 = PyList_GET_ITEM(sequence, 0);
|
|
__pyx_t_6 = PyList_GET_ITEM(sequence, 1);
|
|
}
|
|
__Pyx_INCREF(__pyx_t_5);
|
|
__Pyx_INCREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
} else {
|
|
Py_ssize_t index = -1;
|
|
__pyx_t_7 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 864; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_7);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_8 = Py_TYPE(__pyx_t_7)->tp_iternext;
|
|
index = 0; __pyx_t_5 = __pyx_t_8(__pyx_t_7); if (unlikely(!__pyx_t_5)) goto __pyx_L7_unpacking_failed;
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
index = 1; __pyx_t_6 = __pyx_t_8(__pyx_t_7); if (unlikely(!__pyx_t_6)) goto __pyx_L7_unpacking_failed;
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
if (__Pyx_IternextUnpackEndCheck(__pyx_t_8(__pyx_t_7), 2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 864; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
goto __pyx_L8_unpacking_done;
|
|
__pyx_L7_unpacking_failed:;
|
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
if (PyErr_Occurred() && PyErr_ExceptionMatches(PyExc_StopIteration)) PyErr_Clear();
|
|
if (!PyErr_Occurred()) __Pyx_RaiseNeedMoreValuesError(index);
|
|
{__pyx_filename = __pyx_f[0]; __pyx_lineno = 864; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__pyx_L8_unpacking_done:;
|
|
}
|
|
__Pyx_XDECREF(__pyx_v_filename);
|
|
__pyx_v_filename = __pyx_t_5;
|
|
__pyx_t_5 = 0;
|
|
__Pyx_XDECREF(__pyx_v_txt);
|
|
__pyx_v_txt = __pyx_t_6;
|
|
__pyx_t_6 = 0;
|
|
|
|
/* "preprocessed_text.py":865
|
|
* def debug():
|
|
* for filename, txt in preprocessed_text:
|
|
* if filename == 'invert.irp.f': # <<<<<<<<<<<<<<
|
|
* print "=== "+filename+" ==="
|
|
* for line in txt:
|
|
*/
|
|
__pyx_t_9 = __Pyx_PyString_Equals(__pyx_v_filename, ((PyObject *)__pyx_kp_s_144), Py_EQ); if (unlikely(__pyx_t_9 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 865; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
if (__pyx_t_9) {
|
|
|
|
/* "preprocessed_text.py":866
|
|
* for filename, txt in preprocessed_text:
|
|
* if filename == 'invert.irp.f':
|
|
* print "=== "+filename+" ===" # <<<<<<<<<<<<<<
|
|
* for line in txt:
|
|
* print line
|
|
*/
|
|
__pyx_t_1 = PyNumber_Add(((PyObject *)__pyx_kp_s_145), __pyx_v_filename); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 866; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_6 = PyNumber_Add(__pyx_t_1, ((PyObject *)__pyx_kp_s_146)); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 866; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
if (__Pyx_PrintOne(0, __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 866; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
|
|
/* "preprocessed_text.py":867
|
|
* if filename == 'invert.irp.f':
|
|
* print "=== "+filename+" ==="
|
|
* for line in txt: # <<<<<<<<<<<<<<
|
|
* print line
|
|
* print irpf90_files
|
|
*/
|
|
if (PyList_CheckExact(__pyx_v_txt) || PyTuple_CheckExact(__pyx_v_txt)) {
|
|
__pyx_t_6 = __pyx_v_txt; __Pyx_INCREF(__pyx_t_6); __pyx_t_10 = 0;
|
|
__pyx_t_11 = NULL;
|
|
} else {
|
|
__pyx_t_10 = -1; __pyx_t_6 = PyObject_GetIter(__pyx_v_txt); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 867; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_6);
|
|
__pyx_t_11 = Py_TYPE(__pyx_t_6)->tp_iternext;
|
|
}
|
|
for (;;) {
|
|
if (PyList_CheckExact(__pyx_t_6)) {
|
|
if (__pyx_t_10 >= PyList_GET_SIZE(__pyx_t_6)) break;
|
|
__pyx_t_1 = PyList_GET_ITEM(__pyx_t_6, __pyx_t_10); __Pyx_INCREF(__pyx_t_1); __pyx_t_10++;
|
|
} else if (PyTuple_CheckExact(__pyx_t_6)) {
|
|
if (__pyx_t_10 >= PyTuple_GET_SIZE(__pyx_t_6)) break;
|
|
__pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_6, __pyx_t_10); __Pyx_INCREF(__pyx_t_1); __pyx_t_10++;
|
|
} else {
|
|
__pyx_t_1 = __pyx_t_11(__pyx_t_6);
|
|
if (unlikely(!__pyx_t_1)) {
|
|
if (PyErr_Occurred()) {
|
|
if (likely(PyErr_ExceptionMatches(PyExc_StopIteration))) PyErr_Clear();
|
|
else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 867; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
break;
|
|
}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
}
|
|
__Pyx_XDECREF(__pyx_v_line);
|
|
__pyx_v_line = __pyx_t_1;
|
|
__pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":868
|
|
* print "=== "+filename+" ==="
|
|
* for line in txt:
|
|
* print line # <<<<<<<<<<<<<<
|
|
* print irpf90_files
|
|
*
|
|
*/
|
|
if (__Pyx_PrintOne(0, __pyx_v_line) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 868; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
}
|
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
goto __pyx_L9;
|
|
}
|
|
__pyx_L9:;
|
|
}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":869
|
|
* for line in txt:
|
|
* print line
|
|
* print irpf90_files # <<<<<<<<<<<<<<
|
|
*
|
|
* if __name__ == '__main__':
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__irpf90_files); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 869; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (__Pyx_PrintOne(0, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 869; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
|
|
goto __pyx_L0;
|
|
__pyx_L1_error:;
|
|
__Pyx_XDECREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_t_2);
|
|
__Pyx_XDECREF(__pyx_t_5);
|
|
__Pyx_XDECREF(__pyx_t_6);
|
|
__Pyx_XDECREF(__pyx_t_7);
|
|
__Pyx_AddTraceback("preprocessed_text.debug", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
__pyx_r = NULL;
|
|
__pyx_L0:;
|
|
__Pyx_XDECREF(__pyx_v_filename);
|
|
__Pyx_XDECREF(__pyx_v_txt);
|
|
__Pyx_XDECREF(__pyx_v_line);
|
|
__Pyx_XGIVEREF(__pyx_r);
|
|
__Pyx_RefNannyFinishContext();
|
|
return __pyx_r;
|
|
}
|
|
|
|
static PyObject *__pyx_tp_new_17preprocessed_text___pyx_scope_struct__execute_templates(PyTypeObject *t, PyObject *a, PyObject *k) {
|
|
struct __pyx_obj_17preprocessed_text___pyx_scope_struct__execute_templates *p;
|
|
PyObject *o = (*t->tp_alloc)(t, 0);
|
|
if (!o) return 0;
|
|
p = ((struct __pyx_obj_17preprocessed_text___pyx_scope_struct__execute_templates *)o);
|
|
p->__pyx_v_fail = 0;
|
|
return o;
|
|
}
|
|
|
|
static void __pyx_tp_dealloc_17preprocessed_text___pyx_scope_struct__execute_templates(PyObject *o) {
|
|
struct __pyx_obj_17preprocessed_text___pyx_scope_struct__execute_templates *p = (struct __pyx_obj_17preprocessed_text___pyx_scope_struct__execute_templates *)o;
|
|
Py_XDECREF(p->__pyx_v_fail);
|
|
(*Py_TYPE(o)->tp_free)(o);
|
|
}
|
|
|
|
static int __pyx_tp_traverse_17preprocessed_text___pyx_scope_struct__execute_templates(PyObject *o, visitproc v, void *a) {
|
|
int e;
|
|
struct __pyx_obj_17preprocessed_text___pyx_scope_struct__execute_templates *p = (struct __pyx_obj_17preprocessed_text___pyx_scope_struct__execute_templates *)o;
|
|
if (p->__pyx_v_fail) {
|
|
e = (*v)(p->__pyx_v_fail, a); if (e) return e;
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
static int __pyx_tp_clear_17preprocessed_text___pyx_scope_struct__execute_templates(PyObject *o) {
|
|
struct __pyx_obj_17preprocessed_text___pyx_scope_struct__execute_templates *p = (struct __pyx_obj_17preprocessed_text___pyx_scope_struct__execute_templates *)o;
|
|
PyObject* tmp;
|
|
tmp = ((PyObject*)p->__pyx_v_fail);
|
|
p->__pyx_v_fail = Py_None; Py_INCREF(Py_None);
|
|
Py_XDECREF(tmp);
|
|
return 0;
|
|
}
|
|
|
|
static PyMethodDef __pyx_methods_17preprocessed_text___pyx_scope_struct__execute_templates[] = {
|
|
{0, 0, 0, 0}
|
|
};
|
|
|
|
static PyNumberMethods __pyx_tp_as_number___pyx_scope_struct__execute_templates = {
|
|
0, /*nb_add*/
|
|
0, /*nb_subtract*/
|
|
0, /*nb_multiply*/
|
|
#if PY_MAJOR_VERSION < 3
|
|
0, /*nb_divide*/
|
|
#endif
|
|
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*/
|
|
#if PY_MAJOR_VERSION < 3
|
|
0, /*nb_coerce*/
|
|
#endif
|
|
0, /*nb_int*/
|
|
#if PY_MAJOR_VERSION < 3
|
|
0, /*nb_long*/
|
|
#else
|
|
0, /*reserved*/
|
|
#endif
|
|
0, /*nb_float*/
|
|
#if PY_MAJOR_VERSION < 3
|
|
0, /*nb_oct*/
|
|
#endif
|
|
#if PY_MAJOR_VERSION < 3
|
|
0, /*nb_hex*/
|
|
#endif
|
|
0, /*nb_inplace_add*/
|
|
0, /*nb_inplace_subtract*/
|
|
0, /*nb_inplace_multiply*/
|
|
#if PY_MAJOR_VERSION < 3
|
|
0, /*nb_inplace_divide*/
|
|
#endif
|
|
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*/
|
|
#if PY_VERSION_HEX >= 0x02050000
|
|
0, /*nb_index*/
|
|
#endif
|
|
};
|
|
|
|
static PySequenceMethods __pyx_tp_as_sequence___pyx_scope_struct__execute_templates = {
|
|
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___pyx_scope_struct__execute_templates = {
|
|
0, /*mp_length*/
|
|
0, /*mp_subscript*/
|
|
0, /*mp_ass_subscript*/
|
|
};
|
|
|
|
static PyBufferProcs __pyx_tp_as_buffer___pyx_scope_struct__execute_templates = {
|
|
#if PY_MAJOR_VERSION < 3
|
|
0, /*bf_getreadbuffer*/
|
|
#endif
|
|
#if PY_MAJOR_VERSION < 3
|
|
0, /*bf_getwritebuffer*/
|
|
#endif
|
|
#if PY_MAJOR_VERSION < 3
|
|
0, /*bf_getsegcount*/
|
|
#endif
|
|
#if PY_MAJOR_VERSION < 3
|
|
0, /*bf_getcharbuffer*/
|
|
#endif
|
|
#if PY_VERSION_HEX >= 0x02060000
|
|
0, /*bf_getbuffer*/
|
|
#endif
|
|
#if PY_VERSION_HEX >= 0x02060000
|
|
0, /*bf_releasebuffer*/
|
|
#endif
|
|
};
|
|
|
|
static PyTypeObject __pyx_type_17preprocessed_text___pyx_scope_struct__execute_templates = {
|
|
PyVarObject_HEAD_INIT(0, 0)
|
|
__Pyx_NAMESTR("preprocessed_text.__pyx_scope_struct__execute_templates"), /*tp_name*/
|
|
sizeof(struct __pyx_obj_17preprocessed_text___pyx_scope_struct__execute_templates), /*tp_basicsize*/
|
|
0, /*tp_itemsize*/
|
|
__pyx_tp_dealloc_17preprocessed_text___pyx_scope_struct__execute_templates, /*tp_dealloc*/
|
|
0, /*tp_print*/
|
|
0, /*tp_getattr*/
|
|
0, /*tp_setattr*/
|
|
#if PY_MAJOR_VERSION < 3
|
|
0, /*tp_compare*/
|
|
#else
|
|
0, /*reserved*/
|
|
#endif
|
|
0, /*tp_repr*/
|
|
&__pyx_tp_as_number___pyx_scope_struct__execute_templates, /*tp_as_number*/
|
|
&__pyx_tp_as_sequence___pyx_scope_struct__execute_templates, /*tp_as_sequence*/
|
|
&__pyx_tp_as_mapping___pyx_scope_struct__execute_templates, /*tp_as_mapping*/
|
|
0, /*tp_hash*/
|
|
0, /*tp_call*/
|
|
0, /*tp_str*/
|
|
0, /*tp_getattro*/
|
|
0, /*tp_setattro*/
|
|
&__pyx_tp_as_buffer___pyx_scope_struct__execute_templates, /*tp_as_buffer*/
|
|
Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
|
|
0, /*tp_doc*/
|
|
__pyx_tp_traverse_17preprocessed_text___pyx_scope_struct__execute_templates, /*tp_traverse*/
|
|
__pyx_tp_clear_17preprocessed_text___pyx_scope_struct__execute_templates, /*tp_clear*/
|
|
0, /*tp_richcompare*/
|
|
0, /*tp_weaklistoffset*/
|
|
0, /*tp_iter*/
|
|
0, /*tp_iternext*/
|
|
__pyx_methods_17preprocessed_text___pyx_scope_struct__execute_templates, /*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*/
|
|
0, /*tp_init*/
|
|
0, /*tp_alloc*/
|
|
__pyx_tp_new_17preprocessed_text___pyx_scope_struct__execute_templates, /*tp_new*/
|
|
0, /*tp_free*/
|
|
0, /*tp_is_gc*/
|
|
0, /*tp_bases*/
|
|
0, /*tp_mro*/
|
|
0, /*tp_cache*/
|
|
0, /*tp_subclasses*/
|
|
0, /*tp_weaklist*/
|
|
0, /*tp_del*/
|
|
#if PY_VERSION_HEX >= 0x02060000
|
|
0, /*tp_version_tag*/
|
|
#endif
|
|
};
|
|
|
|
static PyObject *__pyx_tp_new_17preprocessed_text___pyx_scope_struct_1_irp_simple_statements(PyTypeObject *t, PyObject *a, PyObject *k) {
|
|
struct __pyx_obj_17preprocessed_text___pyx_scope_struct_1_irp_simple_statements *p;
|
|
PyObject *o = (*t->tp_alloc)(t, 0);
|
|
if (!o) return 0;
|
|
p = ((struct __pyx_obj_17preprocessed_text___pyx_scope_struct_1_irp_simple_statements *)o);
|
|
p->__pyx_v_debug_conditions = 0;
|
|
p->__pyx_v_process_irp_rw = 0;
|
|
p->__pyx_v_process_subroutine = 0;
|
|
return o;
|
|
}
|
|
|
|
static void __pyx_tp_dealloc_17preprocessed_text___pyx_scope_struct_1_irp_simple_statements(PyObject *o) {
|
|
struct __pyx_obj_17preprocessed_text___pyx_scope_struct_1_irp_simple_statements *p = (struct __pyx_obj_17preprocessed_text___pyx_scope_struct_1_irp_simple_statements *)o;
|
|
Py_XDECREF(p->__pyx_v_debug_conditions);
|
|
Py_XDECREF(p->__pyx_v_process_irp_rw);
|
|
Py_XDECREF(p->__pyx_v_process_subroutine);
|
|
(*Py_TYPE(o)->tp_free)(o);
|
|
}
|
|
|
|
static int __pyx_tp_traverse_17preprocessed_text___pyx_scope_struct_1_irp_simple_statements(PyObject *o, visitproc v, void *a) {
|
|
int e;
|
|
struct __pyx_obj_17preprocessed_text___pyx_scope_struct_1_irp_simple_statements *p = (struct __pyx_obj_17preprocessed_text___pyx_scope_struct_1_irp_simple_statements *)o;
|
|
if (p->__pyx_v_debug_conditions) {
|
|
e = (*v)(p->__pyx_v_debug_conditions, a); if (e) return e;
|
|
}
|
|
if (p->__pyx_v_process_irp_rw) {
|
|
e = (*v)(p->__pyx_v_process_irp_rw, a); if (e) return e;
|
|
}
|
|
if (p->__pyx_v_process_subroutine) {
|
|
e = (*v)(p->__pyx_v_process_subroutine, a); if (e) return e;
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
static int __pyx_tp_clear_17preprocessed_text___pyx_scope_struct_1_irp_simple_statements(PyObject *o) {
|
|
struct __pyx_obj_17preprocessed_text___pyx_scope_struct_1_irp_simple_statements *p = (struct __pyx_obj_17preprocessed_text___pyx_scope_struct_1_irp_simple_statements *)o;
|
|
PyObject* tmp;
|
|
tmp = ((PyObject*)p->__pyx_v_debug_conditions);
|
|
p->__pyx_v_debug_conditions = Py_None; Py_INCREF(Py_None);
|
|
Py_XDECREF(tmp);
|
|
tmp = ((PyObject*)p->__pyx_v_process_irp_rw);
|
|
p->__pyx_v_process_irp_rw = Py_None; Py_INCREF(Py_None);
|
|
Py_XDECREF(tmp);
|
|
tmp = ((PyObject*)p->__pyx_v_process_subroutine);
|
|
p->__pyx_v_process_subroutine = Py_None; Py_INCREF(Py_None);
|
|
Py_XDECREF(tmp);
|
|
return 0;
|
|
}
|
|
|
|
static PyMethodDef __pyx_methods_17preprocessed_text___pyx_scope_struct_1_irp_simple_statements[] = {
|
|
{0, 0, 0, 0}
|
|
};
|
|
|
|
static PyNumberMethods __pyx_tp_as_number___pyx_scope_struct_1_irp_simple_statements = {
|
|
0, /*nb_add*/
|
|
0, /*nb_subtract*/
|
|
0, /*nb_multiply*/
|
|
#if PY_MAJOR_VERSION < 3
|
|
0, /*nb_divide*/
|
|
#endif
|
|
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*/
|
|
#if PY_MAJOR_VERSION < 3
|
|
0, /*nb_coerce*/
|
|
#endif
|
|
0, /*nb_int*/
|
|
#if PY_MAJOR_VERSION < 3
|
|
0, /*nb_long*/
|
|
#else
|
|
0, /*reserved*/
|
|
#endif
|
|
0, /*nb_float*/
|
|
#if PY_MAJOR_VERSION < 3
|
|
0, /*nb_oct*/
|
|
#endif
|
|
#if PY_MAJOR_VERSION < 3
|
|
0, /*nb_hex*/
|
|
#endif
|
|
0, /*nb_inplace_add*/
|
|
0, /*nb_inplace_subtract*/
|
|
0, /*nb_inplace_multiply*/
|
|
#if PY_MAJOR_VERSION < 3
|
|
0, /*nb_inplace_divide*/
|
|
#endif
|
|
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*/
|
|
#if PY_VERSION_HEX >= 0x02050000
|
|
0, /*nb_index*/
|
|
#endif
|
|
};
|
|
|
|
static PySequenceMethods __pyx_tp_as_sequence___pyx_scope_struct_1_irp_simple_statements = {
|
|
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___pyx_scope_struct_1_irp_simple_statements = {
|
|
0, /*mp_length*/
|
|
0, /*mp_subscript*/
|
|
0, /*mp_ass_subscript*/
|
|
};
|
|
|
|
static PyBufferProcs __pyx_tp_as_buffer___pyx_scope_struct_1_irp_simple_statements = {
|
|
#if PY_MAJOR_VERSION < 3
|
|
0, /*bf_getreadbuffer*/
|
|
#endif
|
|
#if PY_MAJOR_VERSION < 3
|
|
0, /*bf_getwritebuffer*/
|
|
#endif
|
|
#if PY_MAJOR_VERSION < 3
|
|
0, /*bf_getsegcount*/
|
|
#endif
|
|
#if PY_MAJOR_VERSION < 3
|
|
0, /*bf_getcharbuffer*/
|
|
#endif
|
|
#if PY_VERSION_HEX >= 0x02060000
|
|
0, /*bf_getbuffer*/
|
|
#endif
|
|
#if PY_VERSION_HEX >= 0x02060000
|
|
0, /*bf_releasebuffer*/
|
|
#endif
|
|
};
|
|
|
|
static PyTypeObject __pyx_type_17preprocessed_text___pyx_scope_struct_1_irp_simple_statements = {
|
|
PyVarObject_HEAD_INIT(0, 0)
|
|
__Pyx_NAMESTR("preprocessed_text.__pyx_scope_struct_1_irp_simple_statements"), /*tp_name*/
|
|
sizeof(struct __pyx_obj_17preprocessed_text___pyx_scope_struct_1_irp_simple_statements), /*tp_basicsize*/
|
|
0, /*tp_itemsize*/
|
|
__pyx_tp_dealloc_17preprocessed_text___pyx_scope_struct_1_irp_simple_statements, /*tp_dealloc*/
|
|
0, /*tp_print*/
|
|
0, /*tp_getattr*/
|
|
0, /*tp_setattr*/
|
|
#if PY_MAJOR_VERSION < 3
|
|
0, /*tp_compare*/
|
|
#else
|
|
0, /*reserved*/
|
|
#endif
|
|
0, /*tp_repr*/
|
|
&__pyx_tp_as_number___pyx_scope_struct_1_irp_simple_statements, /*tp_as_number*/
|
|
&__pyx_tp_as_sequence___pyx_scope_struct_1_irp_simple_statements, /*tp_as_sequence*/
|
|
&__pyx_tp_as_mapping___pyx_scope_struct_1_irp_simple_statements, /*tp_as_mapping*/
|
|
0, /*tp_hash*/
|
|
0, /*tp_call*/
|
|
0, /*tp_str*/
|
|
0, /*tp_getattro*/
|
|
0, /*tp_setattro*/
|
|
&__pyx_tp_as_buffer___pyx_scope_struct_1_irp_simple_statements, /*tp_as_buffer*/
|
|
Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
|
|
0, /*tp_doc*/
|
|
__pyx_tp_traverse_17preprocessed_text___pyx_scope_struct_1_irp_simple_statements, /*tp_traverse*/
|
|
__pyx_tp_clear_17preprocessed_text___pyx_scope_struct_1_irp_simple_statements, /*tp_clear*/
|
|
0, /*tp_richcompare*/
|
|
0, /*tp_weaklistoffset*/
|
|
0, /*tp_iter*/
|
|
0, /*tp_iternext*/
|
|
__pyx_methods_17preprocessed_text___pyx_scope_struct_1_irp_simple_statements, /*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*/
|
|
0, /*tp_init*/
|
|
0, /*tp_alloc*/
|
|
__pyx_tp_new_17preprocessed_text___pyx_scope_struct_1_irp_simple_statements, /*tp_new*/
|
|
0, /*tp_free*/
|
|
0, /*tp_is_gc*/
|
|
0, /*tp_bases*/
|
|
0, /*tp_mro*/
|
|
0, /*tp_cache*/
|
|
0, /*tp_subclasses*/
|
|
0, /*tp_weaklist*/
|
|
0, /*tp_del*/
|
|
#if PY_VERSION_HEX >= 0x02060000
|
|
0, /*tp_version_tag*/
|
|
#endif
|
|
};
|
|
|
|
static PyObject *__pyx_tp_new_17preprocessed_text___pyx_scope_struct_2_process_old_style_do(PyTypeObject *t, PyObject *a, PyObject *k) {
|
|
struct __pyx_obj_17preprocessed_text___pyx_scope_struct_2_process_old_style_do *p;
|
|
PyObject *o = (*t->tp_alloc)(t, 0);
|
|
if (!o) return 0;
|
|
p = ((struct __pyx_obj_17preprocessed_text___pyx_scope_struct_2_process_old_style_do *)o);
|
|
p->__pyx_v_text = 0;
|
|
return o;
|
|
}
|
|
|
|
static void __pyx_tp_dealloc_17preprocessed_text___pyx_scope_struct_2_process_old_style_do(PyObject *o) {
|
|
struct __pyx_obj_17preprocessed_text___pyx_scope_struct_2_process_old_style_do *p = (struct __pyx_obj_17preprocessed_text___pyx_scope_struct_2_process_old_style_do *)o;
|
|
Py_XDECREF(p->__pyx_v_text);
|
|
(*Py_TYPE(o)->tp_free)(o);
|
|
}
|
|
|
|
static int __pyx_tp_traverse_17preprocessed_text___pyx_scope_struct_2_process_old_style_do(PyObject *o, visitproc v, void *a) {
|
|
int e;
|
|
struct __pyx_obj_17preprocessed_text___pyx_scope_struct_2_process_old_style_do *p = (struct __pyx_obj_17preprocessed_text___pyx_scope_struct_2_process_old_style_do *)o;
|
|
if (p->__pyx_v_text) {
|
|
e = (*v)(p->__pyx_v_text, a); if (e) return e;
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
static int __pyx_tp_clear_17preprocessed_text___pyx_scope_struct_2_process_old_style_do(PyObject *o) {
|
|
struct __pyx_obj_17preprocessed_text___pyx_scope_struct_2_process_old_style_do *p = (struct __pyx_obj_17preprocessed_text___pyx_scope_struct_2_process_old_style_do *)o;
|
|
PyObject* tmp;
|
|
tmp = ((PyObject*)p->__pyx_v_text);
|
|
p->__pyx_v_text = Py_None; Py_INCREF(Py_None);
|
|
Py_XDECREF(tmp);
|
|
return 0;
|
|
}
|
|
|
|
static PyMethodDef __pyx_methods_17preprocessed_text___pyx_scope_struct_2_process_old_style_do[] = {
|
|
{0, 0, 0, 0}
|
|
};
|
|
|
|
static PyNumberMethods __pyx_tp_as_number___pyx_scope_struct_2_process_old_style_do = {
|
|
0, /*nb_add*/
|
|
0, /*nb_subtract*/
|
|
0, /*nb_multiply*/
|
|
#if PY_MAJOR_VERSION < 3
|
|
0, /*nb_divide*/
|
|
#endif
|
|
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*/
|
|
#if PY_MAJOR_VERSION < 3
|
|
0, /*nb_coerce*/
|
|
#endif
|
|
0, /*nb_int*/
|
|
#if PY_MAJOR_VERSION < 3
|
|
0, /*nb_long*/
|
|
#else
|
|
0, /*reserved*/
|
|
#endif
|
|
0, /*nb_float*/
|
|
#if PY_MAJOR_VERSION < 3
|
|
0, /*nb_oct*/
|
|
#endif
|
|
#if PY_MAJOR_VERSION < 3
|
|
0, /*nb_hex*/
|
|
#endif
|
|
0, /*nb_inplace_add*/
|
|
0, /*nb_inplace_subtract*/
|
|
0, /*nb_inplace_multiply*/
|
|
#if PY_MAJOR_VERSION < 3
|
|
0, /*nb_inplace_divide*/
|
|
#endif
|
|
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*/
|
|
#if PY_VERSION_HEX >= 0x02050000
|
|
0, /*nb_index*/
|
|
#endif
|
|
};
|
|
|
|
static PySequenceMethods __pyx_tp_as_sequence___pyx_scope_struct_2_process_old_style_do = {
|
|
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___pyx_scope_struct_2_process_old_style_do = {
|
|
0, /*mp_length*/
|
|
0, /*mp_subscript*/
|
|
0, /*mp_ass_subscript*/
|
|
};
|
|
|
|
static PyBufferProcs __pyx_tp_as_buffer___pyx_scope_struct_2_process_old_style_do = {
|
|
#if PY_MAJOR_VERSION < 3
|
|
0, /*bf_getreadbuffer*/
|
|
#endif
|
|
#if PY_MAJOR_VERSION < 3
|
|
0, /*bf_getwritebuffer*/
|
|
#endif
|
|
#if PY_MAJOR_VERSION < 3
|
|
0, /*bf_getsegcount*/
|
|
#endif
|
|
#if PY_MAJOR_VERSION < 3
|
|
0, /*bf_getcharbuffer*/
|
|
#endif
|
|
#if PY_VERSION_HEX >= 0x02060000
|
|
0, /*bf_getbuffer*/
|
|
#endif
|
|
#if PY_VERSION_HEX >= 0x02060000
|
|
0, /*bf_releasebuffer*/
|
|
#endif
|
|
};
|
|
|
|
static PyTypeObject __pyx_type_17preprocessed_text___pyx_scope_struct_2_process_old_style_do = {
|
|
PyVarObject_HEAD_INIT(0, 0)
|
|
__Pyx_NAMESTR("preprocessed_text.__pyx_scope_struct_2_process_old_style_do"), /*tp_name*/
|
|
sizeof(struct __pyx_obj_17preprocessed_text___pyx_scope_struct_2_process_old_style_do), /*tp_basicsize*/
|
|
0, /*tp_itemsize*/
|
|
__pyx_tp_dealloc_17preprocessed_text___pyx_scope_struct_2_process_old_style_do, /*tp_dealloc*/
|
|
0, /*tp_print*/
|
|
0, /*tp_getattr*/
|
|
0, /*tp_setattr*/
|
|
#if PY_MAJOR_VERSION < 3
|
|
0, /*tp_compare*/
|
|
#else
|
|
0, /*reserved*/
|
|
#endif
|
|
0, /*tp_repr*/
|
|
&__pyx_tp_as_number___pyx_scope_struct_2_process_old_style_do, /*tp_as_number*/
|
|
&__pyx_tp_as_sequence___pyx_scope_struct_2_process_old_style_do, /*tp_as_sequence*/
|
|
&__pyx_tp_as_mapping___pyx_scope_struct_2_process_old_style_do, /*tp_as_mapping*/
|
|
0, /*tp_hash*/
|
|
0, /*tp_call*/
|
|
0, /*tp_str*/
|
|
0, /*tp_getattro*/
|
|
0, /*tp_setattro*/
|
|
&__pyx_tp_as_buffer___pyx_scope_struct_2_process_old_style_do, /*tp_as_buffer*/
|
|
Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
|
|
0, /*tp_doc*/
|
|
__pyx_tp_traverse_17preprocessed_text___pyx_scope_struct_2_process_old_style_do, /*tp_traverse*/
|
|
__pyx_tp_clear_17preprocessed_text___pyx_scope_struct_2_process_old_style_do, /*tp_clear*/
|
|
0, /*tp_richcompare*/
|
|
0, /*tp_weaklistoffset*/
|
|
0, /*tp_iter*/
|
|
0, /*tp_iternext*/
|
|
__pyx_methods_17preprocessed_text___pyx_scope_struct_2_process_old_style_do, /*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*/
|
|
0, /*tp_init*/
|
|
0, /*tp_alloc*/
|
|
__pyx_tp_new_17preprocessed_text___pyx_scope_struct_2_process_old_style_do, /*tp_new*/
|
|
0, /*tp_free*/
|
|
0, /*tp_is_gc*/
|
|
0, /*tp_bases*/
|
|
0, /*tp_mro*/
|
|
0, /*tp_cache*/
|
|
0, /*tp_subclasses*/
|
|
0, /*tp_weaklist*/
|
|
0, /*tp_del*/
|
|
#if PY_VERSION_HEX >= 0x02060000
|
|
0, /*tp_version_tag*/
|
|
#endif
|
|
};
|
|
|
|
static PyObject *__pyx_tp_new_17preprocessed_text___pyx_scope_struct_3_check_begin_end(PyTypeObject *t, PyObject *a, PyObject *k) {
|
|
struct __pyx_obj_17preprocessed_text___pyx_scope_struct_3_check_begin_end *p;
|
|
PyObject *o = (*t->tp_alloc)(t, 0);
|
|
if (!o) return 0;
|
|
p = ((struct __pyx_obj_17preprocessed_text___pyx_scope_struct_3_check_begin_end *)o);
|
|
p->__pyx_v_d = 0;
|
|
p->__pyx_v_text = 0;
|
|
return o;
|
|
}
|
|
|
|
static void __pyx_tp_dealloc_17preprocessed_text___pyx_scope_struct_3_check_begin_end(PyObject *o) {
|
|
struct __pyx_obj_17preprocessed_text___pyx_scope_struct_3_check_begin_end *p = (struct __pyx_obj_17preprocessed_text___pyx_scope_struct_3_check_begin_end *)o;
|
|
Py_XDECREF(p->__pyx_v_d);
|
|
Py_XDECREF(p->__pyx_v_text);
|
|
(*Py_TYPE(o)->tp_free)(o);
|
|
}
|
|
|
|
static int __pyx_tp_traverse_17preprocessed_text___pyx_scope_struct_3_check_begin_end(PyObject *o, visitproc v, void *a) {
|
|
int e;
|
|
struct __pyx_obj_17preprocessed_text___pyx_scope_struct_3_check_begin_end *p = (struct __pyx_obj_17preprocessed_text___pyx_scope_struct_3_check_begin_end *)o;
|
|
if (p->__pyx_v_d) {
|
|
e = (*v)(p->__pyx_v_d, a); if (e) return e;
|
|
}
|
|
if (p->__pyx_v_text) {
|
|
e = (*v)(p->__pyx_v_text, a); if (e) return e;
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
static int __pyx_tp_clear_17preprocessed_text___pyx_scope_struct_3_check_begin_end(PyObject *o) {
|
|
struct __pyx_obj_17preprocessed_text___pyx_scope_struct_3_check_begin_end *p = (struct __pyx_obj_17preprocessed_text___pyx_scope_struct_3_check_begin_end *)o;
|
|
PyObject* tmp;
|
|
tmp = ((PyObject*)p->__pyx_v_d);
|
|
p->__pyx_v_d = Py_None; Py_INCREF(Py_None);
|
|
Py_XDECREF(tmp);
|
|
tmp = ((PyObject*)p->__pyx_v_text);
|
|
p->__pyx_v_text = Py_None; Py_INCREF(Py_None);
|
|
Py_XDECREF(tmp);
|
|
return 0;
|
|
}
|
|
|
|
static PyMethodDef __pyx_methods_17preprocessed_text___pyx_scope_struct_3_check_begin_end[] = {
|
|
{0, 0, 0, 0}
|
|
};
|
|
|
|
static PyNumberMethods __pyx_tp_as_number___pyx_scope_struct_3_check_begin_end = {
|
|
0, /*nb_add*/
|
|
0, /*nb_subtract*/
|
|
0, /*nb_multiply*/
|
|
#if PY_MAJOR_VERSION < 3
|
|
0, /*nb_divide*/
|
|
#endif
|
|
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*/
|
|
#if PY_MAJOR_VERSION < 3
|
|
0, /*nb_coerce*/
|
|
#endif
|
|
0, /*nb_int*/
|
|
#if PY_MAJOR_VERSION < 3
|
|
0, /*nb_long*/
|
|
#else
|
|
0, /*reserved*/
|
|
#endif
|
|
0, /*nb_float*/
|
|
#if PY_MAJOR_VERSION < 3
|
|
0, /*nb_oct*/
|
|
#endif
|
|
#if PY_MAJOR_VERSION < 3
|
|
0, /*nb_hex*/
|
|
#endif
|
|
0, /*nb_inplace_add*/
|
|
0, /*nb_inplace_subtract*/
|
|
0, /*nb_inplace_multiply*/
|
|
#if PY_MAJOR_VERSION < 3
|
|
0, /*nb_inplace_divide*/
|
|
#endif
|
|
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*/
|
|
#if PY_VERSION_HEX >= 0x02050000
|
|
0, /*nb_index*/
|
|
#endif
|
|
};
|
|
|
|
static PySequenceMethods __pyx_tp_as_sequence___pyx_scope_struct_3_check_begin_end = {
|
|
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___pyx_scope_struct_3_check_begin_end = {
|
|
0, /*mp_length*/
|
|
0, /*mp_subscript*/
|
|
0, /*mp_ass_subscript*/
|
|
};
|
|
|
|
static PyBufferProcs __pyx_tp_as_buffer___pyx_scope_struct_3_check_begin_end = {
|
|
#if PY_MAJOR_VERSION < 3
|
|
0, /*bf_getreadbuffer*/
|
|
#endif
|
|
#if PY_MAJOR_VERSION < 3
|
|
0, /*bf_getwritebuffer*/
|
|
#endif
|
|
#if PY_MAJOR_VERSION < 3
|
|
0, /*bf_getsegcount*/
|
|
#endif
|
|
#if PY_MAJOR_VERSION < 3
|
|
0, /*bf_getcharbuffer*/
|
|
#endif
|
|
#if PY_VERSION_HEX >= 0x02060000
|
|
0, /*bf_getbuffer*/
|
|
#endif
|
|
#if PY_VERSION_HEX >= 0x02060000
|
|
0, /*bf_releasebuffer*/
|
|
#endif
|
|
};
|
|
|
|
static PyTypeObject __pyx_type_17preprocessed_text___pyx_scope_struct_3_check_begin_end = {
|
|
PyVarObject_HEAD_INIT(0, 0)
|
|
__Pyx_NAMESTR("preprocessed_text.__pyx_scope_struct_3_check_begin_end"), /*tp_name*/
|
|
sizeof(struct __pyx_obj_17preprocessed_text___pyx_scope_struct_3_check_begin_end), /*tp_basicsize*/
|
|
0, /*tp_itemsize*/
|
|
__pyx_tp_dealloc_17preprocessed_text___pyx_scope_struct_3_check_begin_end, /*tp_dealloc*/
|
|
0, /*tp_print*/
|
|
0, /*tp_getattr*/
|
|
0, /*tp_setattr*/
|
|
#if PY_MAJOR_VERSION < 3
|
|
0, /*tp_compare*/
|
|
#else
|
|
0, /*reserved*/
|
|
#endif
|
|
0, /*tp_repr*/
|
|
&__pyx_tp_as_number___pyx_scope_struct_3_check_begin_end, /*tp_as_number*/
|
|
&__pyx_tp_as_sequence___pyx_scope_struct_3_check_begin_end, /*tp_as_sequence*/
|
|
&__pyx_tp_as_mapping___pyx_scope_struct_3_check_begin_end, /*tp_as_mapping*/
|
|
0, /*tp_hash*/
|
|
0, /*tp_call*/
|
|
0, /*tp_str*/
|
|
0, /*tp_getattro*/
|
|
0, /*tp_setattro*/
|
|
&__pyx_tp_as_buffer___pyx_scope_struct_3_check_begin_end, /*tp_as_buffer*/
|
|
Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
|
|
0, /*tp_doc*/
|
|
__pyx_tp_traverse_17preprocessed_text___pyx_scope_struct_3_check_begin_end, /*tp_traverse*/
|
|
__pyx_tp_clear_17preprocessed_text___pyx_scope_struct_3_check_begin_end, /*tp_clear*/
|
|
0, /*tp_richcompare*/
|
|
0, /*tp_weaklistoffset*/
|
|
0, /*tp_iter*/
|
|
0, /*tp_iternext*/
|
|
__pyx_methods_17preprocessed_text___pyx_scope_struct_3_check_begin_end, /*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*/
|
|
0, /*tp_init*/
|
|
0, /*tp_alloc*/
|
|
__pyx_tp_new_17preprocessed_text___pyx_scope_struct_3_check_begin_end, /*tp_new*/
|
|
0, /*tp_free*/
|
|
0, /*tp_is_gc*/
|
|
0, /*tp_bases*/
|
|
0, /*tp_mro*/
|
|
0, /*tp_cache*/
|
|
0, /*tp_subclasses*/
|
|
0, /*tp_weaklist*/
|
|
0, /*tp_del*/
|
|
#if PY_VERSION_HEX >= 0x02060000
|
|
0, /*tp_version_tag*/
|
|
#endif
|
|
};
|
|
|
|
static PyMethodDef __pyx_methods[] = {
|
|
{0, 0, 0, 0}
|
|
};
|
|
|
|
char* __pyx_import_star_type_names[] = {
|
|
"__pyx_scope_struct_3_check_begin_end",
|
|
"__pyx_scope_struct__execute_templates",
|
|
"__pyx_scope_struct_2_process_old_style_do",
|
|
"__pyx_scope_struct_1_irp_simple_statements",
|
|
0
|
|
};
|
|
|
|
static int __pyx_import_star_set(PyObject *o, PyObject* py_name, char *name) {
|
|
char** type_name = __pyx_import_star_type_names;
|
|
while (*type_name) {
|
|
if (__Pyx_StrEq(name, *type_name)) {
|
|
PyErr_Format(PyExc_TypeError, "Cannot overwrite C type %s", name);
|
|
goto bad;
|
|
}
|
|
type_name++;
|
|
}
|
|
if (0);
|
|
else {
|
|
if (PyObject_SetAttr(__pyx_m, py_name, o) < 0) goto bad;
|
|
}
|
|
return 0;
|
|
bad:
|
|
return -1;
|
|
}
|
|
|
|
|
|
/* import_all_from is an unexposed function from ceval.c */
|
|
|
|
static int
|
|
__Pyx_import_all_from(PyObject *locals, PyObject *v)
|
|
{
|
|
PyObject *all = __Pyx_GetAttrString(v, "__all__");
|
|
PyObject *dict, *name, *value;
|
|
int skip_leading_underscores = 0;
|
|
int pos, err;
|
|
|
|
if (all == NULL) {
|
|
if (!PyErr_ExceptionMatches(PyExc_AttributeError))
|
|
return -1; /* Unexpected error */
|
|
PyErr_Clear();
|
|
dict = __Pyx_GetAttrString(v, "__dict__");
|
|
if (dict == NULL) {
|
|
if (!PyErr_ExceptionMatches(PyExc_AttributeError))
|
|
return -1;
|
|
PyErr_SetString(PyExc_ImportError,
|
|
"from-import-* object has no __dict__ and no __all__");
|
|
return -1;
|
|
}
|
|
#if PY_MAJOR_VERSION < 3
|
|
all = PyObject_CallMethod(dict, (char *)"keys", NULL);
|
|
#else
|
|
all = PyMapping_Keys(dict);
|
|
#endif
|
|
Py_DECREF(dict);
|
|
if (all == NULL)
|
|
return -1;
|
|
skip_leading_underscores = 1;
|
|
}
|
|
|
|
for (pos = 0, err = 0; ; pos++) {
|
|
name = PySequence_GetItem(all, pos);
|
|
if (name == NULL) {
|
|
if (!PyErr_ExceptionMatches(PyExc_IndexError))
|
|
err = -1;
|
|
else
|
|
PyErr_Clear();
|
|
break;
|
|
}
|
|
if (skip_leading_underscores &&
|
|
#if PY_MAJOR_VERSION < 3
|
|
PyString_Check(name) &&
|
|
PyString_AS_STRING(name)[0] == '_')
|
|
#else
|
|
PyUnicode_Check(name) &&
|
|
PyUnicode_AS_UNICODE(name)[0] == '_')
|
|
#endif
|
|
{
|
|
Py_DECREF(name);
|
|
continue;
|
|
}
|
|
value = PyObject_GetAttr(v, name);
|
|
if (value == NULL)
|
|
err = -1;
|
|
else if (PyDict_CheckExact(locals))
|
|
err = PyDict_SetItem(locals, name, value);
|
|
else
|
|
err = PyObject_SetItem(locals, name, value);
|
|
Py_DECREF(name);
|
|
Py_XDECREF(value);
|
|
if (err != 0)
|
|
break;
|
|
}
|
|
Py_DECREF(all);
|
|
return err;
|
|
}
|
|
|
|
|
|
static int __pyx_import_star(PyObject* m) {
|
|
|
|
int i;
|
|
int ret = -1;
|
|
char* s;
|
|
PyObject *locals = 0;
|
|
PyObject *list = 0;
|
|
#if PY_MAJOR_VERSION >= 3
|
|
PyObject *utf8_name = 0;
|
|
#endif
|
|
PyObject *name;
|
|
PyObject *item;
|
|
|
|
locals = PyDict_New(); if (!locals) goto bad;
|
|
if (__Pyx_import_all_from(locals, m) < 0) goto bad;
|
|
list = PyDict_Items(locals); if (!list) goto bad;
|
|
|
|
for(i=0; i<PyList_GET_SIZE(list); i++) {
|
|
name = PyTuple_GET_ITEM(PyList_GET_ITEM(list, i), 0);
|
|
item = PyTuple_GET_ITEM(PyList_GET_ITEM(list, i), 1);
|
|
#if PY_MAJOR_VERSION >= 3
|
|
utf8_name = PyUnicode_AsUTF8String(name);
|
|
if (!utf8_name) goto bad;
|
|
s = PyBytes_AS_STRING(utf8_name);
|
|
if (__pyx_import_star_set(item, name, s) < 0) goto bad;
|
|
Py_DECREF(utf8_name); utf8_name = 0;
|
|
#else
|
|
s = PyString_AsString(name);
|
|
if (!s) goto bad;
|
|
if (__pyx_import_star_set(item, name, s) < 0) goto bad;
|
|
#endif
|
|
}
|
|
ret = 0;
|
|
|
|
bad:
|
|
Py_XDECREF(locals);
|
|
Py_XDECREF(list);
|
|
#if PY_MAJOR_VERSION >= 3
|
|
Py_XDECREF(utf8_name);
|
|
#endif
|
|
return ret;
|
|
}
|
|
|
|
|
|
#if PY_MAJOR_VERSION >= 3
|
|
static struct PyModuleDef __pyx_moduledef = {
|
|
PyModuleDef_HEAD_INIT,
|
|
__Pyx_NAMESTR("preprocessed_text"),
|
|
0, /* m_doc */
|
|
-1, /* m_size */
|
|
__pyx_methods /* m_methods */,
|
|
NULL, /* m_reload */
|
|
NULL, /* m_traverse */
|
|
NULL, /* m_clear */
|
|
NULL /* m_free */
|
|
};
|
|
#endif
|
|
|
|
static __Pyx_StringTabEntry __pyx_string_tab[] = {
|
|
{&__pyx_n_s_1, __pyx_k_1, sizeof(__pyx_k_1), 0, 0, 1, 1},
|
|
{&__pyx_kp_s_10, __pyx_k_10, sizeof(__pyx_k_10), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_100, __pyx_k_100, sizeof(__pyx_k_100), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_101, __pyx_k_101, sizeof(__pyx_k_101), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_102, __pyx_k_102, sizeof(__pyx_k_102), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_106, __pyx_k_106, sizeof(__pyx_k_106), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_107, __pyx_k_107, sizeof(__pyx_k_107), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_108, __pyx_k_108, sizeof(__pyx_k_108), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_112, __pyx_k_112, sizeof(__pyx_k_112), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_113, __pyx_k_113, sizeof(__pyx_k_113), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_114, __pyx_k_114, sizeof(__pyx_k_114), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_115, __pyx_k_115, sizeof(__pyx_k_115), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_116, __pyx_k_116, sizeof(__pyx_k_116), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_117, __pyx_k_117, sizeof(__pyx_k_117), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_118, __pyx_k_118, sizeof(__pyx_k_118), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_119, __pyx_k_119, sizeof(__pyx_k_119), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_12, __pyx_k_12, sizeof(__pyx_k_12), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_120, __pyx_k_120, sizeof(__pyx_k_120), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_121, __pyx_k_121, sizeof(__pyx_k_121), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_122, __pyx_k_122, sizeof(__pyx_k_122), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_123, __pyx_k_123, sizeof(__pyx_k_123), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_124, __pyx_k_124, sizeof(__pyx_k_124), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_127, __pyx_k_127, sizeof(__pyx_k_127), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_128, __pyx_k_128, sizeof(__pyx_k_128), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_129, __pyx_k_129, sizeof(__pyx_k_129), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_13, __pyx_k_13, sizeof(__pyx_k_13), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_130, __pyx_k_130, sizeof(__pyx_k_130), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_134, __pyx_k_134, sizeof(__pyx_k_134), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_135, __pyx_k_135, sizeof(__pyx_k_135), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_136, __pyx_k_136, sizeof(__pyx_k_136), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_137, __pyx_k_137, sizeof(__pyx_k_137), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_138, __pyx_k_138, sizeof(__pyx_k_138), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_139, __pyx_k_139, sizeof(__pyx_k_139), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_14, __pyx_k_14, sizeof(__pyx_k_14), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_140, __pyx_k_140, sizeof(__pyx_k_140), 0, 0, 1, 0},
|
|
{&__pyx_n_s_141, __pyx_k_141, sizeof(__pyx_k_141), 0, 0, 1, 1},
|
|
{&__pyx_n_s_142, __pyx_k_142, sizeof(__pyx_k_142), 0, 0, 1, 1},
|
|
{&__pyx_n_s_143, __pyx_k_143, sizeof(__pyx_k_143), 0, 0, 1, 1},
|
|
{&__pyx_kp_s_144, __pyx_k_144, sizeof(__pyx_k_144), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_145, __pyx_k_145, sizeof(__pyx_k_145), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_146, __pyx_k_146, sizeof(__pyx_k_146), 0, 0, 1, 0},
|
|
{&__pyx_n_s_147, __pyx_k_147, sizeof(__pyx_k_147), 0, 0, 1, 1},
|
|
{&__pyx_kp_s_148, __pyx_k_148, sizeof(__pyx_k_148), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_15, __pyx_k_15, sizeof(__pyx_k_15), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_150, __pyx_k_150, sizeof(__pyx_k_150), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_152, __pyx_k_152, sizeof(__pyx_k_152), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_154, __pyx_k_154, sizeof(__pyx_k_154), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_156, __pyx_k_156, sizeof(__pyx_k_156), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_158, __pyx_k_158, sizeof(__pyx_k_158), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_16, __pyx_k_16, sizeof(__pyx_k_16), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_160, __pyx_k_160, sizeof(__pyx_k_160), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_17, __pyx_k_17, sizeof(__pyx_k_17), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_18, __pyx_k_18, sizeof(__pyx_k_18), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_19, __pyx_k_19, sizeof(__pyx_k_19), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_2, __pyx_k_2, sizeof(__pyx_k_2), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_20, __pyx_k_20, sizeof(__pyx_k_20), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_21, __pyx_k_21, sizeof(__pyx_k_21), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_22, __pyx_k_22, sizeof(__pyx_k_22), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_23, __pyx_k_23, sizeof(__pyx_k_23), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_25, __pyx_k_25, sizeof(__pyx_k_25), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_26, __pyx_k_26, sizeof(__pyx_k_26), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_28, __pyx_k_28, sizeof(__pyx_k_28), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_29, __pyx_k_29, sizeof(__pyx_k_29), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_3, __pyx_k_3, sizeof(__pyx_k_3), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_30, __pyx_k_30, sizeof(__pyx_k_30), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_32, __pyx_k_32, sizeof(__pyx_k_32), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_33, __pyx_k_33, sizeof(__pyx_k_33), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_35, __pyx_k_35, sizeof(__pyx_k_35), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_37, __pyx_k_37, sizeof(__pyx_k_37), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_38, __pyx_k_38, sizeof(__pyx_k_38), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_39, __pyx_k_39, sizeof(__pyx_k_39), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_4, __pyx_k_4, sizeof(__pyx_k_4), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_40, __pyx_k_40, sizeof(__pyx_k_40), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_41, __pyx_k_41, sizeof(__pyx_k_41), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_42, __pyx_k_42, sizeof(__pyx_k_42), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_43, __pyx_k_43, sizeof(__pyx_k_43), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_44, __pyx_k_44, sizeof(__pyx_k_44), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_46, __pyx_k_46, sizeof(__pyx_k_46), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_48, __pyx_k_48, sizeof(__pyx_k_48), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_49, __pyx_k_49, sizeof(__pyx_k_49), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_50, __pyx_k_50, sizeof(__pyx_k_50), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_51, __pyx_k_51, sizeof(__pyx_k_51), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_52, __pyx_k_52, sizeof(__pyx_k_52), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_53, __pyx_k_53, sizeof(__pyx_k_53), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_54, __pyx_k_54, sizeof(__pyx_k_54), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_55, __pyx_k_55, sizeof(__pyx_k_55), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_56, __pyx_k_56, sizeof(__pyx_k_56), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_57, __pyx_k_57, sizeof(__pyx_k_57), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_58, __pyx_k_58, sizeof(__pyx_k_58), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_6, __pyx_k_6, sizeof(__pyx_k_6), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_60, __pyx_k_60, sizeof(__pyx_k_60), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_62, __pyx_k_62, sizeof(__pyx_k_62), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_63, __pyx_k_63, sizeof(__pyx_k_63), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_64, __pyx_k_64, sizeof(__pyx_k_64), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_65, __pyx_k_65, sizeof(__pyx_k_65), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_66, __pyx_k_66, sizeof(__pyx_k_66), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_67, __pyx_k_67, sizeof(__pyx_k_67), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_68, __pyx_k_68, sizeof(__pyx_k_68), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_69, __pyx_k_69, sizeof(__pyx_k_69), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_7, __pyx_k_7, sizeof(__pyx_k_7), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_70, __pyx_k_70, sizeof(__pyx_k_70), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_71, __pyx_k_71, sizeof(__pyx_k_71), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_72, __pyx_k_72, sizeof(__pyx_k_72), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_73, __pyx_k_73, sizeof(__pyx_k_73), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_74, __pyx_k_74, sizeof(__pyx_k_74), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_75, __pyx_k_75, sizeof(__pyx_k_75), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_76, __pyx_k_76, sizeof(__pyx_k_76), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_77, __pyx_k_77, sizeof(__pyx_k_77), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_78, __pyx_k_78, sizeof(__pyx_k_78), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_79, __pyx_k_79, sizeof(__pyx_k_79), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_8, __pyx_k_8, sizeof(__pyx_k_8), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_80, __pyx_k_80, sizeof(__pyx_k_80), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_81, __pyx_k_81, sizeof(__pyx_k_81), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_82, __pyx_k_82, sizeof(__pyx_k_82), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_83, __pyx_k_83, sizeof(__pyx_k_83), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_86, __pyx_k_86, sizeof(__pyx_k_86), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_87, __pyx_k_87, sizeof(__pyx_k_87), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_88, __pyx_k_88, sizeof(__pyx_k_88), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_89, __pyx_k_89, sizeof(__pyx_k_89), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_9, __pyx_k_9, sizeof(__pyx_k_9), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_90, __pyx_k_90, sizeof(__pyx_k_90), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_92, __pyx_k_92, sizeof(__pyx_k_92), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_93, __pyx_k_93, sizeof(__pyx_k_93), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_95, __pyx_k_95, sizeof(__pyx_k_95), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_96, __pyx_k_96, sizeof(__pyx_k_96), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_97, __pyx_k_97, sizeof(__pyx_k_97), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_98, __pyx_k_98, sizeof(__pyx_k_98), 0, 0, 1, 0},
|
|
{&__pyx_kp_s_99, __pyx_k_99, sizeof(__pyx_k_99), 0, 0, 1, 0},
|
|
{&__pyx_kp_s__0, __pyx_k__0, sizeof(__pyx_k__0), 0, 0, 1, 0},
|
|
{&__pyx_n_s__Assert, __pyx_k__Assert, sizeof(__pyx_k__Assert), 0, 0, 1, 1},
|
|
{&__pyx_n_s__Begin_doc, __pyx_k__Begin_doc, sizeof(__pyx_k__Begin_doc), 0, 0, 1, 1},
|
|
{&__pyx_n_s__Begin_provider, __pyx_k__Begin_provider, sizeof(__pyx_k__Begin_provider), 0, 0, 1, 1},
|
|
{&__pyx_n_s__Begin_shell, __pyx_k__Begin_shell, sizeof(__pyx_k__Begin_shell), 0, 0, 1, 1},
|
|
{&__pyx_n_s__Begin_template, __pyx_k__Begin_template, sizeof(__pyx_k__Begin_template), 0, 0, 1, 1},
|
|
{&__pyx_n_s__Call, __pyx_k__Call, sizeof(__pyx_k__Call), 0, 0, 1, 1},
|
|
{&__pyx_n_s__Case, __pyx_k__Case, sizeof(__pyx_k__Case), 0, 0, 1, 1},
|
|
{&__pyx_n_s__Cont_provider, __pyx_k__Cont_provider, sizeof(__pyx_k__Cont_provider), 0, 0, 1, 1},
|
|
{&__pyx_n_s__Continue, __pyx_k__Continue, sizeof(__pyx_k__Continue), 0, 0, 1, 1},
|
|
{&__pyx_n_s__Declaration, __pyx_k__Declaration, sizeof(__pyx_k__Declaration), 0, 0, 1, 1},
|
|
{&__pyx_n_s__Directive, __pyx_k__Directive, sizeof(__pyx_k__Directive), 0, 0, 1, 1},
|
|
{&__pyx_n_s__Do, __pyx_k__Do, sizeof(__pyx_k__Do), 0, 0, 1, 1},
|
|
{&__pyx_n_s__Doc, __pyx_k__Doc, sizeof(__pyx_k__Doc), 0, 0, 1, 1},
|
|
{&__pyx_n_s__Else, __pyx_k__Else, sizeof(__pyx_k__Else), 0, 0, 1, 1},
|
|
{&__pyx_n_s__Elseif, __pyx_k__Elseif, sizeof(__pyx_k__Elseif), 0, 0, 1, 1},
|
|
{&__pyx_n_s__Empty_line, __pyx_k__Empty_line, sizeof(__pyx_k__Empty_line), 0, 0, 1, 1},
|
|
{&__pyx_n_s__End, __pyx_k__End, sizeof(__pyx_k__End), 0, 0, 1, 1},
|
|
{&__pyx_n_s__End_doc, __pyx_k__End_doc, sizeof(__pyx_k__End_doc), 0, 0, 1, 1},
|
|
{&__pyx_n_s__End_provider, __pyx_k__End_provider, sizeof(__pyx_k__End_provider), 0, 0, 1, 1},
|
|
{&__pyx_n_s__End_select, __pyx_k__End_select, sizeof(__pyx_k__End_select), 0, 0, 1, 1},
|
|
{&__pyx_n_s__End_shell, __pyx_k__End_shell, sizeof(__pyx_k__End_shell), 0, 0, 1, 1},
|
|
{&__pyx_n_s__End_template, __pyx_k__End_template, sizeof(__pyx_k__End_template), 0, 0, 1, 1},
|
|
{&__pyx_n_s__Enddo, __pyx_k__Enddo, sizeof(__pyx_k__Enddo), 0, 0, 1, 1},
|
|
{&__pyx_n_s__Endif, __pyx_k__Endif, sizeof(__pyx_k__Endif), 0, 0, 1, 1},
|
|
{&__pyx_n_s__Fixed_form, __pyx_k__Fixed_form, sizeof(__pyx_k__Fixed_form), 0, 0, 1, 1},
|
|
{&__pyx_n_s__Free, __pyx_k__Free, sizeof(__pyx_k__Free), 0, 0, 1, 1},
|
|
{&__pyx_n_s__Free_form, __pyx_k__Free_form, sizeof(__pyx_k__Free_form), 0, 0, 1, 1},
|
|
{&__pyx_n_s__Function, __pyx_k__Function, sizeof(__pyx_k__Function), 0, 0, 1, 1},
|
|
{&__pyx_n_s__IOError, __pyx_k__IOError, sizeof(__pyx_k__IOError), 0, 0, 1, 1},
|
|
{&__pyx_n_s__If, __pyx_k__If, sizeof(__pyx_k__If), 0, 0, 1, 1},
|
|
{&__pyx_n_s__Implicit, __pyx_k__Implicit, sizeof(__pyx_k__Implicit), 0, 0, 1, 1},
|
|
{&__pyx_n_s__Include, __pyx_k__Include, sizeof(__pyx_k__Include), 0, 0, 1, 1},
|
|
{&__pyx_n_s__IndexError, __pyx_k__IndexError, sizeof(__pyx_k__IndexError), 0, 0, 1, 1},
|
|
{&__pyx_n_s__Irp_Else, __pyx_k__Irp_Else, sizeof(__pyx_k__Irp_Else), 0, 0, 1, 1},
|
|
{&__pyx_n_s__Irp_Endif, __pyx_k__Irp_Endif, sizeof(__pyx_k__Irp_Endif), 0, 0, 1, 1},
|
|
{&__pyx_n_s__Irp_If, __pyx_k__Irp_If, sizeof(__pyx_k__Irp_If), 0, 0, 1, 1},
|
|
{&__pyx_n_s__Irp_read, __pyx_k__Irp_read, sizeof(__pyx_k__Irp_read), 0, 0, 1, 1},
|
|
{&__pyx_n_s__Irp_write, __pyx_k__Irp_write, sizeof(__pyx_k__Irp_write), 0, 0, 1, 1},
|
|
{&__pyx_n_s__Line, __pyx_k__Line, sizeof(__pyx_k__Line), 0, 0, 1, 1},
|
|
{&__pyx_n_s__Missing, __pyx_k__Missing, sizeof(__pyx_k__Missing), 0, 0, 1, 1},
|
|
{&__pyx_n_s__NoDep, __pyx_k__NoDep, sizeof(__pyx_k__NoDep), 0, 0, 1, 1},
|
|
{&__pyx_n_s__Openmp, __pyx_k__Openmp, sizeof(__pyx_k__Openmp), 0, 0, 1, 1},
|
|
{&__pyx_n_s__Program, __pyx_k__Program, sizeof(__pyx_k__Program), 0, 0, 1, 1},
|
|
{&__pyx_n_s__Provide, __pyx_k__Provide, sizeof(__pyx_k__Provide), 0, 0, 1, 1},
|
|
{&__pyx_n_s__Provide_all, __pyx_k__Provide_all, sizeof(__pyx_k__Provide_all), 0, 0, 1, 1},
|
|
{&__pyx_n_s__Return, __pyx_k__Return, sizeof(__pyx_k__Return), 0, 0, 1, 1},
|
|
{&__pyx_n_s__S, __pyx_k__S, sizeof(__pyx_k__S), 0, 0, 1, 1},
|
|
{&__pyx_n_s__Select, __pyx_k__Select, sizeof(__pyx_k__Select), 0, 0, 1, 1},
|
|
{&__pyx_n_s__Simple_line, __pyx_k__Simple_line, sizeof(__pyx_k__Simple_line), 0, 0, 1, 1},
|
|
{&__pyx_n_s__SoftTouch, __pyx_k__SoftTouch, sizeof(__pyx_k__SoftTouch), 0, 0, 1, 1},
|
|
{&__pyx_n_s__Subroutine, __pyx_k__Subroutine, sizeof(__pyx_k__Subroutine), 0, 0, 1, 1},
|
|
{&__pyx_n_s__Subst, __pyx_k__Subst, sizeof(__pyx_k__Subst), 0, 0, 1, 1},
|
|
{&__pyx_n_s__Touch, __pyx_k__Touch, sizeof(__pyx_k__Touch), 0, 0, 1, 1},
|
|
{&__pyx_n_s__Use, __pyx_k__Use, sizeof(__pyx_k__Use), 0, 0, 1, 1},
|
|
{&__pyx_n_s____main__, __pyx_k____main__, sizeof(__pyx_k____main__), 0, 0, 1, 1},
|
|
{&__pyx_n_s____name__, __pyx_k____name__, sizeof(__pyx_k____name__), 0, 0, 1, 1},
|
|
{&__pyx_n_s____test__, __pyx_k____test__, sizeof(__pyx_k____test__), 0, 0, 1, 1},
|
|
{&__pyx_n_s___doc, __pyx_k___doc, sizeof(__pyx_k___doc), 0, 0, 1, 1},
|
|
{&__pyx_n_s__a, __pyx_k__a, sizeof(__pyx_k__a), 0, 0, 1, 1},
|
|
{&__pyx_n_s__add_operators, __pyx_k__add_operators, sizeof(__pyx_k__add_operators), 0, 0, 1, 1},
|
|
{&__pyx_n_s__align, __pyx_k__align, sizeof(__pyx_k__align), 0, 0, 1, 1},
|
|
{&__pyx_n_s__assert, __pyx_k__assert, sizeof(__pyx_k__assert), 0, 0, 1, 1},
|
|
{&__pyx_n_s__b, __pyx_k__b, sizeof(__pyx_k__b), 0, 0, 1, 1},
|
|
{&__pyx_n_s__begin, __pyx_k__begin, sizeof(__pyx_k__begin), 0, 0, 1, 1},
|
|
{&__pyx_n_s__begin_doc, __pyx_k__begin_doc, sizeof(__pyx_k__begin_doc), 0, 0, 1, 1},
|
|
{&__pyx_n_s__begin_provider, __pyx_k__begin_provider, sizeof(__pyx_k__begin_provider), 0, 0, 1, 1},
|
|
{&__pyx_n_s__begin_shell, __pyx_k__begin_shell, sizeof(__pyx_k__begin_shell), 0, 0, 1, 1},
|
|
{&__pyx_n_s__begin_template, __pyx_k__begin_template, sizeof(__pyx_k__begin_template), 0, 0, 1, 1},
|
|
{&__pyx_n_s__call, __pyx_k__call, sizeof(__pyx_k__call), 0, 0, 1, 1},
|
|
{&__pyx_n_s__case, __pyx_k__case, sizeof(__pyx_k__case), 0, 0, 1, 1},
|
|
{&__pyx_n_s__change_includes, __pyx_k__change_includes, sizeof(__pyx_k__change_includes), 0, 0, 1, 1},
|
|
{&__pyx_n_s__check_begin_end, __pyx_k__check_begin_end, sizeof(__pyx_k__check_begin_end), 0, 0, 1, 1},
|
|
{&__pyx_n_s__close, __pyx_k__close, sizeof(__pyx_k__close), 0, 0, 1, 1},
|
|
{&__pyx_n_s__command_line, __pyx_k__command_line, sizeof(__pyx_k__command_line), 0, 0, 1, 1},
|
|
{&__pyx_n_s__compile, __pyx_k__compile, sizeof(__pyx_k__compile), 0, 0, 1, 1},
|
|
{&__pyx_n_s__continue, __pyx_k__continue, sizeof(__pyx_k__continue), 0, 0, 1, 1},
|
|
{&__pyx_n_s__debug, __pyx_k__debug, sizeof(__pyx_k__debug), 0, 0, 1, 1},
|
|
{&__pyx_n_s__defined, __pyx_k__defined, sizeof(__pyx_k__defined), 0, 0, 1, 1},
|
|
{&__pyx_n_s__directives, __pyx_k__directives, sizeof(__pyx_k__directives), 0, 0, 1, 1},
|
|
{&__pyx_n_s__do, __pyx_k__do, sizeof(__pyx_k__do), 0, 0, 1, 1},
|
|
{&__pyx_n_s__do_assert, __pyx_k__do_assert, sizeof(__pyx_k__do_assert), 0, 0, 1, 1},
|
|
{&__pyx_n_s__do_debug, __pyx_k__do_debug, sizeof(__pyx_k__do_debug), 0, 0, 1, 1},
|
|
{&__pyx_n_s__do_openmp, __pyx_k__do_openmp, sizeof(__pyx_k__do_openmp), 0, 0, 1, 1},
|
|
{&__pyx_n_s__do_profile, __pyx_k__do_profile, sizeof(__pyx_k__do_profile), 0, 0, 1, 1},
|
|
{&__pyx_n_s__dowhile, __pyx_k__dowhile, sizeof(__pyx_k__dowhile), 0, 0, 1, 1},
|
|
{&__pyx_n_s__else, __pyx_k__else, sizeof(__pyx_k__else), 0, 0, 1, 1},
|
|
{&__pyx_n_s__elseif, __pyx_k__elseif, sizeof(__pyx_k__elseif), 0, 0, 1, 1},
|
|
{&__pyx_n_s__end, __pyx_k__end, sizeof(__pyx_k__end), 0, 0, 1, 1},
|
|
{&__pyx_n_s__end_doc, __pyx_k__end_doc, sizeof(__pyx_k__end_doc), 0, 0, 1, 1},
|
|
{&__pyx_n_s__end_provider, __pyx_k__end_provider, sizeof(__pyx_k__end_provider), 0, 0, 1, 1},
|
|
{&__pyx_n_s__end_shell, __pyx_k__end_shell, sizeof(__pyx_k__end_shell), 0, 0, 1, 1},
|
|
{&__pyx_n_s__end_template, __pyx_k__end_template, sizeof(__pyx_k__end_template), 0, 0, 1, 1},
|
|
{&__pyx_n_s__enddo, __pyx_k__enddo, sizeof(__pyx_k__enddo), 0, 0, 1, 1},
|
|
{&__pyx_n_s__endif, __pyx_k__endif, sizeof(__pyx_k__endif), 0, 0, 1, 1},
|
|
{&__pyx_n_s__endmodule, __pyx_k__endmodule, sizeof(__pyx_k__endmodule), 0, 0, 1, 1},
|
|
{&__pyx_n_s__endselect, __pyx_k__endselect, sizeof(__pyx_k__endselect), 0, 0, 1, 1},
|
|
{&__pyx_n_s__endswith, __pyx_k__endswith, sizeof(__pyx_k__endswith), 0, 0, 1, 1},
|
|
{&__pyx_n_s__endtype, __pyx_k__endtype, sizeof(__pyx_k__endtype), 0, 0, 1, 1},
|
|
{&__pyx_n_s__enumerate, __pyx_k__enumerate, sizeof(__pyx_k__enumerate), 0, 0, 1, 1},
|
|
{&__pyx_n_s__error, __pyx_k__error, sizeof(__pyx_k__error), 0, 0, 1, 1},
|
|
{&__pyx_n_s__execute_shell, __pyx_k__execute_shell, sizeof(__pyx_k__execute_shell), 0, 0, 1, 1},
|
|
{&__pyx_n_s__execute_templates, __pyx_k__execute_templates, sizeof(__pyx_k__execute_templates), 0, 0, 1, 1},
|
|
{&__pyx_n_s__fail, __pyx_k__fail, sizeof(__pyx_k__fail), 0, 0, 1, 1},
|
|
{&__pyx_n_s__filename, __pyx_k__filename, sizeof(__pyx_k__filename), 0, 0, 1, 1},
|
|
{&__pyx_n_s__filter, __pyx_k__filter, sizeof(__pyx_k__filter), 0, 0, 1, 1},
|
|
{&__pyx_n_s__find, __pyx_k__find, sizeof(__pyx_k__find), 0, 0, 1, 1},
|
|
{&__pyx_n_s__find_subname, __pyx_k__find_subname, sizeof(__pyx_k__find_subname), 0, 0, 1, 1},
|
|
{&__pyx_n_s__form, __pyx_k__form, sizeof(__pyx_k__form), 0, 0, 1, 1},
|
|
{&__pyx_n_s__free, __pyx_k__free, sizeof(__pyx_k__free), 0, 0, 1, 1},
|
|
{&__pyx_n_s__function, __pyx_k__function, sizeof(__pyx_k__function), 0, 0, 1, 1},
|
|
{&__pyx_n_s__get_text, __pyx_k__get_text, sizeof(__pyx_k__get_text), 0, 0, 1, 1},
|
|
{&__pyx_n_s__get_type, __pyx_k__get_type, sizeof(__pyx_k__get_type), 0, 0, 1, 1},
|
|
{&__pyx_n_s__group, __pyx_k__group, sizeof(__pyx_k__group), 0, 0, 1, 1},
|
|
{&__pyx_n_s__i, __pyx_k__i, sizeof(__pyx_k__i), 0, 0, 1, 1},
|
|
{&__pyx_n_s__if, __pyx_k__if, sizeof(__pyx_k__if), 0, 0, 1, 1},
|
|
{&__pyx_n_s__implicit, __pyx_k__implicit, sizeof(__pyx_k__implicit), 0, 0, 1, 1},
|
|
{&__pyx_n_s__include, __pyx_k__include, sizeof(__pyx_k__include), 0, 0, 1, 1},
|
|
{&__pyx_n_s__irp_else, __pyx_k__irp_else, sizeof(__pyx_k__irp_else), 0, 0, 1, 1},
|
|
{&__pyx_n_s__irp_endif, __pyx_k__irp_endif, sizeof(__pyx_k__irp_endif), 0, 0, 1, 1},
|
|
{&__pyx_n_s__irp_id, __pyx_k__irp_id, sizeof(__pyx_k__irp_id), 0, 0, 1, 1},
|
|
{&__pyx_n_s__irp_if, __pyx_k__irp_if, sizeof(__pyx_k__irp_if), 0, 0, 1, 1},
|
|
{&__pyx_n_s__irp_read, __pyx_k__irp_read, sizeof(__pyx_k__irp_read), 0, 0, 1, 1},
|
|
{&__pyx_n_s__irp_write, __pyx_k__irp_write, sizeof(__pyx_k__irp_write), 0, 0, 1, 1},
|
|
{&__pyx_n_s__irpdir, __pyx_k__irpdir, sizeof(__pyx_k__irpdir), 0, 0, 1, 1},
|
|
{&__pyx_n_s__irpf90_files, __pyx_k__irpf90_files, sizeof(__pyx_k__irpf90_files), 0, 0, 1, 1},
|
|
{&__pyx_n_s__irpf90_t, __pyx_k__irpf90_t, sizeof(__pyx_k__irpf90_t), 0, 0, 1, 1},
|
|
{&__pyx_n_s__is_doc, __pyx_k__is_doc, sizeof(__pyx_k__is_doc), 0, 0, 1, 1},
|
|
{&__pyx_n_s__isdigit, __pyx_k__isdigit, sizeof(__pyx_k__isdigit), 0, 0, 1, 1},
|
|
{&__pyx_n_s__join, __pyx_k__join, sizeof(__pyx_k__join), 0, 0, 1, 1},
|
|
{&__pyx_n_s__l, __pyx_k__l, sizeof(__pyx_k__l), 0, 0, 1, 1},
|
|
{&__pyx_n_s__line, __pyx_k__line, sizeof(__pyx_k__line), 0, 0, 1, 1},
|
|
{&__pyx_n_s__lines, __pyx_k__lines, sizeof(__pyx_k__lines), 0, 0, 1, 1},
|
|
{&__pyx_n_s__lower, __pyx_k__lower, sizeof(__pyx_k__lower), 0, 0, 1, 1},
|
|
{&__pyx_n_s__lstrip, __pyx_k__lstrip, sizeof(__pyx_k__lstrip), 0, 0, 1, 1},
|
|
{&__pyx_n_s__map, __pyx_k__map, sizeof(__pyx_k__map), 0, 0, 1, 1},
|
|
{&__pyx_n_s__match, __pyx_k__match, sizeof(__pyx_k__match), 0, 0, 1, 1},
|
|
{&__pyx_n_s__no_dep, __pyx_k__no_dep, sizeof(__pyx_k__no_dep), 0, 0, 1, 1},
|
|
{&__pyx_n_s__number, __pyx_k__number, sizeof(__pyx_k__number), 0, 0, 1, 1},
|
|
{&__pyx_n_s__open, __pyx_k__open, sizeof(__pyx_k__open), 0, 0, 1, 1},
|
|
{&__pyx_n_s__os, __pyx_k__os, sizeof(__pyx_k__os), 0, 0, 1, 1},
|
|
{&__pyx_n_s__parallel_loop, __pyx_k__parallel_loop, sizeof(__pyx_k__parallel_loop), 0, 0, 1, 1},
|
|
{&__pyx_n_s__pop, __pyx_k__pop, sizeof(__pyx_k__pop), 0, 0, 1, 1},
|
|
{&__pyx_n_s__popen, __pyx_k__popen, sizeof(__pyx_k__popen), 0, 0, 1, 1},
|
|
{&__pyx_n_s__preprocessed_text, __pyx_k__preprocessed_text, sizeof(__pyx_k__preprocessed_text), 0, 0, 1, 1},
|
|
{&__pyx_n_s__program, __pyx_k__program, sizeof(__pyx_k__program), 0, 0, 1, 1},
|
|
{&__pyx_n_s__provide, __pyx_k__provide, sizeof(__pyx_k__provide), 0, 0, 1, 1},
|
|
{&__pyx_n_s__r, __pyx_k__r, sizeof(__pyx_k__r), 0, 0, 1, 1},
|
|
{&__pyx_n_s__range, __pyx_k__range, sizeof(__pyx_k__range), 0, 0, 1, 1},
|
|
{&__pyx_n_s__re, __pyx_k__re, sizeof(__pyx_k__re), 0, 0, 1, 1},
|
|
{&__pyx_n_s__re_comment, __pyx_k__re_comment, sizeof(__pyx_k__re_comment), 0, 0, 1, 1},
|
|
{&__pyx_n_s__re_decl, __pyx_k__re_decl, sizeof(__pyx_k__re_decl), 0, 0, 1, 1},
|
|
{&__pyx_n_s__re_elseif, __pyx_k__re_elseif, sizeof(__pyx_k__re_elseif), 0, 0, 1, 1},
|
|
{&__pyx_n_s__re_enddo, __pyx_k__re_enddo, sizeof(__pyx_k__re_enddo), 0, 0, 1, 1},
|
|
{&__pyx_n_s__re_endif, __pyx_k__re_endif, sizeof(__pyx_k__re_endif), 0, 0, 1, 1},
|
|
{&__pyx_n_s__re_endmodule, __pyx_k__re_endmodule, sizeof(__pyx_k__re_endmodule), 0, 0, 1, 1},
|
|
{&__pyx_n_s__re_endselect, __pyx_k__re_endselect, sizeof(__pyx_k__re_endselect), 0, 0, 1, 1},
|
|
{&__pyx_n_s__re_endtype, __pyx_k__re_endtype, sizeof(__pyx_k__re_endtype), 0, 0, 1, 1},
|
|
{&__pyx_n_s__re_test, __pyx_k__re_test, sizeof(__pyx_k__re_test), 0, 0, 1, 1},
|
|
{&__pyx_n_s__read, __pyx_k__read, sizeof(__pyx_k__read), 0, 0, 1, 1},
|
|
{&__pyx_n_s__readlines, __pyx_k__readlines, sizeof(__pyx_k__readlines), 0, 0, 1, 1},
|
|
{&__pyx_n_s__recursive, __pyx_k__recursive, sizeof(__pyx_k__recursive), 0, 0, 1, 1},
|
|
{&__pyx_n_s__regexps, __pyx_k__regexps, sizeof(__pyx_k__regexps), 0, 0, 1, 1},
|
|
{&__pyx_n_s__remove, __pyx_k__remove, sizeof(__pyx_k__remove), 0, 0, 1, 1},
|
|
{&__pyx_n_s__remove_comments, __pyx_k__remove_comments, sizeof(__pyx_k__remove_comments), 0, 0, 1, 1},
|
|
{&__pyx_n_s__remove_continuation, __pyx_k__remove_continuation, sizeof(__pyx_k__remove_continuation), 0, 0, 1, 1},
|
|
{&__pyx_n_s__remove_ifdefs, __pyx_k__remove_ifdefs, sizeof(__pyx_k__remove_ifdefs), 0, 0, 1, 1},
|
|
{&__pyx_n_s__replace, __pyx_k__replace, sizeof(__pyx_k__replace), 0, 0, 1, 1},
|
|
{&__pyx_n_s__return, __pyx_k__return, sizeof(__pyx_k__return), 0, 0, 1, 1},
|
|
{&__pyx_n_s__rstrip, __pyx_k__rstrip, sizeof(__pyx_k__rstrip), 0, 0, 1, 1},
|
|
{&__pyx_n_s__rw, __pyx_k__rw, sizeof(__pyx_k__rw), 0, 0, 1, 1},
|
|
{&__pyx_n_s__save, __pyx_k__save, sizeof(__pyx_k__save), 0, 0, 1, 1},
|
|
{&__pyx_n_s__search, __pyx_k__search, sizeof(__pyx_k__search), 0, 0, 1, 1},
|
|
{&__pyx_n_s__select, __pyx_k__select, sizeof(__pyx_k__select), 0, 0, 1, 1},
|
|
{&__pyx_n_s__selectcase, __pyx_k__selectcase, sizeof(__pyx_k__selectcase), 0, 0, 1, 1},
|
|
{&__pyx_n_s__simple_dict, __pyx_k__simple_dict, sizeof(__pyx_k__simple_dict), 0, 0, 1, 1},
|
|
{&__pyx_n_s__soft_touch, __pyx_k__soft_touch, sizeof(__pyx_k__soft_touch), 0, 0, 1, 1},
|
|
{&__pyx_n_s__split, __pyx_k__split, sizeof(__pyx_k__split), 0, 0, 1, 1},
|
|
{&__pyx_n_s__startswith, __pyx_k__startswith, sizeof(__pyx_k__startswith), 0, 0, 1, 1},
|
|
{&__pyx_n_s__str, __pyx_k__str, sizeof(__pyx_k__str), 0, 0, 1, 1},
|
|
{&__pyx_n_s__strip, __pyx_k__strip, sizeof(__pyx_k__strip), 0, 0, 1, 1},
|
|
{&__pyx_n_s__sub, __pyx_k__sub, sizeof(__pyx_k__sub), 0, 0, 1, 1},
|
|
{&__pyx_n_s__subroutine, __pyx_k__subroutine, sizeof(__pyx_k__subroutine), 0, 0, 1, 1},
|
|
{&__pyx_n_s__subst, __pyx_k__subst, sizeof(__pyx_k__subst), 0, 0, 1, 1},
|
|
{&__pyx_n_s__t, __pyx_k__t, sizeof(__pyx_k__t), 0, 0, 1, 1},
|
|
{&__pyx_n_s__template, __pyx_k__template, sizeof(__pyx_k__template), 0, 0, 1, 1},
|
|
{&__pyx_n_s__text, __pyx_k__text, sizeof(__pyx_k__text), 0, 0, 1, 1},
|
|
{&__pyx_n_s__then, __pyx_k__then, sizeof(__pyx_k__then), 0, 0, 1, 1},
|
|
{&__pyx_n_s__touch, __pyx_k__touch, sizeof(__pyx_k__touch), 0, 0, 1, 1},
|
|
{&__pyx_n_s__use, __pyx_k__use, sizeof(__pyx_k__use), 0, 0, 1, 1},
|
|
{&__pyx_n_s__util, __pyx_k__util, sizeof(__pyx_k__util), 0, 0, 1, 1},
|
|
{&__pyx_n_s__w, __pyx_k__w, sizeof(__pyx_k__w), 0, 0, 1, 1},
|
|
{&__pyx_n_s__warn, __pyx_k__warn, sizeof(__pyx_k__warn), 0, 0, 1, 1},
|
|
{&__pyx_n_s__writ, __pyx_k__writ, sizeof(__pyx_k__writ), 0, 0, 1, 1},
|
|
{&__pyx_n_s__writelines, __pyx_k__writelines, sizeof(__pyx_k__writelines), 0, 0, 1, 1},
|
|
{&__pyx_n_s__x, __pyx_k__x, sizeof(__pyx_k__x), 0, 0, 1, 1},
|
|
{&__pyx_n_s__y, __pyx_k__y, sizeof(__pyx_k__y), 0, 0, 1, 1},
|
|
{&__pyx_n_s__zip, __pyx_k__zip, sizeof(__pyx_k__zip), 0, 0, 1, 1},
|
|
{0, 0, 0, 0, 0, 0, 0}
|
|
};
|
|
static int __Pyx_InitCachedBuiltins(void) {
|
|
__pyx_builtin_map = __Pyx_GetName(__pyx_b, __pyx_n_s__map); if (!__pyx_builtin_map) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 860; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__pyx_builtin_enumerate = __Pyx_GetName(__pyx_b, __pyx_n_s__enumerate); if (!__pyx_builtin_enumerate) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 182; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__pyx_builtin_open = __Pyx_GetName(__pyx_b, __pyx_n_s__open); if (!__pyx_builtin_open) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 201; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__pyx_builtin_zip = __Pyx_GetName(__pyx_b, __pyx_n_s__zip); if (!__pyx_builtin_zip) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 294; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__pyx_builtin_IOError = __Pyx_GetName(__pyx_b, __pyx_n_s__IOError); if (!__pyx_builtin_IOError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 673; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__pyx_builtin_range = __Pyx_GetName(__pyx_b, __pyx_n_s__range); if (!__pyx_builtin_range) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 695; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__pyx_builtin_IndexError = __Pyx_GetName(__pyx_b, __pyx_n_s__IndexError); if (!__pyx_builtin_IndexError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 704; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__pyx_builtin_filter = __Pyx_GetName(__pyx_b, __pyx_n_s__filter); if (!__pyx_builtin_filter) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 765; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
return 0;
|
|
__pyx_L1_error:;
|
|
return -1;
|
|
}
|
|
|
|
static int __Pyx_InitCachedConstants(void) {
|
|
__Pyx_RefNannyDeclarations
|
|
__Pyx_RefNannySetupContext("__Pyx_InitCachedConstants");
|
|
|
|
/* "preprocessed_text.py":101
|
|
* line = line.replace("$IRP_ALIGN",command_line.align)
|
|
* lower_line0 = line.lstrip().lower()
|
|
* lower_line = lower_line0.replace("!"," ! ") # <<<<<<<<<<<<<<
|
|
*
|
|
* # Replacements
|
|
*/
|
|
__pyx_k_tuple_5 = PyTuple_New(2); if (unlikely(!__pyx_k_tuple_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 101; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_k_tuple_5));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_3));
|
|
PyTuple_SET_ITEM(__pyx_k_tuple_5, 0, ((PyObject *)__pyx_kp_s_3));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_3));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_4));
|
|
PyTuple_SET_ITEM(__pyx_k_tuple_5, 1, ((PyObject *)__pyx_kp_s_4));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_4));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_5));
|
|
|
|
/* "preprocessed_text.py":151
|
|
* return result, is_doc
|
|
*
|
|
* if firstword.startswith("case("): # <<<<<<<<<<<<<<
|
|
* return [ Case(i,line,filename) ], is_doc
|
|
*
|
|
*/
|
|
__pyx_k_tuple_11 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_11)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 151; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_k_tuple_11));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_10));
|
|
PyTuple_SET_ITEM(__pyx_k_tuple_11, 0, ((PyObject *)__pyx_kp_s_10));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_10));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_11));
|
|
|
|
/* "preprocessed_text.py":223
|
|
* script = []
|
|
* # Find shell executable
|
|
* buffer = line.text.split('[') # <<<<<<<<<<<<<<
|
|
* if len(buffer) > 2:
|
|
* fail(line,"Too many",'[')
|
|
*/
|
|
__pyx_k_tuple_24 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_24)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 223; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_k_tuple_24));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_23));
|
|
PyTuple_SET_ITEM(__pyx_k_tuple_24, 0, ((PyObject *)__pyx_kp_s_23));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_23));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_24));
|
|
|
|
/* "preprocessed_text.py":229
|
|
* fail(line,"Missing",'[')
|
|
* buffer = buffer[1]
|
|
* buffer = buffer.split(']') # <<<<<<<<<<<<<<
|
|
* if len(buffer) > 2:
|
|
* fail(line,"Too many",']')
|
|
*/
|
|
__pyx_k_tuple_27 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_27)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 229; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_k_tuple_27));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_26));
|
|
PyTuple_SET_ITEM(__pyx_k_tuple_27, 0, ((PyObject *)__pyx_kp_s_26));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_26));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_27));
|
|
|
|
/* "preprocessed_text.py":247
|
|
*
|
|
* def get_variables(line):
|
|
* buffer = line.text.split('[',1) # <<<<<<<<<<<<<<
|
|
* if len(buffer)<2:
|
|
* fail(line,"Subst","Syntax error")
|
|
*/
|
|
__pyx_k_tuple_31 = PyTuple_New(2); if (unlikely(!__pyx_k_tuple_31)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 247; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_k_tuple_31));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_23));
|
|
PyTuple_SET_ITEM(__pyx_k_tuple_31, 0, ((PyObject *)__pyx_kp_s_23));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_23));
|
|
__Pyx_INCREF(__pyx_int_1);
|
|
PyTuple_SET_ITEM(__pyx_k_tuple_31, 1, __pyx_int_1);
|
|
__Pyx_GIVEREF(__pyx_int_1);
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_31));
|
|
|
|
/* "preprocessed_text.py":250
|
|
* if len(buffer)<2:
|
|
* fail(line,"Subst","Syntax error")
|
|
* buffer = buffer[1].replace(']','') # <<<<<<<<<<<<<<
|
|
* buffer = buffer.split(',')
|
|
* return map(lambda x: '$%s'%(x.strip()), buffer)
|
|
*/
|
|
__pyx_k_tuple_34 = PyTuple_New(2); if (unlikely(!__pyx_k_tuple_34)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 250; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_k_tuple_34));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_26));
|
|
PyTuple_SET_ITEM(__pyx_k_tuple_34, 0, ((PyObject *)__pyx_kp_s_26));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_26));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_33));
|
|
PyTuple_SET_ITEM(__pyx_k_tuple_34, 1, ((PyObject *)__pyx_kp_s_33));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_33));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_34));
|
|
|
|
/* "preprocessed_text.py":251
|
|
* fail(line,"Subst","Syntax error")
|
|
* buffer = buffer[1].replace(']','')
|
|
* buffer = buffer.split(',') # <<<<<<<<<<<<<<
|
|
* return map(lambda x: '$%s'%(x.strip()), buffer)
|
|
*
|
|
*/
|
|
__pyx_k_tuple_36 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_36)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 251; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_k_tuple_36));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_35));
|
|
PyTuple_SET_ITEM(__pyx_k_tuple_36, 0, ((PyObject *)__pyx_kp_s_35));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_35));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_36));
|
|
|
|
/* "preprocessed_text.py":289
|
|
* if subst[-2:] == ';;':
|
|
* subst = subst[:-2]
|
|
* for s in subst.split(';;'): # <<<<<<<<<<<<<<
|
|
* buffer = map(lambda x: x.strip(), s.split(';'))
|
|
* if len(buffer) != len(variables):
|
|
*/
|
|
__pyx_k_tuple_45 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_45)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 289; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_k_tuple_45));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_44));
|
|
PyTuple_SET_ITEM(__pyx_k_tuple_45, 0, ((PyObject *)__pyx_kp_s_44));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_44));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_45));
|
|
|
|
/* "preprocessed_text.py":290
|
|
* subst = subst[:-2]
|
|
* for s in subst.split(';;'):
|
|
* buffer = map(lambda x: x.strip(), s.split(';')) # <<<<<<<<<<<<<<
|
|
* if len(buffer) != len(variables):
|
|
* fail(line,"subst","%d variables defined, and %d substitutions"%(len(variables),len(buffer)))
|
|
*/
|
|
__pyx_k_tuple_47 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_47)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 290; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_k_tuple_47));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_46));
|
|
PyTuple_SET_ITEM(__pyx_k_tuple_47, 0, ((PyObject *)__pyx_kp_s_46));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_46));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_47));
|
|
|
|
/* "preprocessed_text.py":330
|
|
* assert isinstance(text[0],Line)
|
|
*
|
|
* re2 = re.compile(r"^\s*[!#]") # <<<<<<<<<<<<<<
|
|
* re3 = re.compile(r"^\s*[^ 0-9]+")
|
|
* for line in text:
|
|
*/
|
|
__pyx_k_tuple_59 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_59)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 330; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_k_tuple_59));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_58));
|
|
PyTuple_SET_ITEM(__pyx_k_tuple_59, 0, ((PyObject *)__pyx_kp_s_58));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_58));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_59));
|
|
|
|
/* "preprocessed_text.py":331
|
|
*
|
|
* re2 = re.compile(r"^\s*[!#]")
|
|
* re3 = re.compile(r"^\s*[^ 0-9]+") # <<<<<<<<<<<<<<
|
|
* for line in text:
|
|
* if type(line) in [ Empty_line, Doc, Openmp, Directive ]:
|
|
*/
|
|
__pyx_k_tuple_61 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_61)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 331; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_k_tuple_61));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_60));
|
|
PyTuple_SET_ITEM(__pyx_k_tuple_61, 0, ((PyObject *)__pyx_kp_s_60));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_60));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_61));
|
|
|
|
/* "preprocessed_text.py":503
|
|
* result = []
|
|
* if match is not None:
|
|
* matches = [ match.group(1).strip(), match.group(3).strip() ] # <<<<<<<<<<<<<<
|
|
* for m in matches:
|
|
* if not(m.isdigit() or ("'" in m) or (m == "")):
|
|
*/
|
|
__pyx_k_tuple_84 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_84)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 503; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_k_tuple_84));
|
|
__Pyx_INCREF(__pyx_int_1);
|
|
PyTuple_SET_ITEM(__pyx_k_tuple_84, 0, __pyx_int_1);
|
|
__Pyx_GIVEREF(__pyx_int_1);
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_84));
|
|
__pyx_k_tuple_85 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_85)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 503; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_k_tuple_85));
|
|
__Pyx_INCREF(__pyx_int_3);
|
|
PyTuple_SET_ITEM(__pyx_k_tuple_85, 0, __pyx_int_3);
|
|
__Pyx_GIVEREF(__pyx_int_3);
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_85));
|
|
|
|
/* "preprocessed_text.py":513
|
|
* assert type(line) == Assert
|
|
* if command_line.do_assert:
|
|
* condition = "(%s"%(line.text.split('(',1)[1]) # <<<<<<<<<<<<<<
|
|
* if condition == "":
|
|
* error.fail(line,"Error in Assert statement")
|
|
*/
|
|
__pyx_k_tuple_91 = PyTuple_New(2); if (unlikely(!__pyx_k_tuple_91)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 513; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_k_tuple_91));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_90));
|
|
PyTuple_SET_ITEM(__pyx_k_tuple_91, 0, ((PyObject *)__pyx_kp_s_90));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_90));
|
|
__Pyx_INCREF(__pyx_int_1);
|
|
PyTuple_SET_ITEM(__pyx_k_tuple_91, 1, __pyx_int_1);
|
|
__Pyx_GIVEREF(__pyx_int_1);
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_91));
|
|
|
|
/* "preprocessed_text.py":516
|
|
* if condition == "":
|
|
* error.fail(line,"Error in Assert statement")
|
|
* condition_str = condition.replace("'","''") # <<<<<<<<<<<<<<
|
|
* i = line.i
|
|
* f = line.filename
|
|
*/
|
|
__pyx_k_tuple_94 = PyTuple_New(2); if (unlikely(!__pyx_k_tuple_94)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 516; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_k_tuple_94));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_86));
|
|
PyTuple_SET_ITEM(__pyx_k_tuple_94, 0, ((PyObject *)__pyx_kp_s_86));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_86));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_93));
|
|
PyTuple_SET_ITEM(__pyx_k_tuple_94, 1, ((PyObject *)__pyx_kp_s_93));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_93));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_94));
|
|
|
|
/* "preprocessed_text.py":554
|
|
* def process_begin_provider(line):
|
|
* assert type(line) == Begin_provider
|
|
* buffer = line.lower.replace('['," ") # <<<<<<<<<<<<<<
|
|
* buffer = buffer.replace(']',"")
|
|
* buffer = buffer.split(',')
|
|
*/
|
|
__pyx_k_tuple_103 = PyTuple_New(2); if (unlikely(!__pyx_k_tuple_103)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 554; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_k_tuple_103));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_23));
|
|
PyTuple_SET_ITEM(__pyx_k_tuple_103, 0, ((PyObject *)__pyx_kp_s_23));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_23));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_7));
|
|
PyTuple_SET_ITEM(__pyx_k_tuple_103, 1, ((PyObject *)__pyx_kp_s_7));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_7));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_103));
|
|
|
|
/* "preprocessed_text.py":555
|
|
* assert type(line) == Begin_provider
|
|
* buffer = line.lower.replace('['," ")
|
|
* buffer = buffer.replace(']',"") # <<<<<<<<<<<<<<
|
|
* buffer = buffer.split(',')
|
|
* if len(buffer) < 2:
|
|
*/
|
|
__pyx_k_tuple_104 = PyTuple_New(2); if (unlikely(!__pyx_k_tuple_104)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 555; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_k_tuple_104));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_26));
|
|
PyTuple_SET_ITEM(__pyx_k_tuple_104, 0, ((PyObject *)__pyx_kp_s_26));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_26));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_33));
|
|
PyTuple_SET_ITEM(__pyx_k_tuple_104, 1, ((PyObject *)__pyx_kp_s_33));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_33));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_104));
|
|
|
|
/* "preprocessed_text.py":556
|
|
* buffer = line.lower.replace('['," ")
|
|
* buffer = buffer.replace(']',"")
|
|
* buffer = buffer.split(',') # <<<<<<<<<<<<<<
|
|
* if len(buffer) < 2:
|
|
* error.fail(line,"Error in Begin_provider statement")
|
|
*/
|
|
__pyx_k_tuple_105 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_105)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 556; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_k_tuple_105));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_35));
|
|
PyTuple_SET_ITEM(__pyx_k_tuple_105, 0, ((PyObject *)__pyx_kp_s_35));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_35));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_105));
|
|
|
|
/* "preprocessed_text.py":573
|
|
* def process_cont_provider(line):
|
|
* assert type(line) == Cont_provider
|
|
* buffer = line.lower.replace('['," ") # <<<<<<<<<<<<<<
|
|
* buffer = buffer.replace(']',"")
|
|
* buffer = buffer.split(',')
|
|
*/
|
|
__pyx_k_tuple_109 = PyTuple_New(2); if (unlikely(!__pyx_k_tuple_109)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 573; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_k_tuple_109));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_23));
|
|
PyTuple_SET_ITEM(__pyx_k_tuple_109, 0, ((PyObject *)__pyx_kp_s_23));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_23));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_7));
|
|
PyTuple_SET_ITEM(__pyx_k_tuple_109, 1, ((PyObject *)__pyx_kp_s_7));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_7));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_109));
|
|
|
|
/* "preprocessed_text.py":574
|
|
* assert type(line) == Cont_provider
|
|
* buffer = line.lower.replace('['," ")
|
|
* buffer = buffer.replace(']',"") # <<<<<<<<<<<<<<
|
|
* buffer = buffer.split(',')
|
|
* if len(buffer) < 2:
|
|
*/
|
|
__pyx_k_tuple_110 = PyTuple_New(2); if (unlikely(!__pyx_k_tuple_110)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 574; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_k_tuple_110));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_26));
|
|
PyTuple_SET_ITEM(__pyx_k_tuple_110, 0, ((PyObject *)__pyx_kp_s_26));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_26));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_33));
|
|
PyTuple_SET_ITEM(__pyx_k_tuple_110, 1, ((PyObject *)__pyx_kp_s_33));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_33));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_110));
|
|
|
|
/* "preprocessed_text.py":575
|
|
* buffer = line.lower.replace('['," ")
|
|
* buffer = buffer.replace(']',"")
|
|
* buffer = buffer.split(',') # <<<<<<<<<<<<<<
|
|
* if len(buffer) < 2:
|
|
* error.fail(line,"Error in Cont_provider statement")
|
|
*/
|
|
__pyx_k_tuple_111 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_111)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 575; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_k_tuple_111));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_35));
|
|
PyTuple_SET_ITEM(__pyx_k_tuple_111, 0, ((PyObject *)__pyx_kp_s_35));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_35));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_111));
|
|
|
|
/* "preprocessed_text.py":663
|
|
* for line in text:
|
|
* if type(line) == Include:
|
|
* txt = line.text.replace('"',"'").split("'") # <<<<<<<<<<<<<<
|
|
* if len(txt) != 3:
|
|
* print txt
|
|
*/
|
|
__pyx_k_tuple_125 = PyTuple_New(2); if (unlikely(!__pyx_k_tuple_125)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 663; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_k_tuple_125));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_124));
|
|
PyTuple_SET_ITEM(__pyx_k_tuple_125, 0, ((PyObject *)__pyx_kp_s_124));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_124));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_86));
|
|
PyTuple_SET_ITEM(__pyx_k_tuple_125, 1, ((PyObject *)__pyx_kp_s_86));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_86));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_125));
|
|
__pyx_k_tuple_126 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_126)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 663; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_k_tuple_126));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_86));
|
|
PyTuple_SET_ITEM(__pyx_k_tuple_126, 0, ((PyObject *)__pyx_kp_s_86));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_86));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_126));
|
|
|
|
/* "preprocessed_text.py":701
|
|
* try:
|
|
* if buffer[1].isdigit():
|
|
* number = buffer.pop(1) # <<<<<<<<<<<<<<
|
|
* change_matching_enddo(i,number)
|
|
* line.text = " ".join(buffer)
|
|
*/
|
|
__pyx_k_tuple_131 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_131)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 701; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_k_tuple_131));
|
|
__Pyx_INCREF(__pyx_int_1);
|
|
PyTuple_SET_ITEM(__pyx_k_tuple_131, 0, __pyx_int_1);
|
|
__Pyx_GIVEREF(__pyx_int_1);
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_131));
|
|
|
|
/* "preprocessed_text.py":724
|
|
* for line in text:
|
|
* if type(line) == If:
|
|
* if line.lower.endswith("then"): # <<<<<<<<<<<<<<
|
|
* result.append(line)
|
|
* else:
|
|
*/
|
|
__pyx_k_tuple_132 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_132)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 724; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_k_tuple_132));
|
|
__Pyx_INCREF(((PyObject *)__pyx_n_s__then));
|
|
PyTuple_SET_ITEM(__pyx_k_tuple_132, 0, ((PyObject *)__pyx_n_s__then));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_n_s__then));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_132));
|
|
|
|
/* "preprocessed_text.py":728
|
|
* else:
|
|
* buffer = line.text
|
|
* begin = buffer.find('(') # <<<<<<<<<<<<<<
|
|
* if begin < 0:
|
|
* error.fail(line,"Error in if statement")
|
|
*/
|
|
__pyx_k_tuple_133 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_133)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 728; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_k_tuple_133));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_90));
|
|
PyTuple_SET_ITEM(__pyx_k_tuple_133, 0, ((PyObject *)__pyx_kp_s_90));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_90));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_133));
|
|
|
|
/* "preprocessed_text.py":34
|
|
*
|
|
* # Local regular expressions
|
|
* re_endif = re.compile("end\s+if") # <<<<<<<<<<<<<<
|
|
* re_elseif = re.compile("else\s+if")
|
|
* re_enddo = re.compile("end\s+do")
|
|
*/
|
|
__pyx_k_tuple_149 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_149)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 34; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_k_tuple_149));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_148));
|
|
PyTuple_SET_ITEM(__pyx_k_tuple_149, 0, ((PyObject *)__pyx_kp_s_148));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_148));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_149));
|
|
|
|
/* "preprocessed_text.py":35
|
|
* # Local regular expressions
|
|
* re_endif = re.compile("end\s+if")
|
|
* re_elseif = re.compile("else\s+if") # <<<<<<<<<<<<<<
|
|
* re_enddo = re.compile("end\s+do")
|
|
* re_endtype= re.compile("end\s+type")
|
|
*/
|
|
__pyx_k_tuple_151 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_151)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 35; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_k_tuple_151));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_150));
|
|
PyTuple_SET_ITEM(__pyx_k_tuple_151, 0, ((PyObject *)__pyx_kp_s_150));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_150));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_151));
|
|
|
|
/* "preprocessed_text.py":36
|
|
* re_endif = re.compile("end\s+if")
|
|
* re_elseif = re.compile("else\s+if")
|
|
* re_enddo = re.compile("end\s+do") # <<<<<<<<<<<<<<
|
|
* re_endtype= re.compile("end\s+type")
|
|
* re_endmodule = re.compile("end\s+module")
|
|
*/
|
|
__pyx_k_tuple_153 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_153)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_k_tuple_153));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_152));
|
|
PyTuple_SET_ITEM(__pyx_k_tuple_153, 0, ((PyObject *)__pyx_kp_s_152));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_152));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_153));
|
|
|
|
/* "preprocessed_text.py":37
|
|
* re_elseif = re.compile("else\s+if")
|
|
* re_enddo = re.compile("end\s+do")
|
|
* re_endtype= re.compile("end\s+type") # <<<<<<<<<<<<<<
|
|
* re_endmodule = re.compile("end\s+module")
|
|
* re_endselect = re.compile("end\s+select")
|
|
*/
|
|
__pyx_k_tuple_155 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_155)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 37; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_k_tuple_155));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_154));
|
|
PyTuple_SET_ITEM(__pyx_k_tuple_155, 0, ((PyObject *)__pyx_kp_s_154));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_154));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_155));
|
|
|
|
/* "preprocessed_text.py":38
|
|
* re_enddo = re.compile("end\s+do")
|
|
* re_endtype= re.compile("end\s+type")
|
|
* re_endmodule = re.compile("end\s+module") # <<<<<<<<<<<<<<
|
|
* re_endselect = re.compile("end\s+select")
|
|
*
|
|
*/
|
|
__pyx_k_tuple_157 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_157)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 38; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_k_tuple_157));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_156));
|
|
PyTuple_SET_ITEM(__pyx_k_tuple_157, 0, ((PyObject *)__pyx_kp_s_156));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_156));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_157));
|
|
|
|
/* "preprocessed_text.py":39
|
|
* re_endtype= re.compile("end\s+type")
|
|
* re_endmodule = re.compile("end\s+module")
|
|
* re_endselect = re.compile("end\s+select") # <<<<<<<<<<<<<<
|
|
*
|
|
* # Local variables
|
|
*/
|
|
__pyx_k_tuple_159 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_159)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 39; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_k_tuple_159));
|
|
__Pyx_INCREF(((PyObject *)__pyx_kp_s_158));
|
|
PyTuple_SET_ITEM(__pyx_k_tuple_159, 0, ((PyObject *)__pyx_kp_s_158));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_158));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_159));
|
|
__Pyx_RefNannyFinishContext();
|
|
return 0;
|
|
__pyx_L1_error:;
|
|
__Pyx_RefNannyFinishContext();
|
|
return -1;
|
|
}
|
|
|
|
static int __Pyx_InitGlobals(void) {
|
|
if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
|
|
__pyx_int_0 = PyInt_FromLong(0); if (unlikely(!__pyx_int_0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
|
|
__pyx_int_1 = PyInt_FromLong(1); if (unlikely(!__pyx_int_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
|
|
__pyx_int_3 = PyInt_FromLong(3); if (unlikely(!__pyx_int_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
|
|
return 0;
|
|
__pyx_L1_error:;
|
|
return -1;
|
|
}
|
|
|
|
#if PY_MAJOR_VERSION < 3
|
|
PyMODINIT_FUNC initpreprocessed_text(void); /*proto*/
|
|
PyMODINIT_FUNC initpreprocessed_text(void)
|
|
#else
|
|
PyMODINIT_FUNC PyInit_preprocessed_text(void); /*proto*/
|
|
PyMODINIT_FUNC PyInit_preprocessed_text(void)
|
|
#endif
|
|
{
|
|
PyObject *__pyx_t_1 = NULL;
|
|
PyObject *__pyx_t_2 = NULL;
|
|
PyObject *__pyx_t_3 = NULL;
|
|
PyObject *__pyx_t_4 = NULL;
|
|
PyObject *__pyx_t_5 = NULL;
|
|
int __pyx_t_6;
|
|
__Pyx_RefNannyDeclarations
|
|
#if CYTHON_REFNANNY
|
|
__Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny");
|
|
if (!__Pyx_RefNanny) {
|
|
PyErr_Clear();
|
|
__Pyx_RefNanny = __Pyx_RefNannyImportAPI("Cython.Runtime.refnanny");
|
|
if (!__Pyx_RefNanny)
|
|
Py_FatalError("failed to import 'refnanny' module");
|
|
}
|
|
#endif
|
|
__Pyx_RefNannySetupContext("PyMODINIT_FUNC PyInit_preprocessed_text(void)");
|
|
if ( __Pyx_check_binary_version() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_bytes)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
#ifdef __pyx_binding_PyCFunctionType_USED
|
|
if (__pyx_binding_PyCFunctionType_init() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
#endif
|
|
/*--- Library function declarations ---*/
|
|
/*--- Threads initialization code ---*/
|
|
#if defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS
|
|
#ifdef WITH_THREAD /* Python build with threading support? */
|
|
PyEval_InitThreads();
|
|
#endif
|
|
#endif
|
|
/*--- Module creation code ---*/
|
|
#if PY_MAJOR_VERSION < 3
|
|
__pyx_m = Py_InitModule4(__Pyx_NAMESTR("preprocessed_text"), __pyx_methods, 0, 0, PYTHON_API_VERSION);
|
|
#else
|
|
__pyx_m = PyModule_Create(&__pyx_moduledef);
|
|
#endif
|
|
if (!__pyx_m) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
|
|
#if PY_MAJOR_VERSION < 3
|
|
Py_INCREF(__pyx_m);
|
|
#endif
|
|
__pyx_b = PyImport_AddModule(__Pyx_NAMESTR(__Pyx_BUILTIN_MODULE_NAME));
|
|
if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
|
|
if (__Pyx_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
|
|
/*--- Initialize various global constants etc. ---*/
|
|
if (unlikely(__Pyx_InitGlobals() < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
if (__pyx_module_is_main_preprocessed_text) {
|
|
if (__Pyx_SetAttrString(__pyx_m, "__name__", __pyx_n_s____main__) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
|
|
}
|
|
/*--- Builtin init code ---*/
|
|
if (unlikely(__Pyx_InitCachedBuiltins() < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
/*--- Constants init code ---*/
|
|
if (unlikely(__Pyx_InitCachedConstants() < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
/*--- Global init code ---*/
|
|
/*--- Variable export code ---*/
|
|
/*--- Function export code ---*/
|
|
/*--- Type init code ---*/
|
|
if (PyType_Ready(&__pyx_type_17preprocessed_text___pyx_scope_struct__execute_templates) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 242; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__pyx_ptype_17preprocessed_text___pyx_scope_struct__execute_templates = &__pyx_type_17preprocessed_text___pyx_scope_struct__execute_templates;
|
|
if (PyType_Ready(&__pyx_type_17preprocessed_text___pyx_scope_struct_1_irp_simple_statements) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 454; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__pyx_ptype_17preprocessed_text___pyx_scope_struct_1_irp_simple_statements = &__pyx_type_17preprocessed_text___pyx_scope_struct_1_irp_simple_statements;
|
|
if (PyType_Ready(&__pyx_type_17preprocessed_text___pyx_scope_struct_2_process_old_style_do) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 680; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__pyx_ptype_17preprocessed_text___pyx_scope_struct_2_process_old_style_do = &__pyx_type_17preprocessed_text___pyx_scope_struct_2_process_old_style_do;
|
|
if (PyType_Ready(&__pyx_type_17preprocessed_text___pyx_scope_struct_3_check_begin_end) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 759; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__pyx_ptype_17preprocessed_text___pyx_scope_struct_3_check_begin_end = &__pyx_type_17preprocessed_text___pyx_scope_struct_3_check_begin_end;
|
|
/*--- Type import code ---*/
|
|
/*--- Variable import code ---*/
|
|
/*--- Function import code ---*/
|
|
/*--- Execution code ---*/
|
|
|
|
/* "preprocessed_text.py":27
|
|
* # scemama@irsamc.ups-tlse.fr
|
|
*
|
|
* from irpf90_t import * # <<<<<<<<<<<<<<
|
|
* from regexps import *
|
|
* import error
|
|
*/
|
|
__pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 27; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(((PyObject *)__pyx_n_s_147));
|
|
PyList_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_n_s_147));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_n_s_147));
|
|
__pyx_t_2 = __Pyx_Import(((PyObject *)__pyx_n_s__irpf90_t), ((PyObject *)__pyx_t_1), -1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 27; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
if (__pyx_import_star(__pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 27; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":28
|
|
*
|
|
* from irpf90_t import *
|
|
* from regexps import * # <<<<<<<<<<<<<<
|
|
* import error
|
|
* from command_line import command_line
|
|
*/
|
|
__pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 28; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
|
__Pyx_INCREF(((PyObject *)__pyx_n_s_147));
|
|
PyList_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_n_s_147));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_n_s_147));
|
|
__pyx_t_1 = __Pyx_Import(((PyObject *)__pyx_n_s__regexps), ((PyObject *)__pyx_t_2), -1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 28; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
|
if (__pyx_import_star(__pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 28; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":29
|
|
* from irpf90_t import *
|
|
* from regexps import *
|
|
* import error # <<<<<<<<<<<<<<
|
|
* from command_line import command_line
|
|
* from util import *
|
|
*/
|
|
__pyx_t_1 = __Pyx_Import(((PyObject *)__pyx_n_s__error), 0, -1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 29; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__error, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 29; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":30
|
|
* from regexps import *
|
|
* import error
|
|
* from command_line import command_line # <<<<<<<<<<<<<<
|
|
* from util import *
|
|
*
|
|
*/
|
|
__pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 30; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
__Pyx_INCREF(((PyObject *)__pyx_n_s__command_line));
|
|
PyList_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_n_s__command_line));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_n_s__command_line));
|
|
__pyx_t_2 = __Pyx_Import(((PyObject *)__pyx_n_s__command_line), ((PyObject *)__pyx_t_1), -1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 30; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
__pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__command_line); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 30; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__command_line, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 30; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":31
|
|
* import error
|
|
* from command_line import command_line
|
|
* from util import * # <<<<<<<<<<<<<<
|
|
*
|
|
* # Local regular expressions
|
|
*/
|
|
__pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
|
|
__Pyx_INCREF(((PyObject *)__pyx_n_s_147));
|
|
PyList_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_n_s_147));
|
|
__Pyx_GIVEREF(((PyObject *)__pyx_n_s_147));
|
|
__pyx_t_1 = __Pyx_Import(((PyObject *)__pyx_n_s__util), ((PyObject *)__pyx_t_2), -1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
|
|
if (__pyx_import_star(__pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":34
|
|
*
|
|
* # Local regular expressions
|
|
* re_endif = re.compile("end\s+if") # <<<<<<<<<<<<<<
|
|
* re_elseif = re.compile("else\s+if")
|
|
* re_enddo = re.compile("end\s+do")
|
|
*/
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__re); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 34; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_n_s__compile); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 34; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_1 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_k_tuple_149), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 34; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__re_endif, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 34; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":35
|
|
* # Local regular expressions
|
|
* re_endif = re.compile("end\s+if")
|
|
* re_elseif = re.compile("else\s+if") # <<<<<<<<<<<<<<
|
|
* re_enddo = re.compile("end\s+do")
|
|
* re_endtype= re.compile("end\s+type")
|
|
*/
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__re); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 35; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_n_s__compile); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 35; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_1 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_k_tuple_151), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 35; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__re_elseif, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 35; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":36
|
|
* re_endif = re.compile("end\s+if")
|
|
* re_elseif = re.compile("else\s+if")
|
|
* re_enddo = re.compile("end\s+do") # <<<<<<<<<<<<<<
|
|
* re_endtype= re.compile("end\s+type")
|
|
* re_endmodule = re.compile("end\s+module")
|
|
*/
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__re); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_n_s__compile); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_1 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_k_tuple_153), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__re_enddo, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":37
|
|
* re_elseif = re.compile("else\s+if")
|
|
* re_enddo = re.compile("end\s+do")
|
|
* re_endtype= re.compile("end\s+type") # <<<<<<<<<<<<<<
|
|
* re_endmodule = re.compile("end\s+module")
|
|
* re_endselect = re.compile("end\s+select")
|
|
*/
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__re); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 37; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_n_s__compile); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 37; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_1 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_k_tuple_155), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 37; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__re_endtype, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 37; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":38
|
|
* re_enddo = re.compile("end\s+do")
|
|
* re_endtype= re.compile("end\s+type")
|
|
* re_endmodule = re.compile("end\s+module") # <<<<<<<<<<<<<<
|
|
* re_endselect = re.compile("end\s+select")
|
|
*
|
|
*/
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__re); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 38; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_n_s__compile); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 38; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_1 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_k_tuple_157), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 38; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__re_endmodule, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 38; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":39
|
|
* re_endtype= re.compile("end\s+type")
|
|
* re_endmodule = re.compile("end\s+module")
|
|
* re_endselect = re.compile("end\s+select") # <<<<<<<<<<<<<<
|
|
*
|
|
* # Local variables
|
|
*/
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__re); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 39; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_n_s__compile); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 39; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__pyx_t_1 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_k_tuple_159), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 39; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__re_endselect, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 39; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":42
|
|
*
|
|
* # Local variables
|
|
* Free_form = 0 # <<<<<<<<<<<<<<
|
|
* Fixed_form = 1
|
|
*
|
|
*/
|
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__Free_form, __pyx_int_0) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 42; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
|
/* "preprocessed_text.py":43
|
|
* # Local variables
|
|
* Free_form = 0
|
|
* Fixed_form = 1 # <<<<<<<<<<<<<<
|
|
*
|
|
*
|
|
*/
|
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__Fixed_form, __pyx_int_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 43; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
|
|
/* "preprocessed_text.py":48
|
|
* ######################################################################
|
|
* # Dictionary of simple statements
|
|
* simple_dict = { # <<<<<<<<<<<<<<
|
|
* "program": Program ,
|
|
* "subroutine": Subroutine ,
|
|
*/
|
|
__pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
|
|
|
|
/* "preprocessed_text.py":49
|
|
* # Dictionary of simple statements
|
|
* simple_dict = {
|
|
* "program": Program , # <<<<<<<<<<<<<<
|
|
* "subroutine": Subroutine ,
|
|
* "begin_shell": Begin_shell ,
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Program); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 49; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_n_s__program), __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":50
|
|
* simple_dict = {
|
|
* "program": Program ,
|
|
* "subroutine": Subroutine , # <<<<<<<<<<<<<<
|
|
* "begin_shell": Begin_shell ,
|
|
* "end_shell": End_shell ,
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Subroutine); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 50; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_n_s__subroutine), __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":51
|
|
* "program": Program ,
|
|
* "subroutine": Subroutine ,
|
|
* "begin_shell": Begin_shell , # <<<<<<<<<<<<<<
|
|
* "end_shell": End_shell ,
|
|
* "begin_template": Begin_template ,
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Begin_shell); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 51; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_n_s__begin_shell), __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":52
|
|
* "subroutine": Subroutine ,
|
|
* "begin_shell": Begin_shell ,
|
|
* "end_shell": End_shell , # <<<<<<<<<<<<<<
|
|
* "begin_template": Begin_template ,
|
|
* "end_template": End_template ,
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__End_shell); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 52; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_n_s__end_shell), __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":53
|
|
* "begin_shell": Begin_shell ,
|
|
* "end_shell": End_shell ,
|
|
* "begin_template": Begin_template , # <<<<<<<<<<<<<<
|
|
* "end_template": End_template ,
|
|
* "subst": Subst ,
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Begin_template); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 53; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_n_s__begin_template), __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":54
|
|
* "end_shell": End_shell ,
|
|
* "begin_template": Begin_template ,
|
|
* "end_template": End_template , # <<<<<<<<<<<<<<
|
|
* "subst": Subst ,
|
|
* "end_doc": End_doc ,
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__End_template); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 54; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_n_s__end_template), __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":55
|
|
* "begin_template": Begin_template ,
|
|
* "end_template": End_template ,
|
|
* "subst": Subst , # <<<<<<<<<<<<<<
|
|
* "end_doc": End_doc ,
|
|
* "begin_provider": Begin_provider ,
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Subst); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 55; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_n_s__subst), __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":56
|
|
* "end_template": End_template ,
|
|
* "subst": Subst ,
|
|
* "end_doc": End_doc , # <<<<<<<<<<<<<<
|
|
* "begin_provider": Begin_provider ,
|
|
* "&begin_provider": Cont_provider ,
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__End_doc); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 56; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_n_s__end_doc), __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":57
|
|
* "subst": Subst ,
|
|
* "end_doc": End_doc ,
|
|
* "begin_provider": Begin_provider , # <<<<<<<<<<<<<<
|
|
* "&begin_provider": Cont_provider ,
|
|
* "end_provider": End_provider ,
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Begin_provider); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 57; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_n_s__begin_provider), __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":58
|
|
* "end_doc": End_doc ,
|
|
* "begin_provider": Begin_provider ,
|
|
* "&begin_provider": Cont_provider , # <<<<<<<<<<<<<<
|
|
* "end_provider": End_provider ,
|
|
* "assert": Assert ,
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Cont_provider); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 58; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_kp_s_160), __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":59
|
|
* "begin_provider": Begin_provider ,
|
|
* "&begin_provider": Cont_provider ,
|
|
* "end_provider": End_provider , # <<<<<<<<<<<<<<
|
|
* "assert": Assert ,
|
|
* "touch": Touch ,
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__End_provider); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 59; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_n_s__end_provider), __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":60
|
|
* "&begin_provider": Cont_provider ,
|
|
* "end_provider": End_provider ,
|
|
* "assert": Assert , # <<<<<<<<<<<<<<
|
|
* "touch": Touch ,
|
|
* "soft_touch": SoftTouch ,
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Assert); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 60; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_n_s__assert), __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":61
|
|
* "end_provider": End_provider ,
|
|
* "assert": Assert ,
|
|
* "touch": Touch , # <<<<<<<<<<<<<<
|
|
* "soft_touch": SoftTouch ,
|
|
* "provide": Provide ,
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Touch); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 61; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_n_s__touch), __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":62
|
|
* "assert": Assert ,
|
|
* "touch": Touch ,
|
|
* "soft_touch": SoftTouch , # <<<<<<<<<<<<<<
|
|
* "provide": Provide ,
|
|
* "no_dep": NoDep ,
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__SoftTouch); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 62; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_n_s__soft_touch), __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":63
|
|
* "touch": Touch ,
|
|
* "soft_touch": SoftTouch ,
|
|
* "provide": Provide , # <<<<<<<<<<<<<<
|
|
* "no_dep": NoDep ,
|
|
* "free": Free ,
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Provide); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 63; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_n_s__provide), __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":64
|
|
* "soft_touch": SoftTouch ,
|
|
* "provide": Provide ,
|
|
* "no_dep": NoDep , # <<<<<<<<<<<<<<
|
|
* "free": Free ,
|
|
* "irp_if": Irp_If ,
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__NoDep); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 64; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_n_s__no_dep), __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":65
|
|
* "provide": Provide ,
|
|
* "no_dep": NoDep ,
|
|
* "free": Free , # <<<<<<<<<<<<<<
|
|
* "irp_if": Irp_If ,
|
|
* "irp_else": Irp_Else ,
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Free); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 65; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_n_s__free), __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":66
|
|
* "no_dep": NoDep ,
|
|
* "free": Free ,
|
|
* "irp_if": Irp_If , # <<<<<<<<<<<<<<
|
|
* "irp_else": Irp_Else ,
|
|
* "irp_endif": Irp_Endif ,
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Irp_If); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 66; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_n_s__irp_if), __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":67
|
|
* "free": Free ,
|
|
* "irp_if": Irp_If ,
|
|
* "irp_else": Irp_Else , # <<<<<<<<<<<<<<
|
|
* "irp_endif": Irp_Endif ,
|
|
* "irp_read": Irp_read ,
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Irp_Else); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 67; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_n_s__irp_else), __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":68
|
|
* "irp_if": Irp_If ,
|
|
* "irp_else": Irp_Else ,
|
|
* "irp_endif": Irp_Endif , # <<<<<<<<<<<<<<
|
|
* "irp_read": Irp_read ,
|
|
* "irp_write": Irp_write ,
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Irp_Endif); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 68; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_n_s__irp_endif), __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":69
|
|
* "irp_else": Irp_Else ,
|
|
* "irp_endif": Irp_Endif ,
|
|
* "irp_read": Irp_read , # <<<<<<<<<<<<<<
|
|
* "irp_write": Irp_write ,
|
|
* "use": Use ,
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Irp_read); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 69; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_n_s__irp_read), __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":70
|
|
* "irp_endif": Irp_Endif ,
|
|
* "irp_read": Irp_read ,
|
|
* "irp_write": Irp_write , # <<<<<<<<<<<<<<
|
|
* "use": Use ,
|
|
* "do": Do ,
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Irp_write); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 70; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_n_s__irp_write), __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":71
|
|
* "irp_read": Irp_read ,
|
|
* "irp_write": Irp_write ,
|
|
* "use": Use , # <<<<<<<<<<<<<<
|
|
* "do": Do ,
|
|
* "if": If ,
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Use); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 71; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_n_s__use), __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":72
|
|
* "irp_write": Irp_write ,
|
|
* "use": Use ,
|
|
* "do": Do , # <<<<<<<<<<<<<<
|
|
* "if": If ,
|
|
* "case": Case ,
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Do); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 72; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_n_s__do), __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":73
|
|
* "use": Use ,
|
|
* "do": Do ,
|
|
* "if": If , # <<<<<<<<<<<<<<
|
|
* "case": Case ,
|
|
* "elseif": Elseif ,
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__If); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 73; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_n_s__if), __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":74
|
|
* "do": Do ,
|
|
* "if": If ,
|
|
* "case": Case , # <<<<<<<<<<<<<<
|
|
* "elseif": Elseif ,
|
|
* "else": Else ,
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Case); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 74; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_n_s__case), __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":75
|
|
* "if": If ,
|
|
* "case": Case ,
|
|
* "elseif": Elseif , # <<<<<<<<<<<<<<
|
|
* "else": Else ,
|
|
* "enddo": Enddo ,
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Elseif); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 75; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_n_s__elseif), __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":76
|
|
* "case": Case ,
|
|
* "elseif": Elseif ,
|
|
* "else": Else , # <<<<<<<<<<<<<<
|
|
* "enddo": Enddo ,
|
|
* "endif": Endif ,
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Else); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 76; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_n_s__else), __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":77
|
|
* "elseif": Elseif ,
|
|
* "else": Else ,
|
|
* "enddo": Enddo , # <<<<<<<<<<<<<<
|
|
* "endif": Endif ,
|
|
* "endselect": End_select ,
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Enddo); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 77; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_n_s__enddo), __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":78
|
|
* "else": Else ,
|
|
* "enddo": Enddo ,
|
|
* "endif": Endif , # <<<<<<<<<<<<<<
|
|
* "endselect": End_select ,
|
|
* "end": End ,
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Endif); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 78; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_n_s__endif), __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":79
|
|
* "enddo": Enddo ,
|
|
* "endif": Endif ,
|
|
* "endselect": End_select , # <<<<<<<<<<<<<<
|
|
* "end": End ,
|
|
* "include": Include ,
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__End_select); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 79; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_n_s__endselect), __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":80
|
|
* "endif": Endif ,
|
|
* "endselect": End_select ,
|
|
* "end": End , # <<<<<<<<<<<<<<
|
|
* "include": Include ,
|
|
* "call": Call ,
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__End); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 80; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_n_s__end), __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":81
|
|
* "endselect": End_select ,
|
|
* "end": End ,
|
|
* "include": Include , # <<<<<<<<<<<<<<
|
|
* "call": Call ,
|
|
* "continue": Continue ,
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Include); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 81; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_n_s__include), __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":82
|
|
* "end": End ,
|
|
* "include": Include ,
|
|
* "call": Call , # <<<<<<<<<<<<<<
|
|
* "continue": Continue ,
|
|
* "return": Return ,
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Call); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 82; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_n_s__call), __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":83
|
|
* "include": Include ,
|
|
* "call": Call ,
|
|
* "continue": Continue , # <<<<<<<<<<<<<<
|
|
* "return": Return ,
|
|
* "implicit": Implicit ,
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Continue); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 83; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_n_s__continue), __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":84
|
|
* "call": Call ,
|
|
* "continue": Continue ,
|
|
* "return": Return , # <<<<<<<<<<<<<<
|
|
* "implicit": Implicit ,
|
|
* "save": Declaration ,
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Return); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 84; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_n_s__return), __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":85
|
|
* "continue": Continue ,
|
|
* "return": Return ,
|
|
* "implicit": Implicit , # <<<<<<<<<<<<<<
|
|
* "save": Declaration ,
|
|
* "function": Function ,
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Implicit); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 85; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_n_s__implicit), __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":86
|
|
* "return": Return ,
|
|
* "implicit": Implicit ,
|
|
* "save": Declaration , # <<<<<<<<<<<<<<
|
|
* "function": Function ,
|
|
* "recursive": Function ,
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Declaration); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 86; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_n_s__save), __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":87
|
|
* "implicit": Implicit ,
|
|
* "save": Declaration ,
|
|
* "function": Function , # <<<<<<<<<<<<<<
|
|
* "recursive": Function ,
|
|
* }
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Function); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 87; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_n_s__function), __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
|
|
/* "preprocessed_text.py":88
|
|
* "save": Declaration ,
|
|
* "function": Function ,
|
|
* "recursive": Function , # <<<<<<<<<<<<<<
|
|
* }
|
|
*
|
|
*/
|
|
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__Function); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 88; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_n_s__recursive), __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__simple_dict, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":91
|
|
* }
|
|
*
|
|
* def get_type (i, filename, line, is_doc): # <<<<<<<<<<<<<<
|
|
* '''Find the type of a text line'''
|
|
* assert type(i) == int
|
|
*/
|
|
__pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_17preprocessed_text_get_type, NULL, __pyx_n_s__preprocessed_text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 91; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__get_type, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 91; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":175
|
|
*
|
|
* ######################################################################
|
|
* def get_text(lines,filename): # <<<<<<<<<<<<<<
|
|
* '''Read the input file and transform it to labeled lines'''
|
|
* assert type(filename) == str
|
|
*/
|
|
__pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_17preprocessed_text_1get_text, NULL, __pyx_n_s__preprocessed_text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 175; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__get_text, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 175; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":188
|
|
*
|
|
* ######################################################################
|
|
* def execute_shell(text): # <<<<<<<<<<<<<<
|
|
* '''Execute the embedded shell scripts'''
|
|
* def fail(l,a,b): error.fail(l,"In Begin_Shell, %s '%s'"%(a,b))
|
|
*/
|
|
__pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_17preprocessed_text_2execute_shell, NULL, __pyx_n_s__preprocessed_text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 188; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__execute_shell, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 188; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":242
|
|
*
|
|
* ######################################################################
|
|
* def execute_templates(text): # <<<<<<<<<<<<<<
|
|
* '''Execute the templates'''
|
|
* def fail(l,a,b): error.fail(l,"In %s, %s"%(a,b))
|
|
*/
|
|
__pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_17preprocessed_text_3execute_templates, NULL, __pyx_n_s__preprocessed_text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 242; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__execute_templates, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 242; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":323
|
|
*
|
|
* ######################################################################
|
|
* def form(text): # <<<<<<<<<<<<<<
|
|
* '''Find if the text is in fixed form or in free form'''
|
|
* assert type(text) == list
|
|
*/
|
|
__pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_17preprocessed_text_4form, NULL, __pyx_n_s__preprocessed_text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 323; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__form, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 323; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":349
|
|
*
|
|
* ######################################################################
|
|
* def add_operators(text): # <<<<<<<<<<<<<<
|
|
* re_incr = re.compile(r"(\s*)(.*)(\+=)(.*$)",re.S)
|
|
* re_decr = re.compile(r"(\s*)(.*)(-=)(.*$)",re.S)
|
|
*/
|
|
__pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_17preprocessed_text_5add_operators, NULL, __pyx_n_s__preprocessed_text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 349; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__add_operators, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 349; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":371
|
|
*
|
|
* ######################################################################
|
|
* def remove_comments(text,form): # <<<<<<<<<<<<<<
|
|
* '''Remove all comments'''
|
|
* result = []
|
|
*/
|
|
__pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_17preprocessed_text_6remove_comments, NULL, __pyx_n_s__preprocessed_text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 371; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__remove_comments, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 371; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":413
|
|
*
|
|
* ######################################################################
|
|
* def remove_continuation(text,form): # <<<<<<<<<<<<<<
|
|
* '''Removes continuation lines'''
|
|
* result = []
|
|
*/
|
|
__pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_17preprocessed_text_7remove_continuation, NULL, __pyx_n_s__preprocessed_text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 413; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__remove_continuation, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 413; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":454
|
|
*
|
|
* ######################################################################
|
|
* def irp_simple_statements(text): # <<<<<<<<<<<<<<
|
|
* '''Processes simple statements'''
|
|
*
|
|
*/
|
|
__pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_17preprocessed_text_8irp_simple_statements, NULL, __pyx_n_s__preprocessed_text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 454; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s_143, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 454; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":658
|
|
*
|
|
* ######################################################################
|
|
* def change_includes(text): # <<<<<<<<<<<<<<
|
|
* '''Deals with include files'''
|
|
* result = []
|
|
*/
|
|
__pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_17preprocessed_text_9change_includes, NULL, __pyx_n_s__preprocessed_text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 658; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__change_includes, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 658; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":680
|
|
*
|
|
* ######################################################################
|
|
* def process_old_style_do(text): # <<<<<<<<<<<<<<
|
|
* '''Changes old-style do loops to new style'''
|
|
* assert type(text) == list
|
|
*/
|
|
__pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_17preprocessed_text_10process_old_style_do, NULL, __pyx_n_s__preprocessed_text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 680; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s_142, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 680; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":710
|
|
*
|
|
* ######################################################################
|
|
* def change_single_line_ifs(text): # <<<<<<<<<<<<<<
|
|
* '''Changes:
|
|
* if (test) result
|
|
*/
|
|
__pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_17preprocessed_text_11change_single_line_ifs, NULL, __pyx_n_s__preprocessed_text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 710; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s_141, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 710; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":759
|
|
*
|
|
* ######################################################################
|
|
* def check_begin_end(text): # <<<<<<<<<<<<<<
|
|
* '''Checks x...endx consistence'''
|
|
*
|
|
*/
|
|
__pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_17preprocessed_text_12check_begin_end, NULL, __pyx_n_s__preprocessed_text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 759; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__check_begin_end, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 759; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":821
|
|
*
|
|
* ######################################################################
|
|
* def remove_ifdefs(text): # <<<<<<<<<<<<<<
|
|
* assert type(text) == list
|
|
* result = []
|
|
*/
|
|
__pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_17preprocessed_text_13remove_ifdefs, NULL, __pyx_n_s__preprocessed_text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 821; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__remove_ifdefs, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 821; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":839
|
|
*
|
|
* ######################################################################
|
|
* def create_preprocessed_text(filename): # <<<<<<<<<<<<<<
|
|
* file = open(filename,"r")
|
|
* lines = file.readlines()
|
|
*/
|
|
__pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_17preprocessed_text_14create_preprocessed_text, NULL, __pyx_n_s__preprocessed_text); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 839; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s_1, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 839; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
|
|
/* "preprocessed_text.py":859
|
|
*
|
|
* ######################################################################
|
|
* preprocessed_text = parallel_loop( lambda x,y: create_preprocessed_text(x), \ # <<<<<<<<<<<<<<
|
|
* map(lambda x: (x,None), irpf90_files ) )
|
|
*
|
|
*/
|
|
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__parallel_loop); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 859; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_1);
|
|
__pyx_t_2 = __pyx_binding_PyCFunctionType_NewEx(&__pyx_lambda_methdef_17preprocessed_text_lambda4, NULL, __pyx_n_s__preprocessed_text); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 859; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_2);
|
|
|
|
/* "preprocessed_text.py":860
|
|
* ######################################################################
|
|
* preprocessed_text = parallel_loop( lambda x,y: create_preprocessed_text(x), \
|
|
* map(lambda x: (x,None), irpf90_files ) ) # <<<<<<<<<<<<<<
|
|
*
|
|
* ######################################################################
|
|
*/
|
|
__pyx_t_3 = __pyx_binding_PyCFunctionType_NewEx(&__pyx_lambda_methdef_17preprocessed_text_lambda5, NULL, __pyx_n_s__preprocessed_text); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 860; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_3);
|
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__irpf90_files); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 860; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 860; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_5));
|
|
PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3);
|
|
__Pyx_GIVEREF(__pyx_t_3);
|
|
PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_4);
|
|
__Pyx_GIVEREF(__pyx_t_4);
|
|
__pyx_t_3 = 0;
|
|
__pyx_t_4 = 0;
|
|
__pyx_t_4 = PyObject_Call(__pyx_builtin_map, ((PyObject *)__pyx_t_5), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 860; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
|
|
__pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 859; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_5));
|
|
PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2);
|
|
__Pyx_GIVEREF(__pyx_t_2);
|
|
PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_4);
|
|
__Pyx_GIVEREF(__pyx_t_4);
|
|
__pyx_t_2 = 0;
|
|
__pyx_t_4 = 0;
|
|
__pyx_t_4 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_5), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 859; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
|
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__preprocessed_text, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 859; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
|
|
/* "preprocessed_text.py":863
|
|
*
|
|
* ######################################################################
|
|
* def debug(): # <<<<<<<<<<<<<<
|
|
* for filename, txt in preprocessed_text:
|
|
* if filename == 'invert.irp.f':
|
|
*/
|
|
__pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_17preprocessed_text_15debug, NULL, __pyx_n_s__preprocessed_text); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 863; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__debug, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 863; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
|
|
/* "preprocessed_text.py":871
|
|
* print irpf90_files
|
|
*
|
|
* if __name__ == '__main__': # <<<<<<<<<<<<<<
|
|
* debug()
|
|
*
|
|
*/
|
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s____name__); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 871; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_6 = __Pyx_PyString_Equals(__pyx_t_4, ((PyObject *)__pyx_n_s____main__), Py_EQ); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 871; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
if (__pyx_t_6) {
|
|
|
|
/* "preprocessed_text.py":872
|
|
*
|
|
* if __name__ == '__main__':
|
|
* debug() # <<<<<<<<<<<<<<
|
|
*
|
|
*/
|
|
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__debug); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 872; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_4);
|
|
__pyx_t_5 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 872; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(__pyx_t_5);
|
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
goto __pyx_L2;
|
|
}
|
|
__pyx_L2:;
|
|
|
|
/* "preprocessed_text.py":1
|
|
* #!/usr/bin/python # <<<<<<<<<<<<<<
|
|
* # IRPF90 is a Fortran90 preprocessor written in Python for programming using
|
|
* # the Implicit Reference to Parameters (IRP) method.
|
|
*/
|
|
__pyx_t_5 = PyDict_New(); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_GOTREF(((PyObject *)__pyx_t_5));
|
|
if (PyObject_SetAttr(__pyx_m, __pyx_n_s____test__, ((PyObject *)__pyx_t_5)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
|
__Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
|
|
goto __pyx_L0;
|
|
__pyx_L1_error:;
|
|
__Pyx_XDECREF(__pyx_t_1);
|
|
__Pyx_XDECREF(__pyx_t_2);
|
|
__Pyx_XDECREF(__pyx_t_3);
|
|
__Pyx_XDECREF(__pyx_t_4);
|
|
__Pyx_XDECREF(__pyx_t_5);
|
|
if (__pyx_m) {
|
|
__Pyx_AddTraceback("init preprocessed_text", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
Py_DECREF(__pyx_m); __pyx_m = 0;
|
|
} else if (!PyErr_Occurred()) {
|
|
PyErr_SetString(PyExc_ImportError, "init preprocessed_text");
|
|
}
|
|
__pyx_L0:;
|
|
__Pyx_RefNannyFinishContext();
|
|
#if PY_MAJOR_VERSION < 3
|
|
return;
|
|
#else
|
|
return __pyx_m;
|
|
#endif
|
|
}
|
|
|
|
/* Runtime support code */
|
|
|
|
#if CYTHON_REFNANNY
|
|
static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname) {
|
|
PyObject *m = NULL, *p = NULL;
|
|
void *r = NULL;
|
|
m = PyImport_ImportModule((char *)modname);
|
|
if (!m) goto end;
|
|
p = PyObject_GetAttrString(m, (char *)"RefNannyAPI");
|
|
if (!p) goto end;
|
|
r = PyLong_AsVoidPtr(p);
|
|
end:
|
|
Py_XDECREF(p);
|
|
Py_XDECREF(m);
|
|
return (__Pyx_RefNannyAPIStruct *)r;
|
|
}
|
|
#endif /* CYTHON_REFNANNY */
|
|
|
|
static PyObject *__Pyx_GetName(PyObject *dict, PyObject *name) {
|
|
PyObject *result;
|
|
result = PyObject_GetAttr(dict, name);
|
|
if (!result) {
|
|
if (dict != __pyx_b) {
|
|
PyErr_Clear();
|
|
result = PyObject_GetAttr(__pyx_b, name);
|
|
}
|
|
if (!result) {
|
|
PyErr_SetObject(PyExc_NameError, name);
|
|
}
|
|
}
|
|
return result;
|
|
}
|
|
|
|
static void __Pyx_RaiseArgtupleInvalid(
|
|
const char* func_name,
|
|
int exact,
|
|
Py_ssize_t num_min,
|
|
Py_ssize_t num_max,
|
|
Py_ssize_t num_found)
|
|
{
|
|
Py_ssize_t num_expected;
|
|
const char *more_or_less;
|
|
|
|
if (num_found < num_min) {
|
|
num_expected = num_min;
|
|
more_or_less = "at least";
|
|
} else {
|
|
num_expected = num_max;
|
|
more_or_less = "at most";
|
|
}
|
|
if (exact) {
|
|
more_or_less = "exactly";
|
|
}
|
|
PyErr_Format(PyExc_TypeError,
|
|
"%s() takes %s %"PY_FORMAT_SIZE_T"d positional argument%s (%"PY_FORMAT_SIZE_T"d given)",
|
|
func_name, more_or_less, num_expected,
|
|
(num_expected == 1) ? "" : "s", num_found);
|
|
}
|
|
|
|
static void __Pyx_RaiseDoubleKeywordsError(
|
|
const char* func_name,
|
|
PyObject* kw_name)
|
|
{
|
|
PyErr_Format(PyExc_TypeError,
|
|
#if PY_MAJOR_VERSION >= 3
|
|
"%s() got multiple values for keyword argument '%U'", func_name, kw_name);
|
|
#else
|
|
"%s() got multiple values for keyword argument '%s'", func_name,
|
|
PyString_AS_STRING(kw_name));
|
|
#endif
|
|
}
|
|
|
|
static int __Pyx_ParseOptionalKeywords(
|
|
PyObject *kwds,
|
|
PyObject **argnames[],
|
|
PyObject *kwds2,
|
|
PyObject *values[],
|
|
Py_ssize_t num_pos_args,
|
|
const char* function_name)
|
|
{
|
|
PyObject *key = 0, *value = 0;
|
|
Py_ssize_t pos = 0;
|
|
PyObject*** name;
|
|
PyObject*** first_kw_arg = argnames + num_pos_args;
|
|
|
|
while (PyDict_Next(kwds, &pos, &key, &value)) {
|
|
name = first_kw_arg;
|
|
while (*name && (**name != key)) name++;
|
|
if (*name) {
|
|
values[name-argnames] = value;
|
|
} else {
|
|
#if PY_MAJOR_VERSION < 3
|
|
if (unlikely(!PyString_CheckExact(key)) && unlikely(!PyString_Check(key))) {
|
|
#else
|
|
if (unlikely(!PyUnicode_CheckExact(key)) && unlikely(!PyUnicode_Check(key))) {
|
|
#endif
|
|
goto invalid_keyword_type;
|
|
} else {
|
|
for (name = first_kw_arg; *name; name++) {
|
|
#if PY_MAJOR_VERSION >= 3
|
|
if (PyUnicode_GET_SIZE(**name) == PyUnicode_GET_SIZE(key) &&
|
|
PyUnicode_Compare(**name, key) == 0) break;
|
|
#else
|
|
if (PyString_GET_SIZE(**name) == PyString_GET_SIZE(key) &&
|
|
_PyString_Eq(**name, key)) break;
|
|
#endif
|
|
}
|
|
if (*name) {
|
|
values[name-argnames] = value;
|
|
} else {
|
|
/* unexpected keyword found */
|
|
for (name=argnames; name != first_kw_arg; name++) {
|
|
if (**name == key) goto arg_passed_twice;
|
|
#if PY_MAJOR_VERSION >= 3
|
|
if (PyUnicode_GET_SIZE(**name) == PyUnicode_GET_SIZE(key) &&
|
|
PyUnicode_Compare(**name, key) == 0) goto arg_passed_twice;
|
|
#else
|
|
if (PyString_GET_SIZE(**name) == PyString_GET_SIZE(key) &&
|
|
_PyString_Eq(**name, key)) goto arg_passed_twice;
|
|
#endif
|
|
}
|
|
if (kwds2) {
|
|
if (unlikely(PyDict_SetItem(kwds2, key, value))) goto bad;
|
|
} else {
|
|
goto invalid_keyword;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return 0;
|
|
arg_passed_twice:
|
|
__Pyx_RaiseDoubleKeywordsError(function_name, **name);
|
|
goto bad;
|
|
invalid_keyword_type:
|
|
PyErr_Format(PyExc_TypeError,
|
|
"%s() keywords must be strings", function_name);
|
|
goto bad;
|
|
invalid_keyword:
|
|
PyErr_Format(PyExc_TypeError,
|
|
#if PY_MAJOR_VERSION < 3
|
|
"%s() got an unexpected keyword argument '%s'",
|
|
function_name, PyString_AsString(key));
|
|
#else
|
|
"%s() got an unexpected keyword argument '%U'",
|
|
function_name, key);
|
|
#endif
|
|
bad:
|
|
return -1;
|
|
}
|
|
|
|
|
|
static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index) {
|
|
PyErr_Format(PyExc_ValueError,
|
|
"need more than %"PY_FORMAT_SIZE_T"d value%s to unpack",
|
|
index, (index == 1) ? "" : "s");
|
|
}
|
|
|
|
static CYTHON_INLINE void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected) {
|
|
PyErr_Format(PyExc_ValueError,
|
|
"too many values to unpack (expected %"PY_FORMAT_SIZE_T"d)", expected);
|
|
}
|
|
|
|
static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected) {
|
|
if (unlikely(retval)) {
|
|
Py_DECREF(retval);
|
|
__Pyx_RaiseTooManyValuesError(expected);
|
|
return -1;
|
|
} else if (PyErr_Occurred()) {
|
|
if (likely(PyErr_ExceptionMatches(PyExc_StopIteration))) {
|
|
PyErr_Clear();
|
|
return 0;
|
|
} else {
|
|
return -1;
|
|
}
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
static CYTHON_INLINE void __Pyx_RaiseUnboundLocalError(const char *varname) {
|
|
PyErr_Format(PyExc_UnboundLocalError, "local variable '%s' referenced before assignment", varname);
|
|
}
|
|
|
|
static CYTHON_INLINE void __Pyx_RaiseClosureNameError(const char *varname) {
|
|
PyErr_Format(PyExc_NameError, "free variable '%s' referenced before assignment in enclosing scope", varname);
|
|
}
|
|
|
|
static CYTHON_INLINE void __Pyx_RaiseNoneIndexingError(void) {
|
|
PyErr_SetString(PyExc_TypeError, "'NoneType' object is unsubscriptable");
|
|
}
|
|
|
|
static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb) {
|
|
PyObject *local_type, *local_value, *local_tb;
|
|
PyObject *tmp_type, *tmp_value, *tmp_tb;
|
|
PyThreadState *tstate = PyThreadState_GET();
|
|
local_type = tstate->curexc_type;
|
|
local_value = tstate->curexc_value;
|
|
local_tb = tstate->curexc_traceback;
|
|
tstate->curexc_type = 0;
|
|
tstate->curexc_value = 0;
|
|
tstate->curexc_traceback = 0;
|
|
PyErr_NormalizeException(&local_type, &local_value, &local_tb);
|
|
if (unlikely(tstate->curexc_type))
|
|
goto bad;
|
|
#if PY_MAJOR_VERSION >= 3
|
|
if (unlikely(PyException_SetTraceback(local_value, local_tb) < 0))
|
|
goto bad;
|
|
#endif
|
|
*type = local_type;
|
|
*value = local_value;
|
|
*tb = local_tb;
|
|
Py_INCREF(local_type);
|
|
Py_INCREF(local_value);
|
|
Py_INCREF(local_tb);
|
|
tmp_type = tstate->exc_type;
|
|
tmp_value = tstate->exc_value;
|
|
tmp_tb = tstate->exc_traceback;
|
|
tstate->exc_type = local_type;
|
|
tstate->exc_value = local_value;
|
|
tstate->exc_traceback = local_tb;
|
|
/* Make sure tstate is in a consistent state when we XDECREF
|
|
these objects (XDECREF may run arbitrary code). */
|
|
Py_XDECREF(tmp_type);
|
|
Py_XDECREF(tmp_value);
|
|
Py_XDECREF(tmp_tb);
|
|
return 0;
|
|
bad:
|
|
*type = 0;
|
|
*value = 0;
|
|
*tb = 0;
|
|
Py_XDECREF(local_type);
|
|
Py_XDECREF(local_value);
|
|
Py_XDECREF(local_tb);
|
|
return -1;
|
|
}
|
|
|
|
|
|
static CYTHON_INLINE void __Pyx_ExceptionSave(PyObject **type, PyObject **value, PyObject **tb) {
|
|
PyThreadState *tstate = PyThreadState_GET();
|
|
*type = tstate->exc_type;
|
|
*value = tstate->exc_value;
|
|
*tb = tstate->exc_traceback;
|
|
Py_XINCREF(*type);
|
|
Py_XINCREF(*value);
|
|
Py_XINCREF(*tb);
|
|
}
|
|
|
|
static void __Pyx_ExceptionReset(PyObject *type, PyObject *value, PyObject *tb) {
|
|
PyObject *tmp_type, *tmp_value, *tmp_tb;
|
|
PyThreadState *tstate = PyThreadState_GET();
|
|
tmp_type = tstate->exc_type;
|
|
tmp_value = tstate->exc_value;
|
|
tmp_tb = tstate->exc_traceback;
|
|
tstate->exc_type = type;
|
|
tstate->exc_value = value;
|
|
tstate->exc_traceback = tb;
|
|
Py_XDECREF(tmp_type);
|
|
Py_XDECREF(tmp_value);
|
|
Py_XDECREF(tmp_tb);
|
|
}
|
|
|
|
static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, long level) {
|
|
PyObject *py_import = 0;
|
|
PyObject *empty_list = 0;
|
|
PyObject *module = 0;
|
|
PyObject *global_dict = 0;
|
|
PyObject *empty_dict = 0;
|
|
PyObject *list;
|
|
py_import = __Pyx_GetAttrString(__pyx_b, "__import__");
|
|
if (!py_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;
|
|
#if PY_VERSION_HEX >= 0x02050000
|
|
{
|
|
PyObject *py_level = PyInt_FromLong(level);
|
|
if (!py_level)
|
|
goto bad;
|
|
module = PyObject_CallFunctionObjArgs(py_import,
|
|
name, global_dict, empty_dict, list, py_level, NULL);
|
|
Py_DECREF(py_level);
|
|
}
|
|
#else
|
|
if (level>0) {
|
|
PyErr_SetString(PyExc_RuntimeError, "Relative import is not supported for Python <=2.4.");
|
|
goto bad;
|
|
}
|
|
module = PyObject_CallFunctionObjArgs(py_import,
|
|
name, global_dict, empty_dict, list, NULL);
|
|
#endif
|
|
bad:
|
|
Py_XDECREF(empty_list);
|
|
Py_XDECREF(py_import);
|
|
Py_XDECREF(empty_dict);
|
|
return module;
|
|
}
|
|
|
|
|
|
static PyObject *__pyx_binding_PyCFunctionType_NewEx(PyMethodDef *ml, PyObject *self, PyObject *module) {
|
|
__pyx_binding_PyCFunctionType_object *op = PyObject_GC_New(__pyx_binding_PyCFunctionType_object, __pyx_binding_PyCFunctionType);
|
|
if (op == NULL)
|
|
return NULL;
|
|
op->func.m_ml = ml;
|
|
Py_XINCREF(self);
|
|
op->func.m_self = self;
|
|
Py_XINCREF(module);
|
|
op->func.m_module = module;
|
|
PyObject_GC_Track(op);
|
|
return (PyObject *)op;
|
|
}
|
|
|
|
static void __pyx_binding_PyCFunctionType_dealloc(__pyx_binding_PyCFunctionType_object *m) {
|
|
PyObject_GC_UnTrack(m);
|
|
Py_XDECREF(m->func.m_self);
|
|
Py_XDECREF(m->func.m_module);
|
|
PyObject_GC_Del(m);
|
|
}
|
|
|
|
static PyObject *__pyx_binding_PyCFunctionType_descr_get(PyObject *func, PyObject *obj, PyObject *type) {
|
|
if (obj == Py_None)
|
|
obj = NULL;
|
|
return PyMethod_New(func, obj, type);
|
|
}
|
|
|
|
static int __pyx_binding_PyCFunctionType_init(void) {
|
|
__pyx_binding_PyCFunctionType_type = PyCFunction_Type;
|
|
__pyx_binding_PyCFunctionType_type.tp_name = __Pyx_NAMESTR("cython_binding_builtin_function_or_method");
|
|
__pyx_binding_PyCFunctionType_type.tp_dealloc = (destructor)__pyx_binding_PyCFunctionType_dealloc;
|
|
__pyx_binding_PyCFunctionType_type.tp_descr_get = __pyx_binding_PyCFunctionType_descr_get;
|
|
if (PyType_Ready(&__pyx_binding_PyCFunctionType_type) < 0) {
|
|
return -1;
|
|
}
|
|
__pyx_binding_PyCFunctionType = &__pyx_binding_PyCFunctionType_type;
|
|
return 0;
|
|
|
|
}
|
|
|
|
static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals) {
|
|
if (s1 == s2) { /* as done by PyObject_RichCompareBool(); also catches the (interned) empty string */
|
|
return (equals == Py_EQ);
|
|
} else if (PyBytes_CheckExact(s1) & PyBytes_CheckExact(s2)) {
|
|
if (PyBytes_GET_SIZE(s1) != PyBytes_GET_SIZE(s2)) {
|
|
return (equals == Py_NE);
|
|
} else if (PyBytes_GET_SIZE(s1) == 1) {
|
|
if (equals == Py_EQ)
|
|
return (PyBytes_AS_STRING(s1)[0] == PyBytes_AS_STRING(s2)[0]);
|
|
else
|
|
return (PyBytes_AS_STRING(s1)[0] != PyBytes_AS_STRING(s2)[0]);
|
|
} else {
|
|
int result = memcmp(PyBytes_AS_STRING(s1), PyBytes_AS_STRING(s2), (size_t)PyBytes_GET_SIZE(s1));
|
|
return (equals == Py_EQ) ? (result == 0) : (result != 0);
|
|
}
|
|
} else if ((s1 == Py_None) & PyBytes_CheckExact(s2)) {
|
|
return (equals == Py_NE);
|
|
} else if ((s2 == Py_None) & PyBytes_CheckExact(s1)) {
|
|
return (equals == Py_NE);
|
|
} else {
|
|
int result;
|
|
PyObject* py_result = PyObject_RichCompare(s1, s2, equals);
|
|
if (!py_result)
|
|
return -1;
|
|
result = __Pyx_PyObject_IsTrue(py_result);
|
|
Py_DECREF(py_result);
|
|
return result;
|
|
}
|
|
}
|
|
|
|
static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals) {
|
|
if (s1 == s2) { /* as done by PyObject_RichCompareBool(); also catches the (interned) empty string */
|
|
return (equals == Py_EQ);
|
|
} else if (PyUnicode_CheckExact(s1) & PyUnicode_CheckExact(s2)) {
|
|
if (PyUnicode_GET_SIZE(s1) != PyUnicode_GET_SIZE(s2)) {
|
|
return (equals == Py_NE);
|
|
} else if (PyUnicode_GET_SIZE(s1) == 1) {
|
|
if (equals == Py_EQ)
|
|
return (PyUnicode_AS_UNICODE(s1)[0] == PyUnicode_AS_UNICODE(s2)[0]);
|
|
else
|
|
return (PyUnicode_AS_UNICODE(s1)[0] != PyUnicode_AS_UNICODE(s2)[0]);
|
|
} else {
|
|
int result = PyUnicode_Compare(s1, s2);
|
|
if ((result == -1) && unlikely(PyErr_Occurred()))
|
|
return -1;
|
|
return (equals == Py_EQ) ? (result == 0) : (result != 0);
|
|
}
|
|
} else if ((s1 == Py_None) & PyUnicode_CheckExact(s2)) {
|
|
return (equals == Py_NE);
|
|
} else if ((s2 == Py_None) & PyUnicode_CheckExact(s1)) {
|
|
return (equals == Py_NE);
|
|
} else {
|
|
int result;
|
|
PyObject* py_result = PyObject_RichCompare(s1, s2, equals);
|
|
if (!py_result)
|
|
return -1;
|
|
result = __Pyx_PyObject_IsTrue(py_result);
|
|
Py_DECREF(py_result);
|
|
return result;
|
|
}
|
|
}
|
|
|
|
#if PY_MAJOR_VERSION < 3
|
|
static PyObject *__Pyx_GetStdout(void) {
|
|
PyObject *f = PySys_GetObject((char *)"stdout");
|
|
if (!f) {
|
|
PyErr_SetString(PyExc_RuntimeError, "lost sys.stdout");
|
|
}
|
|
return f;
|
|
}
|
|
|
|
static int __Pyx_Print(PyObject* f, PyObject *arg_tuple, int newline) {
|
|
PyObject* v;
|
|
int i;
|
|
|
|
if (!f) {
|
|
if (!(f = __Pyx_GetStdout()))
|
|
return -1;
|
|
}
|
|
for (i=0; i < PyTuple_GET_SIZE(arg_tuple); i++) {
|
|
if (PyFile_SoftSpace(f, 1)) {
|
|
if (PyFile_WriteString(" ", f) < 0)
|
|
return -1;
|
|
}
|
|
v = PyTuple_GET_ITEM(arg_tuple, i);
|
|
if (PyFile_WriteObject(v, f, Py_PRINT_RAW) < 0)
|
|
return -1;
|
|
if (PyString_Check(v)) {
|
|
char *s = PyString_AsString(v);
|
|
Py_ssize_t len = PyString_Size(v);
|
|
if (len > 0 &&
|
|
isspace(Py_CHARMASK(s[len-1])) &&
|
|
s[len-1] != ' ')
|
|
PyFile_SoftSpace(f, 0);
|
|
}
|
|
}
|
|
if (newline) {
|
|
if (PyFile_WriteString("\n", f) < 0)
|
|
return -1;
|
|
PyFile_SoftSpace(f, 0);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
#else /* Python 3 has a print function */
|
|
|
|
static int __Pyx_Print(PyObject* stream, PyObject *arg_tuple, int newline) {
|
|
PyObject* kwargs = 0;
|
|
PyObject* result = 0;
|
|
PyObject* end_string;
|
|
if (unlikely(!__pyx_print)) {
|
|
__pyx_print = __Pyx_GetAttrString(__pyx_b, "print");
|
|
if (!__pyx_print)
|
|
return -1;
|
|
}
|
|
if (stream) {
|
|
kwargs = PyDict_New();
|
|
if (unlikely(!kwargs))
|
|
return -1;
|
|
if (unlikely(PyDict_SetItemString(kwargs, "file", stream) < 0))
|
|
goto bad;
|
|
if (!newline) {
|
|
end_string = PyUnicode_FromStringAndSize(" ", 1);
|
|
if (unlikely(!end_string))
|
|
goto bad;
|
|
if (PyDict_SetItemString(kwargs, "end", end_string) < 0) {
|
|
Py_DECREF(end_string);
|
|
goto bad;
|
|
}
|
|
Py_DECREF(end_string);
|
|
}
|
|
} else if (!newline) {
|
|
if (unlikely(!__pyx_print_kwargs)) {
|
|
__pyx_print_kwargs = PyDict_New();
|
|
if (unlikely(!__pyx_print_kwargs))
|
|
return -1;
|
|
end_string = PyUnicode_FromStringAndSize(" ", 1);
|
|
if (unlikely(!end_string))
|
|
return -1;
|
|
if (PyDict_SetItemString(__pyx_print_kwargs, "end", end_string) < 0) {
|
|
Py_DECREF(end_string);
|
|
return -1;
|
|
}
|
|
Py_DECREF(end_string);
|
|
}
|
|
kwargs = __pyx_print_kwargs;
|
|
}
|
|
result = PyObject_Call(__pyx_print, arg_tuple, kwargs);
|
|
if (unlikely(kwargs) && (kwargs != __pyx_print_kwargs))
|
|
Py_DECREF(kwargs);
|
|
if (!result)
|
|
return -1;
|
|
Py_DECREF(result);
|
|
return 0;
|
|
bad:
|
|
if (kwargs != __pyx_print_kwargs)
|
|
Py_XDECREF(kwargs);
|
|
return -1;
|
|
}
|
|
|
|
#endif
|
|
|
|
#if PY_MAJOR_VERSION < 3
|
|
|
|
static int __Pyx_PrintOne(PyObject* f, PyObject *o) {
|
|
if (!f) {
|
|
if (!(f = __Pyx_GetStdout()))
|
|
return -1;
|
|
}
|
|
if (PyFile_SoftSpace(f, 0)) {
|
|
if (PyFile_WriteString(" ", f) < 0)
|
|
return -1;
|
|
}
|
|
if (PyFile_WriteObject(o, f, Py_PRINT_RAW) < 0)
|
|
return -1;
|
|
if (PyFile_WriteString("\n", f) < 0)
|
|
return -1;
|
|
return 0;
|
|
/* the line below is just to avoid compiler
|
|
* compiler warnings about unused functions */
|
|
return __Pyx_Print(f, NULL, 0);
|
|
}
|
|
|
|
#else /* Python 3 has a print function */
|
|
|
|
static int __Pyx_PrintOne(PyObject* stream, PyObject *o) {
|
|
int res;
|
|
PyObject* arg_tuple = PyTuple_New(1);
|
|
if (unlikely(!arg_tuple))
|
|
return -1;
|
|
Py_INCREF(o);
|
|
PyTuple_SET_ITEM(arg_tuple, 0, o);
|
|
res = __Pyx_Print(stream, arg_tuple, 1);
|
|
Py_DECREF(arg_tuple);
|
|
return res;
|
|
}
|
|
|
|
#endif
|
|
|
|
static CYTHON_INLINE unsigned char __Pyx_PyInt_AsUnsignedChar(PyObject* x) {
|
|
const unsigned char neg_one = (unsigned char)-1, const_zero = 0;
|
|
const int is_unsigned = neg_one > const_zero;
|
|
if (sizeof(unsigned char) < sizeof(long)) {
|
|
long val = __Pyx_PyInt_AsLong(x);
|
|
if (unlikely(val != (long)(unsigned char)val)) {
|
|
if (!unlikely(val == -1 && PyErr_Occurred())) {
|
|
PyErr_SetString(PyExc_OverflowError,
|
|
(is_unsigned && unlikely(val < 0)) ?
|
|
"can't convert negative value to unsigned char" :
|
|
"value too large to convert to unsigned char");
|
|
}
|
|
return (unsigned char)-1;
|
|
}
|
|
return (unsigned char)val;
|
|
}
|
|
return (unsigned char)__Pyx_PyInt_AsUnsignedLong(x);
|
|
}
|
|
|
|
static CYTHON_INLINE unsigned short __Pyx_PyInt_AsUnsignedShort(PyObject* x) {
|
|
const unsigned short neg_one = (unsigned short)-1, const_zero = 0;
|
|
const int is_unsigned = neg_one > const_zero;
|
|
if (sizeof(unsigned short) < sizeof(long)) {
|
|
long val = __Pyx_PyInt_AsLong(x);
|
|
if (unlikely(val != (long)(unsigned short)val)) {
|
|
if (!unlikely(val == -1 && PyErr_Occurred())) {
|
|
PyErr_SetString(PyExc_OverflowError,
|
|
(is_unsigned && unlikely(val < 0)) ?
|
|
"can't convert negative value to unsigned short" :
|
|
"value too large to convert to unsigned short");
|
|
}
|
|
return (unsigned short)-1;
|
|
}
|
|
return (unsigned short)val;
|
|
}
|
|
return (unsigned short)__Pyx_PyInt_AsUnsignedLong(x);
|
|
}
|
|
|
|
static CYTHON_INLINE unsigned int __Pyx_PyInt_AsUnsignedInt(PyObject* x) {
|
|
const unsigned int neg_one = (unsigned int)-1, const_zero = 0;
|
|
const int is_unsigned = neg_one > const_zero;
|
|
if (sizeof(unsigned int) < sizeof(long)) {
|
|
long val = __Pyx_PyInt_AsLong(x);
|
|
if (unlikely(val != (long)(unsigned int)val)) {
|
|
if (!unlikely(val == -1 && PyErr_Occurred())) {
|
|
PyErr_SetString(PyExc_OverflowError,
|
|
(is_unsigned && unlikely(val < 0)) ?
|
|
"can't convert negative value to unsigned int" :
|
|
"value too large to convert to unsigned int");
|
|
}
|
|
return (unsigned int)-1;
|
|
}
|
|
return (unsigned int)val;
|
|
}
|
|
return (unsigned int)__Pyx_PyInt_AsUnsignedLong(x);
|
|
}
|
|
|
|
static CYTHON_INLINE char __Pyx_PyInt_AsChar(PyObject* x) {
|
|
const char neg_one = (char)-1, const_zero = 0;
|
|
const int is_unsigned = neg_one > const_zero;
|
|
if (sizeof(char) < sizeof(long)) {
|
|
long val = __Pyx_PyInt_AsLong(x);
|
|
if (unlikely(val != (long)(char)val)) {
|
|
if (!unlikely(val == -1 && PyErr_Occurred())) {
|
|
PyErr_SetString(PyExc_OverflowError,
|
|
(is_unsigned && unlikely(val < 0)) ?
|
|
"can't convert negative value to char" :
|
|
"value too large to convert to char");
|
|
}
|
|
return (char)-1;
|
|
}
|
|
return (char)val;
|
|
}
|
|
return (char)__Pyx_PyInt_AsLong(x);
|
|
}
|
|
|
|
static CYTHON_INLINE short __Pyx_PyInt_AsShort(PyObject* x) {
|
|
const short neg_one = (short)-1, const_zero = 0;
|
|
const int is_unsigned = neg_one > const_zero;
|
|
if (sizeof(short) < sizeof(long)) {
|
|
long val = __Pyx_PyInt_AsLong(x);
|
|
if (unlikely(val != (long)(short)val)) {
|
|
if (!unlikely(val == -1 && PyErr_Occurred())) {
|
|
PyErr_SetString(PyExc_OverflowError,
|
|
(is_unsigned && unlikely(val < 0)) ?
|
|
"can't convert negative value to short" :
|
|
"value too large to convert to short");
|
|
}
|
|
return (short)-1;
|
|
}
|
|
return (short)val;
|
|
}
|
|
return (short)__Pyx_PyInt_AsLong(x);
|
|
}
|
|
|
|
static CYTHON_INLINE int __Pyx_PyInt_AsInt(PyObject* x) {
|
|
const int neg_one = (int)-1, const_zero = 0;
|
|
const int is_unsigned = neg_one > const_zero;
|
|
if (sizeof(int) < sizeof(long)) {
|
|
long val = __Pyx_PyInt_AsLong(x);
|
|
if (unlikely(val != (long)(int)val)) {
|
|
if (!unlikely(val == -1 && PyErr_Occurred())) {
|
|
PyErr_SetString(PyExc_OverflowError,
|
|
(is_unsigned && unlikely(val < 0)) ?
|
|
"can't convert negative value to int" :
|
|
"value too large to convert to int");
|
|
}
|
|
return (int)-1;
|
|
}
|
|
return (int)val;
|
|
}
|
|
return (int)__Pyx_PyInt_AsLong(x);
|
|
}
|
|
|
|
static CYTHON_INLINE signed char __Pyx_PyInt_AsSignedChar(PyObject* x) {
|
|
const signed char neg_one = (signed char)-1, const_zero = 0;
|
|
const int is_unsigned = neg_one > const_zero;
|
|
if (sizeof(signed char) < sizeof(long)) {
|
|
long val = __Pyx_PyInt_AsLong(x);
|
|
if (unlikely(val != (long)(signed char)val)) {
|
|
if (!unlikely(val == -1 && PyErr_Occurred())) {
|
|
PyErr_SetString(PyExc_OverflowError,
|
|
(is_unsigned && unlikely(val < 0)) ?
|
|
"can't convert negative value to signed char" :
|
|
"value too large to convert to signed char");
|
|
}
|
|
return (signed char)-1;
|
|
}
|
|
return (signed char)val;
|
|
}
|
|
return (signed char)__Pyx_PyInt_AsSignedLong(x);
|
|
}
|
|
|
|
static CYTHON_INLINE signed short __Pyx_PyInt_AsSignedShort(PyObject* x) {
|
|
const signed short neg_one = (signed short)-1, const_zero = 0;
|
|
const int is_unsigned = neg_one > const_zero;
|
|
if (sizeof(signed short) < sizeof(long)) {
|
|
long val = __Pyx_PyInt_AsLong(x);
|
|
if (unlikely(val != (long)(signed short)val)) {
|
|
if (!unlikely(val == -1 && PyErr_Occurred())) {
|
|
PyErr_SetString(PyExc_OverflowError,
|
|
(is_unsigned && unlikely(val < 0)) ?
|
|
"can't convert negative value to signed short" :
|
|
"value too large to convert to signed short");
|
|
}
|
|
return (signed short)-1;
|
|
}
|
|
return (signed short)val;
|
|
}
|
|
return (signed short)__Pyx_PyInt_AsSignedLong(x);
|
|
}
|
|
|
|
static CYTHON_INLINE signed int __Pyx_PyInt_AsSignedInt(PyObject* x) {
|
|
const signed int neg_one = (signed int)-1, const_zero = 0;
|
|
const int is_unsigned = neg_one > const_zero;
|
|
if (sizeof(signed int) < sizeof(long)) {
|
|
long val = __Pyx_PyInt_AsLong(x);
|
|
if (unlikely(val != (long)(signed int)val)) {
|
|
if (!unlikely(val == -1 && PyErr_Occurred())) {
|
|
PyErr_SetString(PyExc_OverflowError,
|
|
(is_unsigned && unlikely(val < 0)) ?
|
|
"can't convert negative value to signed int" :
|
|
"value too large to convert to signed int");
|
|
}
|
|
return (signed int)-1;
|
|
}
|
|
return (signed int)val;
|
|
}
|
|
return (signed int)__Pyx_PyInt_AsSignedLong(x);
|
|
}
|
|
|
|
static CYTHON_INLINE int __Pyx_PyInt_AsLongDouble(PyObject* x) {
|
|
const int neg_one = (int)-1, const_zero = 0;
|
|
const int is_unsigned = neg_one > const_zero;
|
|
if (sizeof(int) < sizeof(long)) {
|
|
long val = __Pyx_PyInt_AsLong(x);
|
|
if (unlikely(val != (long)(int)val)) {
|
|
if (!unlikely(val == -1 && PyErr_Occurred())) {
|
|
PyErr_SetString(PyExc_OverflowError,
|
|
(is_unsigned && unlikely(val < 0)) ?
|
|
"can't convert negative value to int" :
|
|
"value too large to convert to int");
|
|
}
|
|
return (int)-1;
|
|
}
|
|
return (int)val;
|
|
}
|
|
return (int)__Pyx_PyInt_AsLong(x);
|
|
}
|
|
|
|
static CYTHON_INLINE unsigned long __Pyx_PyInt_AsUnsignedLong(PyObject* x) {
|
|
const unsigned long neg_one = (unsigned long)-1, const_zero = 0;
|
|
const int is_unsigned = neg_one > const_zero;
|
|
#if PY_VERSION_HEX < 0x03000000
|
|
if (likely(PyInt_Check(x))) {
|
|
long val = PyInt_AS_LONG(x);
|
|
if (is_unsigned && unlikely(val < 0)) {
|
|
PyErr_SetString(PyExc_OverflowError,
|
|
"can't convert negative value to unsigned long");
|
|
return (unsigned long)-1;
|
|
}
|
|
return (unsigned long)val;
|
|
} else
|
|
#endif
|
|
if (likely(PyLong_Check(x))) {
|
|
if (is_unsigned) {
|
|
if (unlikely(Py_SIZE(x) < 0)) {
|
|
PyErr_SetString(PyExc_OverflowError,
|
|
"can't convert negative value to unsigned long");
|
|
return (unsigned long)-1;
|
|
}
|
|
return (unsigned long)PyLong_AsUnsignedLong(x);
|
|
} else {
|
|
return (unsigned long)PyLong_AsLong(x);
|
|
}
|
|
} else {
|
|
unsigned long val;
|
|
PyObject *tmp = __Pyx_PyNumber_Int(x);
|
|
if (!tmp) return (unsigned long)-1;
|
|
val = __Pyx_PyInt_AsUnsignedLong(tmp);
|
|
Py_DECREF(tmp);
|
|
return val;
|
|
}
|
|
}
|
|
|
|
static CYTHON_INLINE unsigned PY_LONG_LONG __Pyx_PyInt_AsUnsignedLongLong(PyObject* x) {
|
|
const unsigned PY_LONG_LONG neg_one = (unsigned PY_LONG_LONG)-1, const_zero = 0;
|
|
const int is_unsigned = neg_one > const_zero;
|
|
#if PY_VERSION_HEX < 0x03000000
|
|
if (likely(PyInt_Check(x))) {
|
|
long val = PyInt_AS_LONG(x);
|
|
if (is_unsigned && unlikely(val < 0)) {
|
|
PyErr_SetString(PyExc_OverflowError,
|
|
"can't convert negative value to unsigned PY_LONG_LONG");
|
|
return (unsigned PY_LONG_LONG)-1;
|
|
}
|
|
return (unsigned PY_LONG_LONG)val;
|
|
} else
|
|
#endif
|
|
if (likely(PyLong_Check(x))) {
|
|
if (is_unsigned) {
|
|
if (unlikely(Py_SIZE(x) < 0)) {
|
|
PyErr_SetString(PyExc_OverflowError,
|
|
"can't convert negative value to unsigned PY_LONG_LONG");
|
|
return (unsigned PY_LONG_LONG)-1;
|
|
}
|
|
return (unsigned PY_LONG_LONG)PyLong_AsUnsignedLongLong(x);
|
|
} else {
|
|
return (unsigned PY_LONG_LONG)PyLong_AsLongLong(x);
|
|
}
|
|
} else {
|
|
unsigned PY_LONG_LONG val;
|
|
PyObject *tmp = __Pyx_PyNumber_Int(x);
|
|
if (!tmp) return (unsigned PY_LONG_LONG)-1;
|
|
val = __Pyx_PyInt_AsUnsignedLongLong(tmp);
|
|
Py_DECREF(tmp);
|
|
return val;
|
|
}
|
|
}
|
|
|
|
static CYTHON_INLINE long __Pyx_PyInt_AsLong(PyObject* x) {
|
|
const long neg_one = (long)-1, const_zero = 0;
|
|
const int is_unsigned = neg_one > const_zero;
|
|
#if PY_VERSION_HEX < 0x03000000
|
|
if (likely(PyInt_Check(x))) {
|
|
long val = PyInt_AS_LONG(x);
|
|
if (is_unsigned && unlikely(val < 0)) {
|
|
PyErr_SetString(PyExc_OverflowError,
|
|
"can't convert negative value to long");
|
|
return (long)-1;
|
|
}
|
|
return (long)val;
|
|
} else
|
|
#endif
|
|
if (likely(PyLong_Check(x))) {
|
|
if (is_unsigned) {
|
|
if (unlikely(Py_SIZE(x) < 0)) {
|
|
PyErr_SetString(PyExc_OverflowError,
|
|
"can't convert negative value to long");
|
|
return (long)-1;
|
|
}
|
|
return (long)PyLong_AsUnsignedLong(x);
|
|
} else {
|
|
return (long)PyLong_AsLong(x);
|
|
}
|
|
} else {
|
|
long val;
|
|
PyObject *tmp = __Pyx_PyNumber_Int(x);
|
|
if (!tmp) return (long)-1;
|
|
val = __Pyx_PyInt_AsLong(tmp);
|
|
Py_DECREF(tmp);
|
|
return val;
|
|
}
|
|
}
|
|
|
|
static CYTHON_INLINE PY_LONG_LONG __Pyx_PyInt_AsLongLong(PyObject* x) {
|
|
const PY_LONG_LONG neg_one = (PY_LONG_LONG)-1, const_zero = 0;
|
|
const int is_unsigned = neg_one > const_zero;
|
|
#if PY_VERSION_HEX < 0x03000000
|
|
if (likely(PyInt_Check(x))) {
|
|
long val = PyInt_AS_LONG(x);
|
|
if (is_unsigned && unlikely(val < 0)) {
|
|
PyErr_SetString(PyExc_OverflowError,
|
|
"can't convert negative value to PY_LONG_LONG");
|
|
return (PY_LONG_LONG)-1;
|
|
}
|
|
return (PY_LONG_LONG)val;
|
|
} else
|
|
#endif
|
|
if (likely(PyLong_Check(x))) {
|
|
if (is_unsigned) {
|
|
if (unlikely(Py_SIZE(x) < 0)) {
|
|
PyErr_SetString(PyExc_OverflowError,
|
|
"can't convert negative value to PY_LONG_LONG");
|
|
return (PY_LONG_LONG)-1;
|
|
}
|
|
return (PY_LONG_LONG)PyLong_AsUnsignedLongLong(x);
|
|
} else {
|
|
return (PY_LONG_LONG)PyLong_AsLongLong(x);
|
|
}
|
|
} else {
|
|
PY_LONG_LONG val;
|
|
PyObject *tmp = __Pyx_PyNumber_Int(x);
|
|
if (!tmp) return (PY_LONG_LONG)-1;
|
|
val = __Pyx_PyInt_AsLongLong(tmp);
|
|
Py_DECREF(tmp);
|
|
return val;
|
|
}
|
|
}
|
|
|
|
static CYTHON_INLINE signed long __Pyx_PyInt_AsSignedLong(PyObject* x) {
|
|
const signed long neg_one = (signed long)-1, const_zero = 0;
|
|
const int is_unsigned = neg_one > const_zero;
|
|
#if PY_VERSION_HEX < 0x03000000
|
|
if (likely(PyInt_Check(x))) {
|
|
long val = PyInt_AS_LONG(x);
|
|
if (is_unsigned && unlikely(val < 0)) {
|
|
PyErr_SetString(PyExc_OverflowError,
|
|
"can't convert negative value to signed long");
|
|
return (signed long)-1;
|
|
}
|
|
return (signed long)val;
|
|
} else
|
|
#endif
|
|
if (likely(PyLong_Check(x))) {
|
|
if (is_unsigned) {
|
|
if (unlikely(Py_SIZE(x) < 0)) {
|
|
PyErr_SetString(PyExc_OverflowError,
|
|
"can't convert negative value to signed long");
|
|
return (signed long)-1;
|
|
}
|
|
return (signed long)PyLong_AsUnsignedLong(x);
|
|
} else {
|
|
return (signed long)PyLong_AsLong(x);
|
|
}
|
|
} else {
|
|
signed long val;
|
|
PyObject *tmp = __Pyx_PyNumber_Int(x);
|
|
if (!tmp) return (signed long)-1;
|
|
val = __Pyx_PyInt_AsSignedLong(tmp);
|
|
Py_DECREF(tmp);
|
|
return val;
|
|
}
|
|
}
|
|
|
|
static CYTHON_INLINE signed PY_LONG_LONG __Pyx_PyInt_AsSignedLongLong(PyObject* x) {
|
|
const signed PY_LONG_LONG neg_one = (signed PY_LONG_LONG)-1, const_zero = 0;
|
|
const int is_unsigned = neg_one > const_zero;
|
|
#if PY_VERSION_HEX < 0x03000000
|
|
if (likely(PyInt_Check(x))) {
|
|
long val = PyInt_AS_LONG(x);
|
|
if (is_unsigned && unlikely(val < 0)) {
|
|
PyErr_SetString(PyExc_OverflowError,
|
|
"can't convert negative value to signed PY_LONG_LONG");
|
|
return (signed PY_LONG_LONG)-1;
|
|
}
|
|
return (signed PY_LONG_LONG)val;
|
|
} else
|
|
#endif
|
|
if (likely(PyLong_Check(x))) {
|
|
if (is_unsigned) {
|
|
if (unlikely(Py_SIZE(x) < 0)) {
|
|
PyErr_SetString(PyExc_OverflowError,
|
|
"can't convert negative value to signed PY_LONG_LONG");
|
|
return (signed PY_LONG_LONG)-1;
|
|
}
|
|
return (signed PY_LONG_LONG)PyLong_AsUnsignedLongLong(x);
|
|
} else {
|
|
return (signed PY_LONG_LONG)PyLong_AsLongLong(x);
|
|
}
|
|
} else {
|
|
signed PY_LONG_LONG val;
|
|
PyObject *tmp = __Pyx_PyNumber_Int(x);
|
|
if (!tmp) return (signed PY_LONG_LONG)-1;
|
|
val = __Pyx_PyInt_AsSignedLongLong(tmp);
|
|
Py_DECREF(tmp);
|
|
return val;
|
|
}
|
|
}
|
|
|
|
static CYTHON_INLINE int __Pyx_StrEq(const char *s1, const char *s2) {
|
|
while (*s1 != '\0' && *s1 == *s2) { s1++; s2++; }
|
|
return *s1 == *s2;
|
|
}
|
|
|
|
static int __Pyx_check_binary_version(void) {
|
|
char ctversion[4], rtversion[4];
|
|
PyOS_snprintf(ctversion, 4, "%d.%d", PY_MAJOR_VERSION, PY_MINOR_VERSION);
|
|
PyOS_snprintf(rtversion, 4, "%s", Py_GetVersion());
|
|
if (ctversion[0] != rtversion[0] || ctversion[2] != rtversion[2]) {
|
|
char message[200];
|
|
PyOS_snprintf(message, sizeof(message),
|
|
"compiletime version %s of module '%.100s' "
|
|
"does not match runtime version %s",
|
|
ctversion, __Pyx_MODULE_NAME, rtversion);
|
|
#if PY_VERSION_HEX < 0x02050000
|
|
return PyErr_Warn(NULL, message);
|
|
#else
|
|
return PyErr_WarnEx(NULL, message, 1);
|
|
#endif
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
#include "compile.h"
|
|
#include "frameobject.h"
|
|
#include "traceback.h"
|
|
|
|
static void __Pyx_AddTraceback(const char *funcname, int __pyx_clineno,
|
|
int __pyx_lineno, const char *__pyx_filename) {
|
|
PyObject *py_srcfile = 0;
|
|
PyObject *py_funcname = 0;
|
|
PyObject *py_globals = 0;
|
|
PyCodeObject *py_code = 0;
|
|
PyFrameObject *py_frame = 0;
|
|
|
|
#if PY_MAJOR_VERSION < 3
|
|
py_srcfile = PyString_FromString(__pyx_filename);
|
|
#else
|
|
py_srcfile = PyUnicode_FromString(__pyx_filename);
|
|
#endif
|
|
if (!py_srcfile) goto bad;
|
|
if (__pyx_clineno) {
|
|
#if PY_MAJOR_VERSION < 3
|
|
py_funcname = PyString_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, __pyx_clineno);
|
|
#else
|
|
py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, __pyx_clineno);
|
|
#endif
|
|
}
|
|
else {
|
|
#if PY_MAJOR_VERSION < 3
|
|
py_funcname = PyString_FromString(funcname);
|
|
#else
|
|
py_funcname = PyUnicode_FromString(funcname);
|
|
#endif
|
|
}
|
|
if (!py_funcname) goto bad;
|
|
py_globals = PyModule_GetDict(__pyx_m);
|
|
if (!py_globals) goto bad;
|
|
py_code = PyCode_New(
|
|
0, /*int argcount,*/
|
|
#if PY_MAJOR_VERSION >= 3
|
|
0, /*int kwonlyargcount,*/
|
|
#endif
|
|
0, /*int nlocals,*/
|
|
0, /*int stacksize,*/
|
|
0, /*int flags,*/
|
|
__pyx_empty_bytes, /*PyObject *code,*/
|
|
__pyx_empty_tuple, /*PyObject *consts,*/
|
|
__pyx_empty_tuple, /*PyObject *names,*/
|
|
__pyx_empty_tuple, /*PyObject *varnames,*/
|
|
__pyx_empty_tuple, /*PyObject *freevars,*/
|
|
__pyx_empty_tuple, /*PyObject *cellvars,*/
|
|
py_srcfile, /*PyObject *filename,*/
|
|
py_funcname, /*PyObject *name,*/
|
|
__pyx_lineno, /*int firstlineno,*/
|
|
__pyx_empty_bytes /*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(py_code);
|
|
Py_XDECREF(py_frame);
|
|
}
|
|
|
|
static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) {
|
|
while (t->p) {
|
|
#if PY_MAJOR_VERSION < 3
|
|
if (t->is_unicode) {
|
|
*t->p = PyUnicode_DecodeUTF8(t->s, t->n - 1, NULL);
|
|
} else if (t->intern) {
|
|
*t->p = PyString_InternFromString(t->s);
|
|
} else {
|
|
*t->p = PyString_FromStringAndSize(t->s, t->n - 1);
|
|
}
|
|
#else /* Python 3+ has unicode identifiers */
|
|
if (t->is_unicode | t->is_str) {
|
|
if (t->intern) {
|
|
*t->p = PyUnicode_InternFromString(t->s);
|
|
} else if (t->encoding) {
|
|
*t->p = PyUnicode_Decode(t->s, t->n - 1, t->encoding, NULL);
|
|
} else {
|
|
*t->p = PyUnicode_FromStringAndSize(t->s, t->n - 1);
|
|
}
|
|
} else {
|
|
*t->p = PyBytes_FromStringAndSize(t->s, t->n - 1);
|
|
}
|
|
#endif
|
|
if (!*t->p)
|
|
return -1;
|
|
++t;
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
/* Type Conversion Functions */
|
|
|
|
static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject* x) {
|
|
int is_true = x == Py_True;
|
|
if (is_true | (x == Py_False) | (x == Py_None)) return is_true;
|
|
else return PyObject_IsTrue(x);
|
|
}
|
|
|
|
static CYTHON_INLINE PyObject* __Pyx_PyNumber_Int(PyObject* x) {
|
|
PyNumberMethods *m;
|
|
const char *name = NULL;
|
|
PyObject *res = NULL;
|
|
#if PY_VERSION_HEX < 0x03000000
|
|
if (PyInt_Check(x) || PyLong_Check(x))
|
|
#else
|
|
if (PyLong_Check(x))
|
|
#endif
|
|
return Py_INCREF(x), x;
|
|
m = Py_TYPE(x)->tp_as_number;
|
|
#if PY_VERSION_HEX < 0x03000000
|
|
if (m && m->nb_int) {
|
|
name = "int";
|
|
res = PyNumber_Int(x);
|
|
}
|
|
else if (m && m->nb_long) {
|
|
name = "long";
|
|
res = PyNumber_Long(x);
|
|
}
|
|
#else
|
|
if (m && m->nb_int) {
|
|
name = "int";
|
|
res = PyNumber_Long(x);
|
|
}
|
|
#endif
|
|
if (res) {
|
|
#if PY_VERSION_HEX < 0x03000000
|
|
if (!PyInt_Check(res) && !PyLong_Check(res)) {
|
|
#else
|
|
if (!PyLong_Check(res)) {
|
|
#endif
|
|
PyErr_Format(PyExc_TypeError,
|
|
"__%s__ returned non-%s (type %.200s)",
|
|
name, name, Py_TYPE(res)->tp_name);
|
|
Py_DECREF(res);
|
|
return NULL;
|
|
}
|
|
}
|
|
else if (!PyErr_Occurred()) {
|
|
PyErr_SetString(PyExc_TypeError,
|
|
"an integer is required");
|
|
}
|
|
return res;
|
|
}
|
|
|
|
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
|
|
Py_ssize_t ival;
|
|
PyObject* x = PyNumber_Index(b);
|
|
if (!x) return -1;
|
|
ival = PyInt_AsSsize_t(x);
|
|
Py_DECREF(x);
|
|
return ival;
|
|
}
|
|
|
|
static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) {
|
|
#if PY_VERSION_HEX < 0x02050000
|
|
if (ival <= LONG_MAX)
|
|
return PyInt_FromLong((long)ival);
|
|
else {
|
|
unsigned char *bytes = (unsigned char *) &ival;
|
|
int one = 1; int little = (int)*(unsigned char*)&one;
|
|
return _PyLong_FromByteArray(bytes, sizeof(size_t), little, 0);
|
|
}
|
|
#else
|
|
return PyInt_FromSize_t(ival);
|
|
#endif
|
|
}
|
|
|
|
static CYTHON_INLINE size_t __Pyx_PyInt_AsSize_t(PyObject* x) {
|
|
unsigned PY_LONG_LONG val = __Pyx_PyInt_AsUnsignedLongLong(x);
|
|
if (unlikely(val == (unsigned PY_LONG_LONG)-1 && PyErr_Occurred())) {
|
|
return (size_t)-1;
|
|
} else if (unlikely(val != (unsigned PY_LONG_LONG)(size_t)val)) {
|
|
PyErr_SetString(PyExc_OverflowError,
|
|
"value too large to convert to size_t");
|
|
return (size_t)-1;
|
|
}
|
|
return (size_t)val;
|
|
}
|
|
|
|
|
|
#endif /* Py_PYTHON_H */
|