python/pyyaml/ext/_yaml.c
author Carsten "Tomcat" Book <cbook@mozilla.com>
Fri, 06 Nov 2015 13:59:27 +0100
changeset 293148 5dbceb9638a01828296241661ff3c644d894f118
parent 243151 5edda558c6555e518d3579f89854b556c453c66a
permissions -rw-r--r--
Merge mozilla-central to fx-team

/* Generated by Cython 0.20.1 on Wed Mar 26 13:55:16 2014 */

#define PY_SSIZE_T_CLEAN
#ifndef CYTHON_USE_PYLONG_INTERNALS
#ifdef PYLONG_BITS_IN_DIGIT
#define CYTHON_USE_PYLONG_INTERNALS 0
#else
#include "pyconfig.h"
#ifdef PYLONG_BITS_IN_DIGIT
#define CYTHON_USE_PYLONG_INTERNALS 1
#else
#define CYTHON_USE_PYLONG_INTERNALS 0
#endif
#endif
#endif
#include "Python.h"
#ifndef Py_PYTHON_H
    #error Python headers needed to compile C extensions, please install development version of Python.
#elif PY_VERSION_HEX < 0x02040000
    #error Cython requires Python 2.4+.
#else
#define CYTHON_ABI "0_20_1"
#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
#ifndef Py_HUGE_VAL
  #define Py_HUGE_VAL HUGE_VAL
#endif
#ifdef PYPY_VERSION
#define CYTHON_COMPILING_IN_PYPY 1
#define CYTHON_COMPILING_IN_CPYTHON 0
#else
#define CYTHON_COMPILING_IN_PYPY 0
#define CYTHON_COMPILING_IN_CPYTHON 1
#endif
#if CYTHON_COMPILING_IN_PYPY
#define Py_OptimizeFlag 0
#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 CYTHON_FORMAT_SSIZE_T ""
  #define PyInt_FromSsize_t(z) PyInt_FromLong(z)
  #define PyInt_AsSsize_t(o)   __Pyx_PyInt_As_int(o)
  #define PyNumber_Index(o)    ((PyNumber_Check(o) && !PyFloat_Check(o)) ? PyNumber_Int(o) : \
                                (PyErr_Format(PyExc_TypeError, \
                                              "expected index value, got %.200s", Py_TYPE(o)->tp_name), \
                                 (PyObject*)0))
  #define __Pyx_PyIndex_Check(o) (PyNumber_Check(o) && !PyFloat_Check(o) && \
                                  !PyComplex_Check(o))
  #define PyIndex_Check __Pyx_PyIndex_Check
  #define PyErr_WarnEx(category, message, stacklevel) PyErr_Warn(category, message)
  #define __PYX_BUILD_PY_SSIZE_T "i"
#else
  #define __PYX_BUILD_PY_SSIZE_T "n"
  #define CYTHON_FORMAT_SSIZE_T "z"
  #define __Pyx_PyIndex_Check PyIndex_Check
#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)
  #define PyBUF_RECORDS (PyBUF_STRIDES | PyBUF_FORMAT | PyBUF_WRITABLE)
  #define PyBUF_FULL (PyBUF_INDIRECT | PyBUF_FORMAT | PyBUF_WRITABLE)
  typedef int (*getbufferproc)(PyObject *, Py_buffer *, int);
  typedef void (*releasebufferproc)(PyObject *, Py_buffer *);
#endif
#if PY_MAJOR_VERSION < 3
  #define __Pyx_BUILTIN_MODULE_NAME "__builtin__"
  #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) \
          PyCode_New(a+k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
  #define __Pyx_DefaultClassType PyClass_Type
#else
  #define __Pyx_BUILTIN_MODULE_NAME "builtins"
  #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) \
          PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
  #define __Pyx_DefaultClassType PyType_Type
#endif
#if PY_VERSION_HEX < 0x02060000
  #define PyUnicode_FromString(s) PyUnicode_Decode(s, strlen(s), "UTF-8", "strict")
#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_VERSION_HEX < 0x02060000
  #define Py_TPFLAGS_HAVE_VERSION_TAG 0
#endif
#if PY_VERSION_HEX < 0x02060000 && !defined(Py_TPFLAGS_IS_ABSTRACT)
  #define Py_TPFLAGS_IS_ABSTRACT 0
#endif
#if PY_VERSION_HEX < 0x030400a1 && !defined(Py_TPFLAGS_HAVE_FINALIZE)
  #define Py_TPFLAGS_HAVE_FINALIZE 0
#endif
#if PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND)
  #define CYTHON_PEP393_ENABLED 1
  #define __Pyx_PyUnicode_READY(op)       (likely(PyUnicode_IS_READY(op)) ? \
                                              0 : _PyUnicode_Ready((PyObject *)(op)))
  #define __Pyx_PyUnicode_GET_LENGTH(u)   PyUnicode_GET_LENGTH(u)
  #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i)
  #define __Pyx_PyUnicode_KIND(u)         PyUnicode_KIND(u)
  #define __Pyx_PyUnicode_DATA(u)         PyUnicode_DATA(u)
  #define __Pyx_PyUnicode_READ(k, d, i)   PyUnicode_READ(k, d, i)
#else
  #define CYTHON_PEP393_ENABLED 0
  #define __Pyx_PyUnicode_READY(op)       (0)
  #define __Pyx_PyUnicode_GET_LENGTH(u)   PyUnicode_GET_SIZE(u)
  #define __Pyx_PyUnicode_READ_CHAR(u, i) ((Py_UCS4)(PyUnicode_AS_UNICODE(u)[i]))
  #define __Pyx_PyUnicode_KIND(u)         (sizeof(Py_UNICODE))
  #define __Pyx_PyUnicode_DATA(u)         ((void*)PyUnicode_AS_UNICODE(u))
  #define __Pyx_PyUnicode_READ(k, d, i)   ((void)(k), (Py_UCS4)(((Py_UNICODE*)d)[i]))
#endif
#if CYTHON_COMPILING_IN_PYPY
  #define __Pyx_PyUnicode_Concat(a, b)      PyNumber_Add(a, b)
  #define __Pyx_PyUnicode_ConcatSafe(a, b)  PyNumber_Add(a, b)
#else
  #define __Pyx_PyUnicode_Concat(a, b)      PyUnicode_Concat(a, b)
  #define __Pyx_PyUnicode_ConcatSafe(a, b)  ((unlikely((a) == Py_None) || unlikely((b) == Py_None)) ? \
      PyNumber_Add(a, b) : __Pyx_PyUnicode_Concat(a, b))
#endif
#define __Pyx_PyString_FormatSafe(a, b)  ((unlikely((a) == Py_None)) ? PyNumber_Remainder(a, b) : __Pyx_PyString_Format(a, b))
#define __Pyx_PyUnicode_FormatSafe(a, b)  ((unlikely((a) == Py_None)) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b))
#if PY_MAJOR_VERSION >= 3
  #define __Pyx_PyString_Format(a, b)  PyUnicode_Format(a, b)
#else
  #define __Pyx_PyString_Format(a, b)  PyString_Format(a, b)
#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_MAJOR_VERSION >= 3
  #define __Pyx_PyBaseString_Check(obj) PyUnicode_Check(obj)
  #define __Pyx_PyBaseString_CheckExact(obj) PyUnicode_CheckExact(obj)
#else
  #define __Pyx_PyBaseString_Check(obj) (PyString_CheckExact(obj) || PyUnicode_CheckExact(obj) || \
                                         PyString_Check(obj) || PyUnicode_Check(obj))
  #define __Pyx_PyBaseString_CheckExact(obj) (PyString_CheckExact(obj) || PyUnicode_CheckExact(obj))
#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
  #define PyNumber_Int                 PyNumber_Long
#endif
#if PY_MAJOR_VERSION >= 3
  #define PyBoolObject                 PyLongObject
#endif
#if PY_VERSION_HEX < 0x030200A4
  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) || (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 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
#ifndef CYTHON_RESTRICT
  #if defined(__GNUC__)
    #define CYTHON_RESTRICT __restrict__
  #elif defined(_MSC_VER) && _MSC_VER >= 1400
    #define CYTHON_RESTRICT __restrict
  #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
    #define CYTHON_RESTRICT restrict
  #else
    #define CYTHON_RESTRICT
  #endif
#endif
#ifdef NAN
#define __PYX_NAN() ((float) NAN)
#else
static CYTHON_INLINE float __PYX_NAN() {
  /* Initialize NaN. The sign is irrelevant, an exponent with all bits 1 and
   a nonzero mantissa means NaN. If the first bit in the mantissa is 1, it is
   a quiet NaN. */
  float value;
  memset(&value, 0xFF, sizeof(value));
  return value;
}
#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

#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___yaml
#define __PYX_HAVE_API___yaml
#include "_yaml.h"
#ifdef _OPENMP
#include <omp.h>
#endif /* _OPENMP */

#ifdef PYREX_WITHOUT_ASSERTIONS
#define CYTHON_WITHOUT_ASSERTIONS
#endif

#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) && !defined(_MSC_VER))
#   define CYTHON_UNUSED __attribute__ ((__unused__))
# else
#   define CYTHON_UNUSED
# endif
#endif
typedef struct {PyObject **p; char *s; const Py_ssize_t n; const char* encoding;
                const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry; /*proto*/

#define __PYX_DEFAULT_STRING_ENCODING_IS_ASCII 0
#define __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT 0
#define __PYX_DEFAULT_STRING_ENCODING ""
#define __Pyx_PyObject_FromString __Pyx_PyBytes_FromString
#define __Pyx_PyObject_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
#define __Pyx_fits_Py_ssize_t(v, type, is_signed)  (    \
    (sizeof(type) < sizeof(Py_ssize_t))  ||             \
    (sizeof(type) > sizeof(Py_ssize_t) &&               \
          likely(v < (type)PY_SSIZE_T_MAX ||            \
                 v == (type)PY_SSIZE_T_MAX)  &&         \
          (!is_signed || likely(v > (type)PY_SSIZE_T_MIN ||       \
                                v == (type)PY_SSIZE_T_MIN)))  ||  \
    (sizeof(type) == sizeof(Py_ssize_t) &&              \
          (is_signed || likely(v < (type)PY_SSIZE_T_MAX ||        \
                               v == (type)PY_SSIZE_T_MAX)))  )
static CYTHON_INLINE char* __Pyx_PyObject_AsString(PyObject*);
static CYTHON_INLINE char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length);
#define __Pyx_PyByteArray_FromString(s) PyByteArray_FromStringAndSize((const char*)s, strlen((const char*)s))
#define __Pyx_PyByteArray_FromStringAndSize(s, l) PyByteArray_FromStringAndSize((const char*)s, l)
#define __Pyx_PyBytes_FromString        PyBytes_FromString
#define __Pyx_PyBytes_FromStringAndSize PyBytes_FromStringAndSize
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(char*);
#if PY_MAJOR_VERSION < 3
    #define __Pyx_PyStr_FromString        __Pyx_PyBytes_FromString
    #define __Pyx_PyStr_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
#else
    #define __Pyx_PyStr_FromString        __Pyx_PyUnicode_FromString
    #define __Pyx_PyStr_FromStringAndSize __Pyx_PyUnicode_FromStringAndSize
#endif
#define __Pyx_PyObject_AsSString(s)    ((signed char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsUString(s)    ((unsigned char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_FromUString(s)  __Pyx_PyObject_FromString((char*)s)
#define __Pyx_PyBytes_FromUString(s)   __Pyx_PyBytes_FromString((char*)s)
#define __Pyx_PyByteArray_FromUString(s)   __Pyx_PyByteArray_FromString((char*)s)
#define __Pyx_PyStr_FromUString(s)     __Pyx_PyStr_FromString((char*)s)
#define __Pyx_PyUnicode_FromUString(s) __Pyx_PyUnicode_FromString((char*)s)
#if PY_MAJOR_VERSION < 3
static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u)
{
    const Py_UNICODE *u_end = u;
    while (*u_end++) ;
    return u_end - u - 1;
}
#else
#define __Pyx_Py_UNICODE_strlen Py_UNICODE_strlen
#endif
#define __Pyx_PyUnicode_FromUnicode(u)       PyUnicode_FromUnicode(u, __Pyx_Py_UNICODE_strlen(u))
#define __Pyx_PyUnicode_FromUnicodeAndLength PyUnicode_FromUnicode
#define __Pyx_PyUnicode_AsUnicode            PyUnicode_AsUnicode
#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);
#if CYTHON_COMPILING_IN_CPYTHON
#define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x))
#else
#define __pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x)
#endif
#define __pyx_PyFloat_AsFloat(x) ((float) __pyx_PyFloat_AsDouble(x))
#if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
static int __Pyx_sys_getdefaultencoding_not_ascii;
static int __Pyx_init_sys_getdefaultencoding_params(void) {
    PyObject* sys = NULL;
    PyObject* default_encoding = NULL;
    PyObject* ascii_chars_u = NULL;
    PyObject* ascii_chars_b = NULL;
    sys = PyImport_ImportModule("sys");
    if (sys == NULL) goto bad;
    default_encoding = PyObject_CallMethod(sys, (char*) (const char*) "getdefaultencoding", NULL);
    if (default_encoding == NULL) goto bad;
    if (strcmp(PyBytes_AsString(default_encoding), "ascii") == 0) {
        __Pyx_sys_getdefaultencoding_not_ascii = 0;
    } else {
        const char* default_encoding_c = PyBytes_AS_STRING(default_encoding);
        char ascii_chars[128];
        int c;
        for (c = 0; c < 128; c++) {
            ascii_chars[c] = c;
        }
        __Pyx_sys_getdefaultencoding_not_ascii = 1;
        ascii_chars_u = PyUnicode_DecodeASCII(ascii_chars, 128, NULL);
        if (ascii_chars_u == NULL) goto bad;
        ascii_chars_b = PyUnicode_AsEncodedString(ascii_chars_u, default_encoding_c, NULL);
        if (ascii_chars_b == NULL || strncmp(ascii_chars, PyBytes_AS_STRING(ascii_chars_b), 128) != 0) {
            PyErr_Format(
                PyExc_ValueError,
                "This module compiled with c_string_encoding=ascii, but default encoding '%.200s' is not a superset of ascii.",
                default_encoding_c);
            goto bad;
        }
    }
    Py_XDECREF(sys);
    Py_XDECREF(default_encoding);
    Py_XDECREF(ascii_chars_u);
    Py_XDECREF(ascii_chars_b);
    return 0;
bad:
    Py_XDECREF(sys);
    Py_XDECREF(default_encoding);
    Py_XDECREF(ascii_chars_u);
    Py_XDECREF(ascii_chars_b);
    return -1;
}
#endif
#if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT && PY_MAJOR_VERSION >= 3
#define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeUTF8(c_str, size, NULL)
#else
#define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING, NULL)
#if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
static char* __PYX_DEFAULT_STRING_ENCODING;
static int __Pyx_init_sys_getdefaultencoding_params(void) {
    PyObject* sys = NULL;
    PyObject* default_encoding = NULL;
    char* default_encoding_c;
    sys = PyImport_ImportModule("sys");
    if (sys == NULL) goto bad;
    default_encoding = PyObject_CallMethod(sys, (char*) (const char*) "getdefaultencoding", NULL);
    if (default_encoding == NULL) goto bad;
    default_encoding_c = PyBytes_AS_STRING(default_encoding);
    __PYX_DEFAULT_STRING_ENCODING = (char*) malloc(strlen(default_encoding_c));
    strcpy(__PYX_DEFAULT_STRING_ENCODING, default_encoding_c);
    Py_DECREF(sys);
    Py_DECREF(default_encoding);
    return 0;
bad:
    Py_XDECREF(sys);
    Py_XDECREF(default_encoding);
    return -1;
}
#endif
#endif


#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_d;
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[] = {
  "_yaml.pyx",
};

/*--- Type declarations ---*/
struct __pyx_obj_5_yaml_Mark;
struct __pyx_obj_5_yaml_CParser;
struct __pyx_obj_5_yaml_CEmitter;

/* "_yaml.pyx":64
 * MappingNode = yaml.nodes.MappingNode
 * 
 * cdef class Mark:             # <<<<<<<<<<<<<<
 *     cdef readonly object name
 *     cdef readonly int index
 */
struct __pyx_obj_5_yaml_Mark {
  PyObject_HEAD
  PyObject *name;
  int index;
  int line;
  int column;
  PyObject *buffer;
  PyObject *pointer;
};


/* "_yaml.pyx":247
 * #        self.style = style
 * 
 * cdef class CParser:             # <<<<<<<<<<<<<<
 * 
 *     cdef yaml_parser_t parser
 */
struct __pyx_obj_5_yaml_CParser {
  PyObject_HEAD
  struct __pyx_vtabstruct_5_yaml_CParser *__pyx_vtab;
  yaml_parser_t parser;
  yaml_event_t parsed_event;
  PyObject *stream;
  PyObject *stream_name;
  PyObject *current_token;
  PyObject *current_event;
  PyObject *anchors;
  PyObject *stream_cache;
  int stream_cache_len;
  int stream_cache_pos;
  int unicode_source;
};


/* "_yaml.pyx":935
 *     return 1
 * 
 * cdef class CEmitter:             # <<<<<<<<<<<<<<
 * 
 *     cdef yaml_emitter_t emitter
 */
struct __pyx_obj_5_yaml_CEmitter {
  PyObject_HEAD
  struct __pyx_vtabstruct_5_yaml_CEmitter *__pyx_vtab;
  yaml_emitter_t emitter;
  PyObject *stream;
  int document_start_implicit;
  int document_end_implicit;
  PyObject *use_version;
  PyObject *use_tags;
  PyObject *serialized_nodes;
  PyObject *anchors;
  int last_alias_id;
  int closed;
  int dump_unicode;
  PyObject *use_encoding;
};



/* "_yaml.pyx":247
 * #        self.style = style
 * 
 * cdef class CParser:             # <<<<<<<<<<<<<<
 * 
 *     cdef yaml_parser_t parser
 */

struct __pyx_vtabstruct_5_yaml_CParser {
  PyObject *(*_parser_error)(struct __pyx_obj_5_yaml_CParser *);
  PyObject *(*_scan)(struct __pyx_obj_5_yaml_CParser *);
  PyObject *(*_token_to_object)(struct __pyx_obj_5_yaml_CParser *, yaml_token_t *);
  PyObject *(*_parse)(struct __pyx_obj_5_yaml_CParser *);
  PyObject *(*_event_to_object)(struct __pyx_obj_5_yaml_CParser *, yaml_event_t *);
  PyObject *(*_compose_document)(struct __pyx_obj_5_yaml_CParser *);
  PyObject *(*_compose_node)(struct __pyx_obj_5_yaml_CParser *, PyObject *, PyObject *);
  PyObject *(*_compose_scalar_node)(struct __pyx_obj_5_yaml_CParser *, PyObject *);
  PyObject *(*_compose_sequence_node)(struct __pyx_obj_5_yaml_CParser *, PyObject *);
  PyObject *(*_compose_mapping_node)(struct __pyx_obj_5_yaml_CParser *, PyObject *);
  int (*_parse_next_event)(struct __pyx_obj_5_yaml_CParser *);
};
static struct __pyx_vtabstruct_5_yaml_CParser *__pyx_vtabptr_5_yaml_CParser;


/* "_yaml.pyx":935
 *     return 1
 * 
 * cdef class CEmitter:             # <<<<<<<<<<<<<<
 * 
 *     cdef yaml_emitter_t emitter
 */

struct __pyx_vtabstruct_5_yaml_CEmitter {
  PyObject *(*_emitter_error)(struct __pyx_obj_5_yaml_CEmitter *);
  int (*_object_to_event)(struct __pyx_obj_5_yaml_CEmitter *, PyObject *, yaml_event_t *);
  int (*_anchor_node)(struct __pyx_obj_5_yaml_CEmitter *, PyObject *);
  int (*_serialize_node)(struct __pyx_obj_5_yaml_CEmitter *, PyObject *, PyObject *, PyObject *);
};
static struct __pyx_vtabstruct_5_yaml_CEmitter *__pyx_vtabptr_5_yaml_CEmitter;
#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;
#ifdef WITH_THREAD
  #define __Pyx_RefNannySetupContext(name, acquire_gil) \
          if (acquire_gil) { \
              PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure(); \
              __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__); \
              PyGILState_Release(__pyx_gilstate_save); \
          } else { \
              __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__); \
          }
#else
  #define __Pyx_RefNannySetupContext(name, acquire_gil) \
          __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__)
#endif
  #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, acquire_gil)
  #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 */
#define __Pyx_XDECREF_SET(r, v) do {                            \
        PyObject *tmp = (PyObject *) r;                         \
        r = v; __Pyx_XDECREF(tmp);                              \
    } while (0)
#define __Pyx_DECREF_SET(r, v) do {                             \
        PyObject *tmp = (PyObject *) r;                         \
        r = v; __Pyx_DECREF(tmp);                               \
    } while (0)
#define __Pyx_CLEAR(r)    do { PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);} while(0)
#define __Pyx_XCLEAR(r)   do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0)

#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) {
    PyTypeObject* tp = Py_TYPE(obj);
    if (likely(tp->tp_getattro))
        return tp->tp_getattro(obj, attr_name);
#if PY_MAJOR_VERSION < 3
    if (likely(tp->tp_getattr))
        return tp->tp_getattr(obj, PyString_AS_STRING(attr_name));
#endif
    return PyObject_GetAttr(obj, attr_name);
}
#else
#define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n)
#endif

static PyObject *__Pyx_GetBuiltinName(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 void __Pyx_ExceptionSave(PyObject **type, PyObject **value, PyObject **tb); /*proto*/
static void __Pyx_ExceptionReset(PyObject *type, PyObject *value, PyObject *tb); /*proto*/

static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb); /*proto*/

#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw); /*proto*/
#else
#define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw)
#endif

static CYTHON_INLINE void __Pyx_ErrRestore(PyObject *type, PyObject *value, PyObject *tb); /*proto*/
static CYTHON_INLINE void __Pyx_ErrFetch(PyObject **type, PyObject **value, PyObject **tb); /*proto*/

static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause); /*proto*/

static CYTHON_INLINE PyObject *__Pyx_GetModuleGlobalName(PyObject *name); /*proto*/

static CYTHON_INLINE int __Pyx_CheckKeywordStrings(PyObject *kwdict, const char* function_name, int kw_allowed); /*proto*/

static CYTHON_INLINE int __Pyx_PySequence_Contains(PyObject* item, PyObject* seq, int eq) {
    int result = PySequence_Contains(seq, item);
    return unlikely(result < 0) ? result : (result == (eq == Py_EQ));
}

static CYTHON_INLINE void __Pyx_RaiseUnboundLocalError(const char *varname);

#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE int __Pyx_PyList_Append(PyObject* list, PyObject* x) {
    PyListObject* L = (PyListObject*) list;
    Py_ssize_t len = Py_SIZE(list);
    if (likely(L->allocated > len) & likely(len > (L->allocated >> 1))) {
        Py_INCREF(x);
        PyList_SET_ITEM(list, len, x);
        Py_SIZE(list) = len+1;
        return 0;
    }
    return PyList_Append(list, x);
}
#else
#define __Pyx_PyList_Append(L,x) PyList_Append(L,x)
#endif

#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_PyObject_DelAttrStr(o,n) __Pyx_PyObject_SetAttrStr(o,n,NULL)
static CYTHON_INLINE int __Pyx_PyObject_SetAttrStr(PyObject* obj, PyObject* attr_name, PyObject* value) {
    PyTypeObject* tp = Py_TYPE(obj);
    if (likely(tp->tp_setattro))
        return tp->tp_setattro(obj, attr_name, value);
#if PY_MAJOR_VERSION < 3
    if (likely(tp->tp_setattr))
        return tp->tp_setattr(obj, PyString_AS_STRING(attr_name), value);
#endif
    return PyObject_SetAttr(obj, attr_name, value);
}
#else
#define __Pyx_PyObject_DelAttrStr(o,n)   PyObject_DelAttr(o,n)
#define __Pyx_PyObject_SetAttrStr(o,n,v) PyObject_SetAttr(o,n,v)
#endif

static CYTHON_INLINE PyObject *__Pyx_GetAttr(PyObject *, PyObject *); /*proto*/

static CYTHON_INLINE PyObject *__Pyx_GetAttr3(PyObject *, PyObject *, PyObject *); /*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

#define __Pyx_GetItemInt(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck) \
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ? \
    __Pyx_GetItemInt_Fast(o, (Py_ssize_t)i, is_list, wraparound, boundscheck) : \
    (is_list ? (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL) : \
               __Pyx_GetItemInt_Generic(o, to_py_func(i))))
#define __Pyx_GetItemInt_List(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck) \
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ? \
    __Pyx_GetItemInt_List_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) : \
    (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL))
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i,
                                                              int wraparound, int boundscheck);
#define __Pyx_GetItemInt_Tuple(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck) \
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ? \
    __Pyx_GetItemInt_Tuple_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) : \
    (PyErr_SetString(PyExc_IndexError, "tuple index out of range"), (PyObject*)NULL))
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i,
                                                              int wraparound, int boundscheck);
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j);
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i,
                                                     int is_list, int wraparound, int boundscheck);

static CYTHON_INLINE void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected);

static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index);

static CYTHON_INLINE int __Pyx_IterFinish(void); /*proto*/

static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected); /*proto*/

static int __Pyx_SetVtable(PyObject *dict, void *vtable); /*proto*/

static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(int value);

static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level); /*proto*/

static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *);

static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value);

static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *);

static int __Pyx_check_binary_version(void);

typedef struct {
    int code_line;
    PyCodeObject* code_object;
} __Pyx_CodeObjectCacheEntry;
struct __Pyx_CodeObjectCache {
    int count;
    int max_count;
    __Pyx_CodeObjectCacheEntry* entries;
};
static struct __Pyx_CodeObjectCache __pyx_code_cache = {0,0,NULL};
static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line);
static PyCodeObject *__pyx_find_code_object(int code_line);
static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object);

static void __Pyx_AddTraceback(const char *funcname, int c_line,
                               int py_line, const char *filename); /*proto*/

static int __Pyx_InitStrings(__Pyx_StringTabEntry *t); /*proto*/


/* Module declarations from '_yaml' */
static PyTypeObject *__pyx_ptype_5_yaml_Mark = 0;
static PyTypeObject *__pyx_ptype_5_yaml_CParser = 0;
static PyTypeObject *__pyx_ptype_5_yaml_CEmitter = 0;
static int __pyx_f_5_yaml_input_handler(void *, char *, int, int *); /*proto*/
static int __pyx_f_5_yaml_output_handler(void *, char *, int); /*proto*/
#define __Pyx_MODULE_NAME "_yaml"
int __pyx_module_is_main__yaml = 0;

/* Implementation of '_yaml' */
static PyObject *__pyx_builtin_MemoryError;
static PyObject *__pyx_builtin_AttributeError;
static PyObject *__pyx_builtin_TypeError;
static PyObject *__pyx_builtin_ValueError;
static PyObject *__pyx_pf_5_yaml_get_version_string(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_5_yaml_2get_version(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static int __pyx_pf_5_yaml_4Mark___init__(struct __pyx_obj_5_yaml_Mark *__pyx_v_self, PyObject *__pyx_v_name, int __pyx_v_index, int __pyx_v_line, int __pyx_v_column, PyObject *__pyx_v_buffer, PyObject *__pyx_v_pointer); /* proto */
static PyObject *__pyx_pf_5_yaml_4Mark_2get_snippet(CYTHON_UNUSED struct __pyx_obj_5_yaml_Mark *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_yaml_4Mark_4__str__(struct __pyx_obj_5_yaml_Mark *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_yaml_4Mark_4name___get__(struct __pyx_obj_5_yaml_Mark *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_yaml_4Mark_5index___get__(struct __pyx_obj_5_yaml_Mark *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_yaml_4Mark_4line___get__(struct __pyx_obj_5_yaml_Mark *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_yaml_4Mark_6column___get__(struct __pyx_obj_5_yaml_Mark *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_yaml_4Mark_6buffer___get__(struct __pyx_obj_5_yaml_Mark *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_yaml_4Mark_7pointer___get__(struct __pyx_obj_5_yaml_Mark *__pyx_v_self); /* proto */
static int __pyx_pf_5_yaml_7CParser___init__(struct __pyx_obj_5_yaml_CParser *__pyx_v_self, PyObject *__pyx_v_stream); /* proto */
static void __pyx_pf_5_yaml_7CParser_2__dealloc__(struct __pyx_obj_5_yaml_CParser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_yaml_7CParser_4dispose(CYTHON_UNUSED struct __pyx_obj_5_yaml_CParser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_yaml_7CParser_6raw_scan(struct __pyx_obj_5_yaml_CParser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_yaml_7CParser_8get_token(struct __pyx_obj_5_yaml_CParser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_yaml_7CParser_10peek_token(struct __pyx_obj_5_yaml_CParser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_yaml_7CParser_12check_token(struct __pyx_obj_5_yaml_CParser *__pyx_v_self, PyObject *__pyx_v_choices); /* proto */
static PyObject *__pyx_pf_5_yaml_7CParser_14raw_parse(struct __pyx_obj_5_yaml_CParser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_yaml_7CParser_16get_event(struct __pyx_obj_5_yaml_CParser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_yaml_7CParser_18peek_event(struct __pyx_obj_5_yaml_CParser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_yaml_7CParser_20check_event(struct __pyx_obj_5_yaml_CParser *__pyx_v_self, PyObject *__pyx_v_choices); /* proto */
static PyObject *__pyx_pf_5_yaml_7CParser_22check_node(struct __pyx_obj_5_yaml_CParser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_yaml_7CParser_24get_node(struct __pyx_obj_5_yaml_CParser *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_yaml_7CParser_26get_single_node(struct __pyx_obj_5_yaml_CParser *__pyx_v_self); /* proto */
static int __pyx_pf_5_yaml_8CEmitter___init__(struct __pyx_obj_5_yaml_CEmitter *__pyx_v_self, PyObject *__pyx_v_stream, PyObject *__pyx_v_canonical, PyObject *__pyx_v_indent, PyObject *__pyx_v_width, PyObject *__pyx_v_allow_unicode, PyObject *__pyx_v_line_break, PyObject *__pyx_v_encoding, PyObject *__pyx_v_explicit_start, PyObject *__pyx_v_explicit_end, PyObject *__pyx_v_version, PyObject *__pyx_v_tags); /* proto */
static void __pyx_pf_5_yaml_8CEmitter_2__dealloc__(struct __pyx_obj_5_yaml_CEmitter *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_yaml_8CEmitter_4dispose(CYTHON_UNUSED struct __pyx_obj_5_yaml_CEmitter *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_yaml_8CEmitter_6emit(struct __pyx_obj_5_yaml_CEmitter *__pyx_v_self, PyObject *__pyx_v_event_object); /* proto */
static PyObject *__pyx_pf_5_yaml_8CEmitter_8open(struct __pyx_obj_5_yaml_CEmitter *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_yaml_8CEmitter_10close(struct __pyx_obj_5_yaml_CEmitter *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_5_yaml_8CEmitter_12serialize(struct __pyx_obj_5_yaml_CEmitter *__pyx_v_self, PyObject *__pyx_v_node); /* proto */
static PyObject *__pyx_tp_new_5_yaml_Mark(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_yaml_CParser(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_5_yaml_CEmitter(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static char __pyx_k__3[] = "?";
static char __pyx_k__6[] = "";
static char __pyx_k__7[] = "'";
static char __pyx_k__8[] = "\"";
static char __pyx_k__9[] = "|";
static char __pyx_k_TAG[] = "TAG";
static char __pyx_k__10[] = ">";
static char __pyx_k__17[] = "\r";
static char __pyx_k__18[] = "\n";
static char __pyx_k__19[] = "\r\n";
static char __pyx_k_tag[] = "tag";
static char __pyx_k_YAML[] = "YAML";
static char __pyx_k_file[] = "<file>";
static char __pyx_k_line[] = "line";
static char __pyx_k_main[] = "__main__";
static char __pyx_k_name[] = "name";
static char __pyx_k_read[] = "read";
static char __pyx_k_tags[] = "tags";
static char __pyx_k_test[] = "__test__";
static char __pyx_k_yaml[] = "yaml";
static char __pyx_k_class[] = "__class__";
static char __pyx_k_error[] = "error";
static char __pyx_k_index[] = "index";
static char __pyx_k_major[] = "major";
static char __pyx_k_minor[] = "minor";
static char __pyx_k_nodes[] = "nodes";
static char __pyx_k_patch[] = "patch";
static char __pyx_k_style[] = "style";
static char __pyx_k_utf_8[] = "utf-8";
static char __pyx_k_value[] = "value";
static char __pyx_k_width[] = "width";
static char __pyx_k_write[] = "write";
static char __pyx_k_anchor[] = "anchor";
static char __pyx_k_buffer[] = "buffer";
static char __pyx_k_column[] = "column";
static char __pyx_k_events[] = "events";
static char __pyx_k_id_03d[] = "id%03d";
static char __pyx_k_import[] = "__import__";
static char __pyx_k_indent[] = "indent";
static char __pyx_k_parser[] = "parser";
static char __pyx_k_reader[] = "reader";
static char __pyx_k_stream[] = "stream";
static char __pyx_k_strict[] = "strict";
static char __pyx_k_tokens[] = "tokens";
static char __pyx_k_yaml_2[] = "_yaml";
static char __pyx_k_emitter[] = "emitter";
static char __pyx_k_pointer[] = "pointer";
static char __pyx_k_resolve[] = "resolve";
static char __pyx_k_scanner[] = "scanner";
static char __pyx_k_version[] = "version";
static char __pyx_k_KeyToken[] = "KeyToken";
static char __pyx_k_TagToken[] = "TagToken";
static char __pyx_k_composer[] = "composer";
static char __pyx_k_encoding[] = "encoding";
static char __pyx_k_end_mark[] = "end_mark";
static char __pyx_k_explicit[] = "explicit";
static char __pyx_k_implicit[] = "implicit";
static char __pyx_k_TypeError[] = "TypeError";
static char __pyx_k_YAMLError[] = "YAMLError";
static char __pyx_k_canonical[] = "canonical";
static char __pyx_k_utf_16_be[] = "utf-16-be";
static char __pyx_k_utf_16_le[] = "utf-16-le";
static char __pyx_k_AliasEvent[] = "AliasEvent";
static char __pyx_k_AliasToken[] = "AliasToken";
static char __pyx_k_ScalarNode[] = "ScalarNode";
static char __pyx_k_ValueError[] = "ValueError";
static char __pyx_k_ValueToken[] = "ValueToken";
static char __pyx_k_flow_style[] = "flow_style";
static char __pyx_k_line_break[] = "line_break";
static char __pyx_k_pyx_vtable[] = "__pyx_vtable__";
static char __pyx_k_serializer[] = "serializer";
static char __pyx_k_start_mark[] = "start_mark";
static char __pyx_k_AnchorToken[] = "AnchorToken";
static char __pyx_k_MappingNode[] = "MappingNode";
static char __pyx_k_MemoryError[] = "MemoryError";
static char __pyx_k_ParserError[] = "ParserError";
static char __pyx_k_ReaderError[] = "ReaderError";
static char __pyx_k_ScalarEvent[] = "ScalarEvent";
static char __pyx_k_ScalarToken[] = "ScalarToken";
static char __pyx_k_byte_string[] = "<byte string>";
static char __pyx_k_constructor[] = "constructor";
static char __pyx_k_get_version[] = "get_version";
static char __pyx_k_representer[] = "representer";
static char __pyx_k_EmitterError[] = "EmitterError";
static char __pyx_k_ScannerError[] = "ScannerError";
static char __pyx_k_SequenceNode[] = "SequenceNode";
static char __pyx_k_explicit_end[] = "explicit_end";
static char __pyx_k_BlockEndToken[] = "BlockEndToken";
static char __pyx_k_ComposerError[] = "ComposerError";
static char __pyx_k_allow_unicode[] = "allow_unicode";
static char __pyx_k_too_many_tags[] = "too many tags";
static char __pyx_k_AttributeError[] = "AttributeError";
static char __pyx_k_DirectiveToken[] = "DirectiveToken";
static char __pyx_k_FlowEntryToken[] = "FlowEntryToken";
static char __pyx_k_StreamEndEvent[] = "StreamEndEvent";
static char __pyx_k_StreamEndToken[] = "StreamEndToken";
static char __pyx_k_explicit_start[] = "explicit_start";
static char __pyx_k_unicode_string[] = "<unicode string>";
static char __pyx_k_BlockEntryToken[] = "BlockEntryToken";
static char __pyx_k_MappingEndEvent[] = "MappingEndEvent";
static char __pyx_k_SerializerError[] = "SerializerError";
static char __pyx_k_ascend_resolver[] = "ascend_resolver";
static char __pyx_k_invalid_event_s[] = "invalid event %s";
static char __pyx_k_no_parser_error[] = "no parser error";
static char __pyx_k_ConstructorError[] = "ConstructorError";
static char __pyx_k_DocumentEndEvent[] = "DocumentEndEvent";
static char __pyx_k_DocumentEndToken[] = "DocumentEndToken";
static char __pyx_k_RepresenterError[] = "RepresenterError";
static char __pyx_k_SequenceEndEvent[] = "SequenceEndEvent";
static char __pyx_k_StreamStartEvent[] = "StreamStartEvent";
static char __pyx_k_StreamStartToken[] = "StreamStartToken";
static char __pyx_k_descend_resolver[] = "descend_resolver";
static char __pyx_k_no_emitter_error[] = "no emitter error";
static char __pyx_k_second_occurence[] = "second occurence";
static char __pyx_k_MappingStartEvent[] = "MappingStartEvent";
static char __pyx_k_DocumentStartEvent[] = "DocumentStartEvent";
static char __pyx_k_DocumentStartToken[] = "DocumentStartToken";
static char __pyx_k_SequenceStartEvent[] = "SequenceStartEvent";
static char __pyx_k_get_version_string[] = "get_version_string";
static char __pyx_k_unknown_event_type[] = "unknown event type";
static char __pyx_k_unknown_token_type[] = "unknown token type";
static char __pyx_k_FlowMappingEndToken[] = "FlowMappingEndToken";
static char __pyx_k_FlowSequenceEndToken[] = "FlowSequenceEndToken";
static char __pyx_k_in_s_line_d_column_d[] = "  in \"%s\", line %d, column %d";
static char __pyx_k_serializer_is_closed[] = "serializer is closed";
static char __pyx_k_tag_must_be_a_string[] = "tag must be a string";
static char __pyx_k_FlowMappingStartToken[] = "FlowMappingStartToken";
static char __pyx_k_found_undefined_alias[] = "found undefined alias";
static char __pyx_k_BlockMappingStartToken[] = "BlockMappingStartToken";
static char __pyx_k_FlowSequenceStartToken[] = "FlowSequenceStartToken";
static char __pyx_k_value_must_be_a_string[] = "value must be a string";
static char __pyx_k_BlockSequenceStartToken[] = "BlockSequenceStartToken";
static char __pyx_k_anchor_must_be_a_string[] = "anchor must be a string";
static char __pyx_k_serializer_is_not_opened[] = "serializer is not opened";
static char __pyx_k_a_string_value_is_expected[] = "a string value is expected";
static char __pyx_k_but_found_another_document[] = "but found another document";
static char __pyx_k_tag_handle_must_be_a_string[] = "tag handle must be a string";
static char __pyx_k_tag_prefix_must_be_a_string[] = "tag prefix must be a string";
static char __pyx_k_serializer_is_already_opened[] = "serializer is already opened";
static char __pyx_k_root_src_pyyaml_ext__yaml_pyx[] = "/root/src/pyyaml/ext/_yaml.pyx";
static char __pyx_k_a_string_or_stream_input_is_requ[] = "a string or stream input is required";
static char __pyx_k_expected_a_single_document_in_th[] = "expected a single document in the stream";
static char __pyx_k_found_duplicate_anchor_first_occ[] = "found duplicate anchor; first occurence";
static PyObject *__pyx_n_s_AliasEvent;
static PyObject *__pyx_n_s_AliasToken;
static PyObject *__pyx_n_s_AnchorToken;
static PyObject *__pyx_n_s_AttributeError;
static PyObject *__pyx_n_s_BlockEndToken;
static PyObject *__pyx_n_s_BlockEntryToken;
static PyObject *__pyx_n_s_BlockMappingStartToken;
static PyObject *__pyx_n_s_BlockSequenceStartToken;
static PyObject *__pyx_n_s_ComposerError;
static PyObject *__pyx_n_s_ConstructorError;
static PyObject *__pyx_n_s_DirectiveToken;
static PyObject *__pyx_n_s_DocumentEndEvent;
static PyObject *__pyx_n_s_DocumentEndToken;
static PyObject *__pyx_n_s_DocumentStartEvent;
static PyObject *__pyx_n_s_DocumentStartToken;
static PyObject *__pyx_n_s_EmitterError;
static PyObject *__pyx_n_s_FlowEntryToken;
static PyObject *__pyx_n_s_FlowMappingEndToken;
static PyObject *__pyx_n_s_FlowMappingStartToken;
static PyObject *__pyx_n_s_FlowSequenceEndToken;
static PyObject *__pyx_n_s_FlowSequenceStartToken;
static PyObject *__pyx_n_s_KeyToken;
static PyObject *__pyx_n_s_MappingEndEvent;
static PyObject *__pyx_n_s_MappingNode;
static PyObject *__pyx_n_s_MappingStartEvent;
static PyObject *__pyx_n_s_MemoryError;
static PyObject *__pyx_n_s_ParserError;
static PyObject *__pyx_n_s_ReaderError;
static PyObject *__pyx_n_s_RepresenterError;
static PyObject *__pyx_n_s_ScalarEvent;
static PyObject *__pyx_n_s_ScalarNode;
static PyObject *__pyx_n_s_ScalarToken;
static PyObject *__pyx_n_s_ScannerError;
static PyObject *__pyx_n_s_SequenceEndEvent;
static PyObject *__pyx_n_s_SequenceNode;
static PyObject *__pyx_n_s_SequenceStartEvent;
static PyObject *__pyx_n_s_SerializerError;
static PyObject *__pyx_n_s_StreamEndEvent;
static PyObject *__pyx_n_s_StreamEndToken;
static PyObject *__pyx_n_s_StreamStartEvent;
static PyObject *__pyx_n_s_StreamStartToken;
static PyObject *__pyx_n_u_TAG;
static PyObject *__pyx_n_s_TagToken;
static PyObject *__pyx_n_s_TypeError;
static PyObject *__pyx_n_s_ValueError;
static PyObject *__pyx_n_s_ValueToken;
static PyObject *__pyx_n_u_YAML;
static PyObject *__pyx_n_s_YAMLError;
static PyObject *__pyx_kp_s__10;
static PyObject *__pyx_kp_u__10;
static PyObject *__pyx_kp_s__17;
static PyObject *__pyx_kp_s__18;
static PyObject *__pyx_kp_s__19;
static PyObject *__pyx_kp_s__3;
static PyObject *__pyx_kp_u__3;
static PyObject *__pyx_kp_u__6;
static PyObject *__pyx_kp_s__7;
static PyObject *__pyx_kp_u__7;
static PyObject *__pyx_kp_s__8;
static PyObject *__pyx_kp_u__8;
static PyObject *__pyx_kp_s__9;
static PyObject *__pyx_kp_u__9;
static PyObject *__pyx_kp_s_a_string_or_stream_input_is_requ;
static PyObject *__pyx_kp_u_a_string_or_stream_input_is_requ;
static PyObject *__pyx_kp_s_a_string_value_is_expected;
static PyObject *__pyx_kp_u_a_string_value_is_expected;
static PyObject *__pyx_n_s_allow_unicode;
static PyObject *__pyx_n_s_anchor;
static PyObject *__pyx_kp_s_anchor_must_be_a_string;
static PyObject *__pyx_kp_u_anchor_must_be_a_string;
static PyObject *__pyx_n_s_ascend_resolver;
static PyObject *__pyx_n_s_buffer;
static PyObject *__pyx_kp_s_but_found_another_document;
static PyObject *__pyx_kp_u_but_found_another_document;
static PyObject *__pyx_kp_s_byte_string;
static PyObject *__pyx_kp_u_byte_string;
static PyObject *__pyx_n_s_canonical;
static PyObject *__pyx_n_s_class;
static PyObject *__pyx_n_s_column;
static PyObject *__pyx_n_s_composer;
static PyObject *__pyx_n_s_constructor;
static PyObject *__pyx_n_s_descend_resolver;
static PyObject *__pyx_n_s_emitter;
static PyObject *__pyx_n_s_encoding;
static PyObject *__pyx_n_u_encoding;
static PyObject *__pyx_n_s_end_mark;
static PyObject *__pyx_n_s_error;
static PyObject *__pyx_n_s_events;
static PyObject *__pyx_kp_s_expected_a_single_document_in_th;
static PyObject *__pyx_kp_u_expected_a_single_document_in_th;
static PyObject *__pyx_n_s_explicit;
static PyObject *__pyx_n_s_explicit_end;
static PyObject *__pyx_n_s_explicit_start;
static PyObject *__pyx_kp_s_file;
static PyObject *__pyx_kp_u_file;
static PyObject *__pyx_n_s_flow_style;
static PyObject *__pyx_kp_s_found_duplicate_anchor_first_occ;
static PyObject *__pyx_kp_u_found_duplicate_anchor_first_occ;
static PyObject *__pyx_kp_s_found_undefined_alias;
static PyObject *__pyx_kp_u_found_undefined_alias;
static PyObject *__pyx_n_s_get_version;
static PyObject *__pyx_n_s_get_version_string;
static PyObject *__pyx_kp_u_id_03d;
static PyObject *__pyx_n_s_implicit;
static PyObject *__pyx_n_s_import;
static PyObject *__pyx_kp_s_in_s_line_d_column_d;
static PyObject *__pyx_n_s_indent;
static PyObject *__pyx_n_s_index;
static PyObject *__pyx_kp_s_invalid_event_s;
static PyObject *__pyx_kp_u_invalid_event_s;
static PyObject *__pyx_n_s_line;
static PyObject *__pyx_n_s_line_break;
static PyObject *__pyx_n_s_main;
static PyObject *__pyx_n_s_major;
static PyObject *__pyx_n_s_minor;
static PyObject *__pyx_n_s_name;
static PyObject *__pyx_kp_s_no_emitter_error;
static PyObject *__pyx_kp_u_no_emitter_error;
static PyObject *__pyx_kp_s_no_parser_error;
static PyObject *__pyx_kp_u_no_parser_error;
static PyObject *__pyx_n_s_nodes;
static PyObject *__pyx_n_s_parser;
static PyObject *__pyx_n_s_patch;
static PyObject *__pyx_n_s_pointer;
static PyObject *__pyx_n_s_pyx_vtable;
static PyObject *__pyx_n_s_read;
static PyObject *__pyx_n_s_reader;
static PyObject *__pyx_n_s_representer;
static PyObject *__pyx_n_s_resolve;
static PyObject *__pyx_kp_s_root_src_pyyaml_ext__yaml_pyx;
static PyObject *__pyx_n_s_scanner;
static PyObject *__pyx_kp_s_second_occurence;
static PyObject *__pyx_kp_u_second_occurence;
static PyObject *__pyx_n_s_serializer;
static PyObject *__pyx_kp_s_serializer_is_already_opened;
static PyObject *__pyx_kp_u_serializer_is_already_opened;
static PyObject *__pyx_kp_s_serializer_is_closed;
static PyObject *__pyx_kp_u_serializer_is_closed;
static PyObject *__pyx_kp_s_serializer_is_not_opened;
static PyObject *__pyx_kp_u_serializer_is_not_opened;
static PyObject *__pyx_n_s_start_mark;
static PyObject *__pyx_n_s_stream;
static PyObject *__pyx_n_s_style;
static PyObject *__pyx_n_s_tag;
static PyObject *__pyx_kp_s_tag_handle_must_be_a_string;
static PyObject *__pyx_kp_u_tag_handle_must_be_a_string;
static PyObject *__pyx_kp_s_tag_must_be_a_string;
static PyObject *__pyx_kp_u_tag_must_be_a_string;
static PyObject *__pyx_kp_s_tag_prefix_must_be_a_string;
static PyObject *__pyx_kp_u_tag_prefix_must_be_a_string;
static PyObject *__pyx_n_s_tags;
static PyObject *__pyx_n_s_test;
static PyObject *__pyx_n_s_tokens;
static PyObject *__pyx_kp_s_too_many_tags;
static PyObject *__pyx_kp_u_too_many_tags;
static PyObject *__pyx_kp_s_unicode_string;
static PyObject *__pyx_kp_u_unicode_string;
static PyObject *__pyx_kp_s_unknown_event_type;
static PyObject *__pyx_kp_u_unknown_event_type;
static PyObject *__pyx_kp_s_unknown_token_type;
static PyObject *__pyx_kp_u_unknown_token_type;
static PyObject *__pyx_kp_s_utf_16_be;
static PyObject *__pyx_kp_u_utf_16_be;
static PyObject *__pyx_kp_s_utf_16_le;
static PyObject *__pyx_kp_u_utf_16_le;
static PyObject *__pyx_kp_u_utf_8;
static PyObject *__pyx_n_s_value;
static PyObject *__pyx_kp_s_value_must_be_a_string;
static PyObject *__pyx_kp_u_value_must_be_a_string;
static PyObject *__pyx_n_s_version;
static PyObject *__pyx_n_s_width;
static PyObject *__pyx_n_s_write;
static PyObject *__pyx_n_s_yaml;
static PyObject *__pyx_n_s_yaml_2;
static PyObject *__pyx_int_0;
static PyObject *__pyx_int_1;
static PyObject *__pyx_tuple_;
static PyObject *__pyx_tuple__2;
static PyObject *__pyx_tuple__4;
static PyObject *__pyx_tuple__5;
static PyObject *__pyx_tuple__11;
static PyObject *__pyx_tuple__12;
static PyObject *__pyx_tuple__13;
static PyObject *__pyx_tuple__14;
static PyObject *__pyx_tuple__15;
static PyObject *__pyx_tuple__16;
static PyObject *__pyx_tuple__20;
static PyObject *__pyx_tuple__21;
static PyObject *__pyx_tuple__22;
static PyObject *__pyx_tuple__23;
static PyObject *__pyx_tuple__24;
static PyObject *__pyx_tuple__25;
static PyObject *__pyx_tuple__26;
static PyObject *__pyx_tuple__27;
static PyObject *__pyx_tuple__28;
static PyObject *__pyx_tuple__29;
static PyObject *__pyx_tuple__30;
static PyObject *__pyx_tuple__31;
static PyObject *__pyx_tuple__32;
static PyObject *__pyx_tuple__33;
static PyObject *__pyx_tuple__34;
static PyObject *__pyx_tuple__35;
static PyObject *__pyx_tuple__36;
static PyObject *__pyx_tuple__37;
static PyObject *__pyx_tuple__38;
static PyObject *__pyx_tuple__39;
static PyObject *__pyx_tuple__40;
static PyObject *__pyx_tuple__41;
static PyObject *__pyx_tuple__42;
static PyObject *__pyx_tuple__43;
static PyObject *__pyx_tuple__44;
static PyObject *__pyx_tuple__45;
static PyObject *__pyx_tuple__46;
static PyObject *__pyx_tuple__47;
static PyObject *__pyx_tuple__48;
static PyObject *__pyx_tuple__49;
static PyObject *__pyx_tuple__50;
static PyObject *__pyx_tuple__51;
static PyObject *__pyx_tuple__52;
static PyObject *__pyx_tuple__53;
static PyObject *__pyx_tuple__54;
static PyObject *__pyx_tuple__55;
static PyObject *__pyx_tuple__56;
static PyObject *__pyx_tuple__57;
static PyObject *__pyx_tuple__58;
static PyObject *__pyx_tuple__59;
static PyObject *__pyx_tuple__60;
static PyObject *__pyx_tuple__61;
static PyObject *__pyx_tuple__62;
static PyObject *__pyx_tuple__63;
static PyObject *__pyx_tuple__64;
static PyObject *__pyx_tuple__65;
static PyObject *__pyx_tuple__66;
static PyObject *__pyx_tuple__67;
static PyObject *__pyx_tuple__68;
static PyObject *__pyx_tuple__69;
static PyObject *__pyx_tuple__70;
static PyObject *__pyx_tuple__71;
static PyObject *__pyx_tuple__72;
static PyObject *__pyx_tuple__74;
static PyObject *__pyx_codeobj__73;
static PyObject *__pyx_codeobj__75;

/* "_yaml.pyx":4
 * import yaml
 * 
 * def get_version_string():             # <<<<<<<<<<<<<<
 *     cdef char *value
 *     value = yaml_get_version_string()
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_yaml_1get_version_string(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyMethodDef __pyx_mdef_5_yaml_1get_version_string = {__Pyx_NAMESTR("get_version_string"), (PyCFunction)__pyx_pw_5_yaml_1get_version_string, METH_NOARGS, __Pyx_DOCSTR(0)};
static PyObject *__pyx_pw_5_yaml_1get_version_string(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_version_string (wrapper)", 0);
  __pyx_r = __pyx_pf_5_yaml_get_version_string(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_yaml_get_version_string(CYTHON_UNUSED PyObject *__pyx_self) {
  char *__pyx_v_value;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_version_string", 0);

  /* "_yaml.pyx":6
 * def get_version_string():
 *     cdef char *value
 *     value = yaml_get_version_string()             # <<<<<<<<<<<<<<
 *     if PY_MAJOR_VERSION < 3:
 *         return value
 */
  __pyx_v_value = yaml_get_version_string();

  /* "_yaml.pyx":7
 *     cdef char *value
 *     value = yaml_get_version_string()
 *     if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *         return value
 *     else:
 */
  __pyx_t_1 = ((PY_MAJOR_VERSION < 3) != 0);
  if (__pyx_t_1) {

    /* "_yaml.pyx":8
 *     value = yaml_get_version_string()
 *     if PY_MAJOR_VERSION < 3:
 *         return value             # <<<<<<<<<<<<<<
 *     else:
 *         return PyUnicode_FromString(value)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBytes_FromString(__pyx_v_value); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 8; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;
  }
  /*else*/ {

    /* "_yaml.pyx":10
 *         return value
 *     else:
 *         return PyUnicode_FromString(value)             # <<<<<<<<<<<<<<
 * 
 * def get_version():
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = PyUnicode_FromString(__pyx_v_value); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 10; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;
  }

  /* "_yaml.pyx":4
 * import yaml
 * 
 * def get_version_string():             # <<<<<<<<<<<<<<
 *     cdef char *value
 *     value = yaml_get_version_string()
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("_yaml.get_version_string", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_yaml.pyx":12
 *         return PyUnicode_FromString(value)
 * 
 * def get_version():             # <<<<<<<<<<<<<<
 *     cdef int major, minor, patch
 *     yaml_get_version(&major, &minor, &patch)
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_yaml_3get_version(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyMethodDef __pyx_mdef_5_yaml_3get_version = {__Pyx_NAMESTR("get_version"), (PyCFunction)__pyx_pw_5_yaml_3get_version, METH_NOARGS, __Pyx_DOCSTR(0)};
static PyObject *__pyx_pw_5_yaml_3get_version(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_version (wrapper)", 0);
  __pyx_r = __pyx_pf_5_yaml_2get_version(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_yaml_2get_version(CYTHON_UNUSED PyObject *__pyx_self) {
  int __pyx_v_major;
  int __pyx_v_minor;
  int __pyx_v_patch;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_version", 0);

  /* "_yaml.pyx":14
 * def get_version():
 *     cdef int major, minor, patch
 *     yaml_get_version(&major, &minor, &patch)             # <<<<<<<<<<<<<<
 *     return (major, minor, patch)
 * 
 */
  yaml_get_version((&__pyx_v_major), (&__pyx_v_minor), (&__pyx_v_patch));

  /* "_yaml.pyx":15
 *     cdef int major, minor, patch
 *     yaml_get_version(&major, &minor, &patch)
 *     return (major, minor, patch)             # <<<<<<<<<<<<<<
 * 
 * #Mark = yaml.error.Mark
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_major); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 15; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_minor); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 15; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_patch); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 15; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 15; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__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);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "_yaml.pyx":12
 *         return PyUnicode_FromString(value)
 * 
 * def get_version():             # <<<<<<<<<<<<<<
 *     cdef int major, minor, patch
 *     yaml_get_version(&major, &minor, &patch)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("_yaml.get_version", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_yaml.pyx":72
 *     cdef readonly pointer
 * 
 *     def __init__(self, object name, int index, int line, int column,             # <<<<<<<<<<<<<<
 *             object buffer, object pointer):
 *         self.name = name
 */

/* Python wrapper */
static int __pyx_pw_5_yaml_4Mark_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_5_yaml_4Mark_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_name = 0;
  int __pyx_v_index;
  int __pyx_v_line;
  int __pyx_v_column;
  PyObject *__pyx_v_buffer = 0;
  PyObject *__pyx_v_pointer = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_name,&__pyx_n_s_index,&__pyx_n_s_line,&__pyx_n_s_column,&__pyx_n_s_buffer,&__pyx_n_s_pointer,0};
    PyObject* values[6] = {0,0,0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        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 (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_name)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_index)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 6, 6, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 72; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_line)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 6, 6, 2); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 72; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_column)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 6, 6, 3); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 72; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
        }
        case  4:
        if (likely((values[4] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_buffer)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 6, 6, 4); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 72; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
        }
        case  5:
        if (likely((values[5] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_pointer)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 1, 6, 6, 5); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 72; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 72; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
      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);
      values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
      values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
    }
    __pyx_v_name = values[0];
    __pyx_v_index = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_index == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 72; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
    __pyx_v_line = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_line == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 72; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
    __pyx_v_column = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_column == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 72; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
    __pyx_v_buffer = values[4];
    __pyx_v_pointer = values[5];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 72; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
  __pyx_L3_error:;
  __Pyx_AddTraceback("_yaml.Mark.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_5_yaml_4Mark___init__(((struct __pyx_obj_5_yaml_Mark *)__pyx_v_self), __pyx_v_name, __pyx_v_index, __pyx_v_line, __pyx_v_column, __pyx_v_buffer, __pyx_v_pointer);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_5_yaml_4Mark___init__(struct __pyx_obj_5_yaml_Mark *__pyx_v_self, PyObject *__pyx_v_name, int __pyx_v_index, int __pyx_v_line, int __pyx_v_column, PyObject *__pyx_v_buffer, PyObject *__pyx_v_pointer) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "_yaml.pyx":74
 *     def __init__(self, object name, int index, int line, int column,
 *             object buffer, object pointer):
 *         self.name = name             # <<<<<<<<<<<<<<
 *         self.index = index
 *         self.line = line
 */
  __Pyx_INCREF(__pyx_v_name);
  __Pyx_GIVEREF(__pyx_v_name);
  __Pyx_GOTREF(__pyx_v_self->name);
  __Pyx_DECREF(__pyx_v_self->name);
  __pyx_v_self->name = __pyx_v_name;

  /* "_yaml.pyx":75
 *             object buffer, object pointer):
 *         self.name = name
 *         self.index = index             # <<<<<<<<<<<<<<
 *         self.line = line
 *         self.column = column
 */
  __pyx_v_self->index = __pyx_v_index;

  /* "_yaml.pyx":76
 *         self.name = name
 *         self.index = index
 *         self.line = line             # <<<<<<<<<<<<<<
 *         self.column = column
 *         self.buffer = buffer
 */
  __pyx_v_self->line = __pyx_v_line;

  /* "_yaml.pyx":77
 *         self.index = index
 *         self.line = line
 *         self.column = column             # <<<<<<<<<<<<<<
 *         self.buffer = buffer
 *         self.pointer = pointer
 */
  __pyx_v_self->column = __pyx_v_column;

  /* "_yaml.pyx":78
 *         self.line = line
 *         self.column = column
 *         self.buffer = buffer             # <<<<<<<<<<<<<<
 *         self.pointer = pointer
 * 
 */
  __Pyx_INCREF(__pyx_v_buffer);
  __Pyx_GIVEREF(__pyx_v_buffer);
  __Pyx_GOTREF(__pyx_v_self->buffer);
  __Pyx_DECREF(__pyx_v_self->buffer);
  __pyx_v_self->buffer = __pyx_v_buffer;

  /* "_yaml.pyx":79
 *         self.column = column
 *         self.buffer = buffer
 *         self.pointer = pointer             # <<<<<<<<<<<<<<
 * 
 *     def get_snippet(self):
 */
  __Pyx_INCREF(__pyx_v_pointer);
  __Pyx_GIVEREF(__pyx_v_pointer);
  __Pyx_GOTREF(__pyx_v_self->pointer);
  __Pyx_DECREF(__pyx_v_self->pointer);
  __pyx_v_self->pointer = __pyx_v_pointer;

  /* "_yaml.pyx":72
 *     cdef readonly pointer
 * 
 *     def __init__(self, object name, int index, int line, int column,             # <<<<<<<<<<<<<<
 *             object buffer, object pointer):
 *         self.name = name
 */

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_yaml.pyx":81
 *         self.pointer = pointer
 * 
 *     def get_snippet(self):             # <<<<<<<<<<<<<<
 *         return None
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_yaml_4Mark_3get_snippet(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_5_yaml_4Mark_3get_snippet(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_snippet (wrapper)", 0);
  __pyx_r = __pyx_pf_5_yaml_4Mark_2get_snippet(((struct __pyx_obj_5_yaml_Mark *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_yaml_4Mark_2get_snippet(CYTHON_UNUSED struct __pyx_obj_5_yaml_Mark *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_snippet", 0);

  /* "_yaml.pyx":82
 * 
 *     def get_snippet(self):
 *         return None             # <<<<<<<<<<<<<<
 * 
 *     def __str__(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(Py_None);
  __pyx_r = Py_None;
  goto __pyx_L0;

  /* "_yaml.pyx":81
 *         self.pointer = pointer
 * 
 *     def get_snippet(self):             # <<<<<<<<<<<<<<
 *         return None
 * 
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_yaml.pyx":84
 *         return None
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         where = "  in \"%s\", line %d, column %d"   \
 *                 % (self.name, self.line+1, self.column+1)
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_yaml_4Mark_5__str__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_5_yaml_4Mark_5__str__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__str__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_yaml_4Mark_4__str__(((struct __pyx_obj_5_yaml_Mark *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_yaml_4Mark_4__str__(struct __pyx_obj_5_yaml_Mark *__pyx_v_self) {
  PyObject *__pyx_v_where = 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("__str__", 0);

  /* "_yaml.pyx":86
 *     def __str__(self):
 *         where = "  in \"%s\", line %d, column %d"   \
 *                 % (self.name, self.line+1, self.column+1)             # <<<<<<<<<<<<<<
 *         return where
 * 
 */
  __pyx_t_1 = __Pyx_PyInt_From_long((__pyx_v_self->line + 1)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 86; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyInt_From_long((__pyx_v_self->column + 1)); 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);
  __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 86; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(__pyx_v_self->name);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_self->name);
  __Pyx_GIVEREF(__pyx_v_self->name);
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyString_Format(__pyx_kp_s_in_s_line_d_column_d, __pyx_t_3); 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);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_where = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "_yaml.pyx":87
 *         where = "  in \"%s\", line %d, column %d"   \
 *                 % (self.name, self.line+1, self.column+1)
 *         return where             # <<<<<<<<<<<<<<
 * 
 * #class YAMLError(Exception):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_where);
  __pyx_r = __pyx_v_where;
  goto __pyx_L0;

  /* "_yaml.pyx":84
 *         return None
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         where = "  in \"%s\", line %d, column %d"   \
 *                 % (self.name, self.line+1, self.column+1)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("_yaml.Mark.__str__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_where);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_yaml.pyx":65
 * 
 * cdef class Mark:
 *     cdef readonly object name             # <<<<<<<<<<<<<<
 *     cdef readonly int index
 *     cdef readonly int line
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_yaml_4Mark_4name_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_5_yaml_4Mark_4name_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_yaml_4Mark_4name___get__(((struct __pyx_obj_5_yaml_Mark *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_yaml_4Mark_4name___get__(struct __pyx_obj_5_yaml_Mark *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->name);
  __pyx_r = __pyx_v_self->name;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_yaml.pyx":66
 * cdef class Mark:
 *     cdef readonly object name
 *     cdef readonly int index             # <<<<<<<<<<<<<<
 *     cdef readonly int line
 *     cdef readonly int column
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_yaml_4Mark_5index_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_5_yaml_4Mark_5index_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_yaml_4Mark_5index___get__(((struct __pyx_obj_5_yaml_Mark *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_yaml_4Mark_5index___get__(struct __pyx_obj_5_yaml_Mark *__pyx_v_self) {
  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("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->index); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 66; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_yaml.Mark.index.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_yaml.pyx":67
 *     cdef readonly object name
 *     cdef readonly int index
 *     cdef readonly int line             # <<<<<<<<<<<<<<
 *     cdef readonly int column
 *     cdef readonly buffer
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_yaml_4Mark_4line_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_5_yaml_4Mark_4line_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_yaml_4Mark_4line___get__(((struct __pyx_obj_5_yaml_Mark *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_yaml_4Mark_4line___get__(struct __pyx_obj_5_yaml_Mark *__pyx_v_self) {
  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("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->line); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 67; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_yaml.Mark.line.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_yaml.pyx":68
 *     cdef readonly int index
 *     cdef readonly int line
 *     cdef readonly int column             # <<<<<<<<<<<<<<
 *     cdef readonly buffer
 *     cdef readonly pointer
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_yaml_4Mark_6column_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_5_yaml_4Mark_6column_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_yaml_4Mark_6column___get__(((struct __pyx_obj_5_yaml_Mark *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_yaml_4Mark_6column___get__(struct __pyx_obj_5_yaml_Mark *__pyx_v_self) {
  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("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->column); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 68; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_yaml.Mark.column.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_yaml.pyx":69
 *     cdef readonly int line
 *     cdef readonly int column
 *     cdef readonly buffer             # <<<<<<<<<<<<<<
 *     cdef readonly pointer
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_yaml_4Mark_6buffer_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_5_yaml_4Mark_6buffer_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_yaml_4Mark_6buffer___get__(((struct __pyx_obj_5_yaml_Mark *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_yaml_4Mark_6buffer___get__(struct __pyx_obj_5_yaml_Mark *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->buffer);
  __pyx_r = __pyx_v_self->buffer;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_yaml.pyx":70
 *     cdef readonly int column
 *     cdef readonly buffer
 *     cdef readonly pointer             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, object name, int index, int line, int column,
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_yaml_4Mark_7pointer_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_5_yaml_4Mark_7pointer_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5_yaml_4Mark_7pointer___get__(((struct __pyx_obj_5_yaml_Mark *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_yaml_4Mark_7pointer___get__(struct __pyx_obj_5_yaml_Mark *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->pointer);
  __pyx_r = __pyx_v_self->pointer;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_yaml.pyx":262
 *     cdef int unicode_source
 * 
 *     def __init__(self, stream):             # <<<<<<<<<<<<<<
 *         cdef is_readable
 *         if yaml_parser_initialize(&self.parser) == 0:
 */

/* Python wrapper */
static int __pyx_pw_5_yaml_7CParser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_5_yaml_7CParser_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_stream = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_stream,0};
    PyObject* values[1] = {0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        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 (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_stream)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 262; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
    }
    __pyx_v_stream = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 262; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
  __pyx_L3_error:;
  __Pyx_AddTraceback("_yaml.CParser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_5_yaml_7CParser___init__(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self), __pyx_v_stream);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_5_yaml_7CParser___init__(struct __pyx_obj_5_yaml_CParser *__pyx_v_self, PyObject *__pyx_v_stream) {
  PyObject *__pyx_v_is_readable = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  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_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);
  __Pyx_INCREF(__pyx_v_stream);

  /* "_yaml.pyx":264
 *     def __init__(self, stream):
 *         cdef is_readable
 *         if yaml_parser_initialize(&self.parser) == 0:             # <<<<<<<<<<<<<<
 *             raise MemoryError
 *         self.parsed_event.type = YAML_NO_EVENT
 */
  __pyx_t_1 = ((yaml_parser_initialize((&__pyx_v_self->parser)) == 0) != 0);
  if (__pyx_t_1) {

    /* "_yaml.pyx":265
 *         cdef is_readable
 *         if yaml_parser_initialize(&self.parser) == 0:
 *             raise MemoryError             # <<<<<<<<<<<<<<
 *         self.parsed_event.type = YAML_NO_EVENT
 *         is_readable = 1
 */
    PyErr_NoMemory(); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 265; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  }

  /* "_yaml.pyx":266
 *         if yaml_parser_initialize(&self.parser) == 0:
 *             raise MemoryError
 *         self.parsed_event.type = YAML_NO_EVENT             # <<<<<<<<<<<<<<
 *         is_readable = 1
 *         try:
 */
  __pyx_v_self->parsed_event.type = YAML_NO_EVENT;

  /* "_yaml.pyx":267
 *             raise MemoryError
 *         self.parsed_event.type = YAML_NO_EVENT
 *         is_readable = 1             # <<<<<<<<<<<<<<
 *         try:
 *             stream.read
 */
  __Pyx_INCREF(__pyx_int_1);
  __pyx_v_is_readable = __pyx_int_1;

  /* "_yaml.pyx":268
 *         self.parsed_event.type = YAML_NO_EVENT
 *         is_readable = 1
 *         try:             # <<<<<<<<<<<<<<
 *             stream.read
 *         except AttributeError:
 */
  {
    __Pyx_ExceptionSave(&__pyx_t_2, &__pyx_t_3, &__pyx_t_4);
    __Pyx_XGOTREF(__pyx_t_2);
    __Pyx_XGOTREF(__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_4);
    /*try:*/ {

      /* "_yaml.pyx":269
 *         is_readable = 1
 *         try:
 *             stream.read             # <<<<<<<<<<<<<<
 *         except AttributeError:
 *             is_readable = 0
 */
      __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_stream, __pyx_n_s_read); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 269; __pyx_clineno = __LINE__; goto __pyx_L4_error;}
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    }
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    goto __pyx_L11_try_end;
    __pyx_L4_error:;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;

    /* "_yaml.pyx":270
 *         try:
 *             stream.read
 *         except AttributeError:             # <<<<<<<<<<<<<<
 *             is_readable = 0
 *         self.unicode_source = 0
 */
    __pyx_t_6 = PyErr_ExceptionMatches(__pyx_builtin_AttributeError);
    if (__pyx_t_6) {
      __Pyx_AddTraceback("_yaml.CParser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_7, &__pyx_t_8) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 270; __pyx_clineno = __LINE__; goto __pyx_L6_except_error;}
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_GOTREF(__pyx_t_8);

      /* "_yaml.pyx":271
 *             stream.read
 *         except AttributeError:
 *             is_readable = 0             # <<<<<<<<<<<<<<
 *         self.unicode_source = 0
 *         if is_readable:
 */
      __Pyx_INCREF(__pyx_int_0);
      __Pyx_DECREF_SET(__pyx_v_is_readable, __pyx_int_0);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      goto __pyx_L5_exception_handled;
    }
    goto __pyx_L6_except_error;
    __pyx_L6_except_error:;
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4);
    goto __pyx_L1_error;
    __pyx_L5_exception_handled:;
    __Pyx_XGIVEREF(__pyx_t_2);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_ExceptionReset(__pyx_t_2, __pyx_t_3, __pyx_t_4);
    __pyx_L11_try_end:;
  }

  /* "_yaml.pyx":272
 *         except AttributeError:
 *             is_readable = 0
 *         self.unicode_source = 0             # <<<<<<<<<<<<<<
 *         if is_readable:
 *             self.stream = stream
 */
  __pyx_v_self->unicode_source = 0;

  /* "_yaml.pyx":273
 *             is_readable = 0
 *         self.unicode_source = 0
 *         if is_readable:             # <<<<<<<<<<<<<<
 *             self.stream = stream
 *             try:
 */
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_is_readable); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 273; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__pyx_t_1) {

    /* "_yaml.pyx":274
 *         self.unicode_source = 0
 *         if is_readable:
 *             self.stream = stream             # <<<<<<<<<<<<<<
 *             try:
 *                 self.stream_name = stream.name
 */
    __Pyx_INCREF(__pyx_v_stream);
    __Pyx_GIVEREF(__pyx_v_stream);
    __Pyx_GOTREF(__pyx_v_self->stream);
    __Pyx_DECREF(__pyx_v_self->stream);
    __pyx_v_self->stream = __pyx_v_stream;

    /* "_yaml.pyx":275
 *         if is_readable:
 *             self.stream = stream
 *             try:             # <<<<<<<<<<<<<<
 *                 self.stream_name = stream.name
 *             except AttributeError:
 */
    {
      __Pyx_ExceptionSave(&__pyx_t_4, &__pyx_t_3, &__pyx_t_2);
      __Pyx_XGOTREF(__pyx_t_4);
      __Pyx_XGOTREF(__pyx_t_3);
      __Pyx_XGOTREF(__pyx_t_2);
      /*try:*/ {

        /* "_yaml.pyx":276
 *             self.stream = stream
 *             try:
 *                 self.stream_name = stream.name             # <<<<<<<<<<<<<<
 *             except AttributeError:
 *                 if PY_MAJOR_VERSION < 3:
 */
        __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_stream, __pyx_n_s_name); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 276; __pyx_clineno = __LINE__; goto __pyx_L15_error;}
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GIVEREF(__pyx_t_8);
        __Pyx_GOTREF(__pyx_v_self->stream_name);
        __Pyx_DECREF(__pyx_v_self->stream_name);
        __pyx_v_self->stream_name = __pyx_t_8;
        __pyx_t_8 = 0;
      }
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      goto __pyx_L22_try_end;
      __pyx_L15_error:;
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
      __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;

      /* "_yaml.pyx":277
 *             try:
 *                 self.stream_name = stream.name
 *             except AttributeError:             # <<<<<<<<<<<<<<
 *                 if PY_MAJOR_VERSION < 3:
 *                     self.stream_name = '<file>'
 */
      __pyx_t_6 = PyErr_ExceptionMatches(__pyx_builtin_AttributeError);
      if (__pyx_t_6) {
        __Pyx_AddTraceback("_yaml.CParser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
        if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_7, &__pyx_t_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 277; __pyx_clineno = __LINE__; goto __pyx_L17_except_error;}
        __Pyx_GOTREF(__pyx_t_8);
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_GOTREF(__pyx_t_5);

        /* "_yaml.pyx":278
 *                 self.stream_name = stream.name
 *             except AttributeError:
 *                 if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *                     self.stream_name = '<file>'
 *                 else:
 */
        __pyx_t_1 = ((PY_MAJOR_VERSION < 3) != 0);
        if (__pyx_t_1) {

          /* "_yaml.pyx":279
 *             except AttributeError:
 *                 if PY_MAJOR_VERSION < 3:
 *                     self.stream_name = '<file>'             # <<<<<<<<<<<<<<
 *                 else:
 *                     self.stream_name = u'<file>'
 */
          __Pyx_INCREF(__pyx_kp_s_file);
          __Pyx_GIVEREF(__pyx_kp_s_file);
          __Pyx_GOTREF(__pyx_v_self->stream_name);
          __Pyx_DECREF(__pyx_v_self->stream_name);
          __pyx_v_self->stream_name = __pyx_kp_s_file;
          goto __pyx_L25;
        }
        /*else*/ {

          /* "_yaml.pyx":281
 *                     self.stream_name = '<file>'
 *                 else:
 *                     self.stream_name = u'<file>'             # <<<<<<<<<<<<<<
 *             self.stream_cache = None
 *             self.stream_cache_len = 0
 */
          __Pyx_INCREF(__pyx_kp_u_file);
          __Pyx_GIVEREF(__pyx_kp_u_file);
          __Pyx_GOTREF(__pyx_v_self->stream_name);
          __Pyx_DECREF(__pyx_v_self->stream_name);
          __pyx_v_self->stream_name = __pyx_kp_u_file;
        }
        __pyx_L25:;
        __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        goto __pyx_L16_exception_handled;
      }
      goto __pyx_L17_except_error;
      __pyx_L17_except_error:;
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_2);
      __Pyx_ExceptionReset(__pyx_t_4, __pyx_t_3, __pyx_t_2);
      goto __pyx_L1_error;
      __pyx_L16_exception_handled:;
      __Pyx_XGIVEREF(__pyx_t_4);
      __Pyx_XGIVEREF(__pyx_t_3);
      __Pyx_XGIVEREF(__pyx_t_2);
      __Pyx_ExceptionReset(__pyx_t_4, __pyx_t_3, __pyx_t_2);
      __pyx_L22_try_end:;
    }

    /* "_yaml.pyx":282
 *                 else:
 *                     self.stream_name = u'<file>'
 *             self.stream_cache = None             # <<<<<<<<<<<<<<
 *             self.stream_cache_len = 0
 *             self.stream_cache_pos = 0
 */
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    __Pyx_GOTREF(__pyx_v_self->stream_cache);
    __Pyx_DECREF(__pyx_v_self->stream_cache);
    __pyx_v_self->stream_cache = Py_None;

    /* "_yaml.pyx":283
 *                     self.stream_name = u'<file>'
 *             self.stream_cache = None
 *             self.stream_cache_len = 0             # <<<<<<<<<<<<<<
 *             self.stream_cache_pos = 0
 *             yaml_parser_set_input(&self.parser, input_handler, <void *>self)
 */
    __pyx_v_self->stream_cache_len = 0;

    /* "_yaml.pyx":284
 *             self.stream_cache = None
 *             self.stream_cache_len = 0
 *             self.stream_cache_pos = 0             # <<<<<<<<<<<<<<
 *             yaml_parser_set_input(&self.parser, input_handler, <void *>self)
 *         else:
 */
    __pyx_v_self->stream_cache_pos = 0;

    /* "_yaml.pyx":285
 *             self.stream_cache_len = 0
 *             self.stream_cache_pos = 0
 *             yaml_parser_set_input(&self.parser, input_handler, <void *>self)             # <<<<<<<<<<<<<<
 *         else:
 *             if PyUnicode_CheckExact(stream) != 0:
 */
    yaml_parser_set_input((&__pyx_v_self->parser), __pyx_f_5_yaml_input_handler, ((void *)__pyx_v_self));
    goto __pyx_L14;
  }
  /*else*/ {

    /* "_yaml.pyx":287
 *             yaml_parser_set_input(&self.parser, input_handler, <void *>self)
 *         else:
 *             if PyUnicode_CheckExact(stream) != 0:             # <<<<<<<<<<<<<<
 *                 stream = PyUnicode_AsUTF8String(stream)
 *                 if PY_MAJOR_VERSION < 3:
 */
    __pyx_t_1 = ((PyUnicode_CheckExact(__pyx_v_stream) != 0) != 0);
    if (__pyx_t_1) {

      /* "_yaml.pyx":288
 *         else:
 *             if PyUnicode_CheckExact(stream) != 0:
 *                 stream = PyUnicode_AsUTF8String(stream)             # <<<<<<<<<<<<<<
 *                 if PY_MAJOR_VERSION < 3:
 *                     self.stream_name = '<unicode string>'
 */
      __pyx_t_5 = PyUnicode_AsUTF8String(__pyx_v_stream); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 288; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF_SET(__pyx_v_stream, __pyx_t_5);
      __pyx_t_5 = 0;

      /* "_yaml.pyx":289
 *             if PyUnicode_CheckExact(stream) != 0:
 *                 stream = PyUnicode_AsUTF8String(stream)
 *                 if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *                     self.stream_name = '<unicode string>'
 *                 else:
 */
      __pyx_t_1 = ((PY_MAJOR_VERSION < 3) != 0);
      if (__pyx_t_1) {

        /* "_yaml.pyx":290
 *                 stream = PyUnicode_AsUTF8String(stream)
 *                 if PY_MAJOR_VERSION < 3:
 *                     self.stream_name = '<unicode string>'             # <<<<<<<<<<<<<<
 *                 else:
 *                     self.stream_name = u'<unicode string>'
 */
        __Pyx_INCREF(__pyx_kp_s_unicode_string);
        __Pyx_GIVEREF(__pyx_kp_s_unicode_string);
        __Pyx_GOTREF(__pyx_v_self->stream_name);
        __Pyx_DECREF(__pyx_v_self->stream_name);
        __pyx_v_self->stream_name = __pyx_kp_s_unicode_string;
        goto __pyx_L27;
      }
      /*else*/ {

        /* "_yaml.pyx":292
 *                     self.stream_name = '<unicode string>'
 *                 else:
 *                     self.stream_name = u'<unicode string>'             # <<<<<<<<<<<<<<
 *                 self.unicode_source = 1
 *             else:
 */
        __Pyx_INCREF(__pyx_kp_u_unicode_string);
        __Pyx_GIVEREF(__pyx_kp_u_unicode_string);
        __Pyx_GOTREF(__pyx_v_self->stream_name);
        __Pyx_DECREF(__pyx_v_self->stream_name);
        __pyx_v_self->stream_name = __pyx_kp_u_unicode_string;
      }
      __pyx_L27:;

      /* "_yaml.pyx":293
 *                 else:
 *                     self.stream_name = u'<unicode string>'
 *                 self.unicode_source = 1             # <<<<<<<<<<<<<<
 *             else:
 *                 if PY_MAJOR_VERSION < 3:
 */
      __pyx_v_self->unicode_source = 1;
      goto __pyx_L26;
    }
    /*else*/ {

      /* "_yaml.pyx":295
 *                 self.unicode_source = 1
 *             else:
 *                 if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *                     self.stream_name = '<byte string>'
 *                 else:
 */
      __pyx_t_1 = ((PY_MAJOR_VERSION < 3) != 0);
      if (__pyx_t_1) {

        /* "_yaml.pyx":296
 *             else:
 *                 if PY_MAJOR_VERSION < 3:
 *                     self.stream_name = '<byte string>'             # <<<<<<<<<<<<<<
 *                 else:
 *                     self.stream_name = u'<byte string>'
 */
        __Pyx_INCREF(__pyx_kp_s_byte_string);
        __Pyx_GIVEREF(__pyx_kp_s_byte_string);
        __Pyx_GOTREF(__pyx_v_self->stream_name);
        __Pyx_DECREF(__pyx_v_self->stream_name);
        __pyx_v_self->stream_name = __pyx_kp_s_byte_string;
        goto __pyx_L28;
      }
      /*else*/ {

        /* "_yaml.pyx":298
 *                     self.stream_name = '<byte string>'
 *                 else:
 *                     self.stream_name = u'<byte string>'             # <<<<<<<<<<<<<<
 *             if PyString_CheckExact(stream) == 0:
 *                 if PY_MAJOR_VERSION < 3:
 */
        __Pyx_INCREF(__pyx_kp_u_byte_string);
        __Pyx_GIVEREF(__pyx_kp_u_byte_string);
        __Pyx_GOTREF(__pyx_v_self->stream_name);
        __Pyx_DECREF(__pyx_v_self->stream_name);
        __pyx_v_self->stream_name = __pyx_kp_u_byte_string;
      }
      __pyx_L28:;
    }
    __pyx_L26:;

    /* "_yaml.pyx":299
 *                 else:
 *                     self.stream_name = u'<byte string>'
 *             if PyString_CheckExact(stream) == 0:             # <<<<<<<<<<<<<<
 *                 if PY_MAJOR_VERSION < 3:
 *                     raise TypeError("a string or stream input is required")
 */
    __pyx_t_1 = ((PyString_CheckExact(__pyx_v_stream) == 0) != 0);
    if (__pyx_t_1) {

      /* "_yaml.pyx":300
 *                     self.stream_name = u'<byte string>'
 *             if PyString_CheckExact(stream) == 0:
 *                 if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *                     raise TypeError("a string or stream input is required")
 *                 else:
 */
      __pyx_t_1 = ((PY_MAJOR_VERSION < 3) != 0);
      if (__pyx_t_1) {

        /* "_yaml.pyx":301
 *             if PyString_CheckExact(stream) == 0:
 *                 if PY_MAJOR_VERSION < 3:
 *                     raise TypeError("a string or stream input is required")             # <<<<<<<<<<<<<<
 *                 else:
 *                     raise TypeError(u"a string or stream input is required")
 */
        __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple_, NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 301; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_Raise(__pyx_t_5, 0, 0, 0);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        {__pyx_filename = __pyx_f[0]; __pyx_lineno = 301; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      }
      /*else*/ {

        /* "_yaml.pyx":303
 *                     raise TypeError("a string or stream input is required")
 *                 else:
 *                     raise TypeError(u"a string or stream input is required")             # <<<<<<<<<<<<<<
 *             self.stream = stream
 *             yaml_parser_set_input_string(&self.parser, PyString_AS_STRING(stream), PyString_GET_SIZE(stream))
 */
        __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__2, NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 303; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_Raise(__pyx_t_5, 0, 0, 0);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        {__pyx_filename = __pyx_f[0]; __pyx_lineno = 303; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      }
    }

    /* "_yaml.pyx":304
 *                 else:
 *                     raise TypeError(u"a string or stream input is required")
 *             self.stream = stream             # <<<<<<<<<<<<<<
 *             yaml_parser_set_input_string(&self.parser, PyString_AS_STRING(stream), PyString_GET_SIZE(stream))
 *         self.current_token = None
 */
    __Pyx_INCREF(__pyx_v_stream);
    __Pyx_GIVEREF(__pyx_v_stream);
    __Pyx_GOTREF(__pyx_v_self->stream);
    __Pyx_DECREF(__pyx_v_self->stream);
    __pyx_v_self->stream = __pyx_v_stream;

    /* "_yaml.pyx":305
 *                     raise TypeError(u"a string or stream input is required")
 *             self.stream = stream
 *             yaml_parser_set_input_string(&self.parser, PyString_AS_STRING(stream), PyString_GET_SIZE(stream))             # <<<<<<<<<<<<<<
 *         self.current_token = None
 *         self.current_event = None
 */
    yaml_parser_set_input_string((&__pyx_v_self->parser), PyString_AS_STRING(__pyx_v_stream), PyString_GET_SIZE(__pyx_v_stream));
  }
  __pyx_L14:;

  /* "_yaml.pyx":306
 *             self.stream = stream
 *             yaml_parser_set_input_string(&self.parser, PyString_AS_STRING(stream), PyString_GET_SIZE(stream))
 *         self.current_token = None             # <<<<<<<<<<<<<<
 *         self.current_event = None
 *         self.anchors = {}
 */
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->current_token);
  __Pyx_DECREF(__pyx_v_self->current_token);
  __pyx_v_self->current_token = Py_None;

  /* "_yaml.pyx":307
 *             yaml_parser_set_input_string(&self.parser, PyString_AS_STRING(stream), PyString_GET_SIZE(stream))
 *         self.current_token = None
 *         self.current_event = None             # <<<<<<<<<<<<<<
 *         self.anchors = {}
 * 
 */
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->current_event);
  __Pyx_DECREF(__pyx_v_self->current_event);
  __pyx_v_self->current_event = Py_None;

  /* "_yaml.pyx":308
 *         self.current_token = None
 *         self.current_event = None
 *         self.anchors = {}             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(self):
 */
  __pyx_t_5 = PyDict_New(); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 308; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  __Pyx_GOTREF(__pyx_v_self->anchors);
  __Pyx_DECREF(__pyx_v_self->anchors);
  __pyx_v_self->anchors = __pyx_t_5;
  __pyx_t_5 = 0;

  /* "_yaml.pyx":262
 *     cdef int unicode_source
 * 
 *     def __init__(self, stream):             # <<<<<<<<<<<<<<
 *         cdef is_readable
 *         if yaml_parser_initialize(&self.parser) == 0:
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("_yaml.CParser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_is_readable);
  __Pyx_XDECREF(__pyx_v_stream);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_yaml.pyx":310
 *         self.anchors = {}
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         yaml_parser_delete(&self.parser)
 *         yaml_event_delete(&self.parsed_event)
 */

/* Python wrapper */
static void __pyx_pw_5_yaml_7CParser_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_5_yaml_7CParser_3__dealloc__(PyObject *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_pf_5_yaml_7CParser_2__dealloc__(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_5_yaml_7CParser_2__dealloc__(struct __pyx_obj_5_yaml_CParser *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__", 0);

  /* "_yaml.pyx":311
 * 
 *     def __dealloc__(self):
 *         yaml_parser_delete(&self.parser)             # <<<<<<<<<<<<<<
 *         yaml_event_delete(&self.parsed_event)
 * 
 */
  yaml_parser_delete((&__pyx_v_self->parser));

  /* "_yaml.pyx":312
 *     def __dealloc__(self):
 *         yaml_parser_delete(&self.parser)
 *         yaml_event_delete(&self.parsed_event)             # <<<<<<<<<<<<<<
 * 
 *     def dispose(self):
 */
  yaml_event_delete((&__pyx_v_self->parsed_event));

  /* "_yaml.pyx":310
 *         self.anchors = {}
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         yaml_parser_delete(&self.parser)
 *         yaml_event_delete(&self.parsed_event)
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "_yaml.pyx":314
 *         yaml_event_delete(&self.parsed_event)
 * 
 *     def dispose(self):             # <<<<<<<<<<<<<<
 *         pass
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_yaml_7CParser_5dispose(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_5_yaml_7CParser_5dispose(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("dispose (wrapper)", 0);
  __pyx_r = __pyx_pf_5_yaml_7CParser_4dispose(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_yaml_7CParser_4dispose(CYTHON_UNUSED struct __pyx_obj_5_yaml_CParser *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("dispose", 0);

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_yaml.pyx":317
 *         pass
 * 
 *     cdef object _parser_error(self):             # <<<<<<<<<<<<<<
 *         if self.parser.error == YAML_MEMORY_ERROR:
 *             return MemoryError
 */

static PyObject *__pyx_f_5_yaml_7CParser__parser_error(struct __pyx_obj_5_yaml_CParser *__pyx_v_self) {
  PyObject *__pyx_v_context_mark = NULL;
  PyObject *__pyx_v_problem_mark = NULL;
  PyObject *__pyx_v_context = NULL;
  PyObject *__pyx_v_problem = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  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("_parser_error", 0);

  /* "_yaml.pyx":327
 *                 return ReaderError(self.stream_name, self.parser.problem_offset,
 *                         self.parser.problem_value, u'?', PyUnicode_FromString(self.parser.problem))
 *         elif self.parser.error == YAML_SCANNER_ERROR    \             # <<<<<<<<<<<<<<
 *                 or self.parser.error == YAML_PARSER_ERROR:
 *             context_mark = None
 */
  switch (__pyx_v_self->parser.error) {

    /* "_yaml.pyx":318
 * 
 *     cdef object _parser_error(self):
 *         if self.parser.error == YAML_MEMORY_ERROR:             # <<<<<<<<<<<<<<
 *             return MemoryError
 *         elif self.parser.error == YAML_READER_ERROR:
 */
    case YAML_MEMORY_ERROR:

    /* "_yaml.pyx":319
 *     cdef object _parser_error(self):
 *         if self.parser.error == YAML_MEMORY_ERROR:
 *             return MemoryError             # <<<<<<<<<<<<<<
 *         elif self.parser.error == YAML_READER_ERROR:
 *             if PY_MAJOR_VERSION < 3:
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_builtin_MemoryError);
    __pyx_r = __pyx_builtin_MemoryError;
    goto __pyx_L0;
    break;

    /* "_yaml.pyx":320
 *         if self.parser.error == YAML_MEMORY_ERROR:
 *             return MemoryError
 *         elif self.parser.error == YAML_READER_ERROR:             # <<<<<<<<<<<<<<
 *             if PY_MAJOR_VERSION < 3:
 *                 return ReaderError(self.stream_name, self.parser.problem_offset,
 */
    case YAML_READER_ERROR:

    /* "_yaml.pyx":321
 *             return MemoryError
 *         elif self.parser.error == YAML_READER_ERROR:
 *             if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *                 return ReaderError(self.stream_name, self.parser.problem_offset,
 *                         self.parser.problem_value, '?', self.parser.problem)
 */
    __pyx_t_1 = ((PY_MAJOR_VERSION < 3) != 0);
    if (__pyx_t_1) {

      /* "_yaml.pyx":322
 *         elif self.parser.error == YAML_READER_ERROR:
 *             if PY_MAJOR_VERSION < 3:
 *                 return ReaderError(self.stream_name, self.parser.problem_offset,             # <<<<<<<<<<<<<<
 *                         self.parser.problem_value, '?', self.parser.problem)
 *             else:
 */
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_ReaderError); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 322; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_self->parser.problem_offset); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 322; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);

      /* "_yaml.pyx":323
 *             if PY_MAJOR_VERSION < 3:
 *                 return ReaderError(self.stream_name, self.parser.problem_offset,
 *                         self.parser.problem_value, '?', self.parser.problem)             # <<<<<<<<<<<<<<
 *             else:
 *                 return ReaderError(self.stream_name, self.parser.problem_offset,
 */
      __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_self->parser.problem_value); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 323; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_5 = __Pyx_PyBytes_FromString(__pyx_v_self->parser.problem); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 323; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_5);

      /* "_yaml.pyx":322
 *         elif self.parser.error == YAML_READER_ERROR:
 *             if PY_MAJOR_VERSION < 3:
 *                 return ReaderError(self.stream_name, self.parser.problem_offset,             # <<<<<<<<<<<<<<
 *                         self.parser.problem_value, '?', self.parser.problem)
 *             else:
 */
      __pyx_t_6 = PyTuple_New(5); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 322; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_INCREF(__pyx_v_self->stream_name);
      PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v_self->stream_name);
      __Pyx_GIVEREF(__pyx_v_self->stream_name);
      PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_3);
      __Pyx_GIVEREF(__pyx_t_3);
      PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_t_4);
      __Pyx_GIVEREF(__pyx_t_4);
      __Pyx_INCREF(__pyx_kp_s__3);
      PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_kp_s__3);
      __Pyx_GIVEREF(__pyx_kp_s__3);
      PyTuple_SET_ITEM(__pyx_t_6, 4, __pyx_t_5);
      __Pyx_GIVEREF(__pyx_t_5);
      __pyx_t_3 = 0;
      __pyx_t_4 = 0;
      __pyx_t_5 = 0;
      __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_6, NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 322; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_r = __pyx_t_5;
      __pyx_t_5 = 0;
      goto __pyx_L0;
    }
    /*else*/ {

      /* "_yaml.pyx":325
 *                         self.parser.problem_value, '?', self.parser.problem)
 *             else:
 *                 return ReaderError(self.stream_name, self.parser.problem_offset,             # <<<<<<<<<<<<<<
 *                         self.parser.problem_value, u'?', PyUnicode_FromString(self.parser.problem))
 *         elif self.parser.error == YAML_SCANNER_ERROR    \
 */
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_ReaderError); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 325; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_self->parser.problem_offset); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 325; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_6);

      /* "_yaml.pyx":326
 *             else:
 *                 return ReaderError(self.stream_name, self.parser.problem_offset,
 *                         self.parser.problem_value, u'?', PyUnicode_FromString(self.parser.problem))             # <<<<<<<<<<<<<<
 *         elif self.parser.error == YAML_SCANNER_ERROR    \
 *                 or self.parser.error == YAML_PARSER_ERROR:
 */
      __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_self->parser.problem_value); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 326; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_4 = PyUnicode_FromString(__pyx_v_self->parser.problem); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 326; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_4);

      /* "_yaml.pyx":325
 *                         self.parser.problem_value, '?', self.parser.problem)
 *             else:
 *                 return ReaderError(self.stream_name, self.parser.problem_offset,             # <<<<<<<<<<<<<<
 *                         self.parser.problem_value, u'?', PyUnicode_FromString(self.parser.problem))
 *         elif self.parser.error == YAML_SCANNER_ERROR    \
 */
      __pyx_t_3 = PyTuple_New(5); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 325; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_INCREF(__pyx_v_self->stream_name);
      PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_self->stream_name);
      __Pyx_GIVEREF(__pyx_v_self->stream_name);
      PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_6);
      __Pyx_GIVEREF(__pyx_t_6);
      PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_t_2);
      __Pyx_GIVEREF(__pyx_t_2);
      __Pyx_INCREF(__pyx_kp_u__3);
      PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_kp_u__3);
      __Pyx_GIVEREF(__pyx_kp_u__3);
      PyTuple_SET_ITEM(__pyx_t_3, 4, __pyx_t_4);
      __Pyx_GIVEREF(__pyx_t_4);
      __pyx_t_6 = 0;
      __pyx_t_2 = 0;
      __pyx_t_4 = 0;
      __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_3, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 325; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_4;
      __pyx_t_4 = 0;
      goto __pyx_L0;
    }
    break;

    /* "_yaml.pyx":328
 *                         self.parser.problem_value, u'?', PyUnicode_FromString(self.parser.problem))
 *         elif self.parser.error == YAML_SCANNER_ERROR    \
 *                 or self.parser.error == YAML_PARSER_ERROR:             # <<<<<<<<<<<<<<
 *             context_mark = None
 *             problem_mark = None
 */
    case YAML_SCANNER_ERROR:
    case YAML_PARSER_ERROR:

    /* "_yaml.pyx":329
 *         elif self.parser.error == YAML_SCANNER_ERROR    \
 *                 or self.parser.error == YAML_PARSER_ERROR:
 *             context_mark = None             # <<<<<<<<<<<<<<
 *             problem_mark = None
 *             if self.parser.context != NULL:
 */
    __Pyx_INCREF(Py_None);
    __pyx_v_context_mark = Py_None;

    /* "_yaml.pyx":330
 *                 or self.parser.error == YAML_PARSER_ERROR:
 *             context_mark = None
 *             problem_mark = None             # <<<<<<<<<<<<<<
 *             if self.parser.context != NULL:
 *                 context_mark = Mark(self.stream_name,
 */
    __Pyx_INCREF(Py_None);
    __pyx_v_problem_mark = Py_None;

    /* "_yaml.pyx":331
 *             context_mark = None
 *             problem_mark = None
 *             if self.parser.context != NULL:             # <<<<<<<<<<<<<<
 *                 context_mark = Mark(self.stream_name,
 *                         self.parser.context_mark.index,
 */
    __pyx_t_1 = ((__pyx_v_self->parser.context != NULL) != 0);
    if (__pyx_t_1) {

      /* "_yaml.pyx":333
 *             if self.parser.context != NULL:
 *                 context_mark = Mark(self.stream_name,
 *                         self.parser.context_mark.index,             # <<<<<<<<<<<<<<
 *                         self.parser.context_mark.line,
 *                         self.parser.context_mark.column, None, None)
 */
      __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_self->parser.context_mark.index); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_4);

      /* "_yaml.pyx":334
 *                 context_mark = Mark(self.stream_name,
 *                         self.parser.context_mark.index,
 *                         self.parser.context_mark.line,             # <<<<<<<<<<<<<<
 *                         self.parser.context_mark.column, None, None)
 *             if self.parser.problem != NULL:
 */
      __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_self->parser.context_mark.line); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 334; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);

      /* "_yaml.pyx":335
 *                         self.parser.context_mark.index,
 *                         self.parser.context_mark.line,
 *                         self.parser.context_mark.column, None, None)             # <<<<<<<<<<<<<<
 *             if self.parser.problem != NULL:
 *                 problem_mark = Mark(self.stream_name,
 */
      __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_self->parser.context_mark.column); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 335; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_5);

      /* "_yaml.pyx":332
 *             problem_mark = None
 *             if self.parser.context != NULL:
 *                 context_mark = Mark(self.stream_name,             # <<<<<<<<<<<<<<
 *                         self.parser.context_mark.index,
 *                         self.parser.context_mark.line,
 */
      __pyx_t_2 = PyTuple_New(6); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 332; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_INCREF(__pyx_v_self->stream_name);
      PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_self->stream_name);
      __Pyx_GIVEREF(__pyx_v_self->stream_name);
      PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4);
      __Pyx_GIVEREF(__pyx_t_4);
      PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_t_3);
      __Pyx_GIVEREF(__pyx_t_3);
      PyTuple_SET_ITEM(__pyx_t_2, 3, __pyx_t_5);
      __Pyx_GIVEREF(__pyx_t_5);
      __Pyx_INCREF(Py_None);
      PyTuple_SET_ITEM(__pyx_t_2, 4, Py_None);
      __Pyx_GIVEREF(Py_None);
      __Pyx_INCREF(Py_None);
      PyTuple_SET_ITEM(__pyx_t_2, 5, Py_None);
      __Pyx_GIVEREF(Py_None);
      __pyx_t_4 = 0;
      __pyx_t_3 = 0;
      __pyx_t_5 = 0;
      __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_5_yaml_Mark)), __pyx_t_2, NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 332; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF_SET(__pyx_v_context_mark, __pyx_t_5);
      __pyx_t_5 = 0;
      goto __pyx_L4;
    }
    __pyx_L4:;

    /* "_yaml.pyx":336
 *                         self.parser.context_mark.line,
 *                         self.parser.context_mark.column, None, None)
 *             if self.parser.problem != NULL:             # <<<<<<<<<<<<<<
 *                 problem_mark = Mark(self.stream_name,
 *                         self.parser.problem_mark.index,
 */
    __pyx_t_1 = ((__pyx_v_self->parser.problem != NULL) != 0);
    if (__pyx_t_1) {

      /* "_yaml.pyx":338
 *             if self.parser.problem != NULL:
 *                 problem_mark = Mark(self.stream_name,
 *                         self.parser.problem_mark.index,             # <<<<<<<<<<<<<<
 *                         self.parser.problem_mark.line,
 *                         self.parser.problem_mark.column, None, None)
 */
      __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_self->parser.problem_mark.index); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 338; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_5);

      /* "_yaml.pyx":339
 *                 problem_mark = Mark(self.stream_name,
 *                         self.parser.problem_mark.index,
 *                         self.parser.problem_mark.line,             # <<<<<<<<<<<<<<
 *                         self.parser.problem_mark.column, None, None)
 *             context = None
 */
      __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_self->parser.problem_mark.line); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 339; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_2);

      /* "_yaml.pyx":340
 *                         self.parser.problem_mark.index,
 *                         self.parser.problem_mark.line,
 *                         self.parser.problem_mark.column, None, None)             # <<<<<<<<<<<<<<
 *             context = None
 *             if self.parser.context != NULL:
 */
      __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_self->parser.problem_mark.column); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 340; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);

      /* "_yaml.pyx":337
 *                         self.parser.context_mark.column, None, None)
 *             if self.parser.problem != NULL:
 *                 problem_mark = Mark(self.stream_name,             # <<<<<<<<<<<<<<
 *                         self.parser.problem_mark.index,
 *                         self.parser.problem_mark.line,
 */
      __pyx_t_4 = PyTuple_New(6); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 337; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_INCREF(__pyx_v_self->stream_name);
      PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_self->stream_name);
      __Pyx_GIVEREF(__pyx_v_self->stream_name);
      PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_5);
      __Pyx_GIVEREF(__pyx_t_5);
      PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_2);
      __Pyx_GIVEREF(__pyx_t_2);
      PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_t_3);
      __Pyx_GIVEREF(__pyx_t_3);
      __Pyx_INCREF(Py_None);
      PyTuple_SET_ITEM(__pyx_t_4, 4, Py_None);
      __Pyx_GIVEREF(Py_None);
      __Pyx_INCREF(Py_None);
      PyTuple_SET_ITEM(__pyx_t_4, 5, Py_None);
      __Pyx_GIVEREF(Py_None);
      __pyx_t_5 = 0;
      __pyx_t_2 = 0;
      __pyx_t_3 = 0;
      __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_5_yaml_Mark)), __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 337; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF_SET(__pyx_v_problem_mark, __pyx_t_3);
      __pyx_t_3 = 0;
      goto __pyx_L5;
    }
    __pyx_L5:;

    /* "_yaml.pyx":341
 *                         self.parser.problem_mark.line,
 *                         self.parser.problem_mark.column, None, None)
 *             context = None             # <<<<<<<<<<<<<<
 *             if self.parser.context != NULL:
 *                 if PY_MAJOR_VERSION < 3:
 */
    __Pyx_INCREF(Py_None);
    __pyx_v_context = Py_None;

    /* "_yaml.pyx":342
 *                         self.parser.problem_mark.column, None, None)
 *             context = None
 *             if self.parser.context != NULL:             # <<<<<<<<<<<<<<
 *                 if PY_MAJOR_VERSION < 3:
 *                     context = self.parser.context
 */
    __pyx_t_1 = ((__pyx_v_self->parser.context != NULL) != 0);
    if (__pyx_t_1) {

      /* "_yaml.pyx":343
 *             context = None
 *             if self.parser.context != NULL:
 *                 if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *                     context = self.parser.context
 *                 else:
 */
      __pyx_t_1 = ((PY_MAJOR_VERSION < 3) != 0);
      if (__pyx_t_1) {

        /* "_yaml.pyx":344
 *             if self.parser.context != NULL:
 *                 if PY_MAJOR_VERSION < 3:
 *                     context = self.parser.context             # <<<<<<<<<<<<<<
 *                 else:
 *                     context = PyUnicode_FromString(self.parser.context)
 */
        __pyx_t_3 = __Pyx_PyBytes_FromString(__pyx_v_self->parser.context); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 344; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF_SET(__pyx_v_context, __pyx_t_3);
        __pyx_t_3 = 0;
        goto __pyx_L7;
      }
      /*else*/ {

        /* "_yaml.pyx":346
 *                     context = self.parser.context
 *                 else:
 *                     context = PyUnicode_FromString(self.parser.context)             # <<<<<<<<<<<<<<
 *             if PY_MAJOR_VERSION < 3:
 *                 problem = self.parser.problem
 */
        __pyx_t_3 = PyUnicode_FromString(__pyx_v_self->parser.context); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 346; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF_SET(__pyx_v_context, __pyx_t_3);
        __pyx_t_3 = 0;
      }
      __pyx_L7:;
      goto __pyx_L6;
    }
    __pyx_L6:;

    /* "_yaml.pyx":347
 *                 else:
 *                     context = PyUnicode_FromString(self.parser.context)
 *             if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *                 problem = self.parser.problem
 *             else:
 */
    __pyx_t_1 = ((PY_MAJOR_VERSION < 3) != 0);
    if (__pyx_t_1) {

      /* "_yaml.pyx":348
 *                     context = PyUnicode_FromString(self.parser.context)
 *             if PY_MAJOR_VERSION < 3:
 *                 problem = self.parser.problem             # <<<<<<<<<<<<<<
 *             else:
 *                 problem = PyUnicode_FromString(self.parser.problem)
 */
      __pyx_t_3 = __Pyx_PyBytes_FromString(__pyx_v_self->parser.problem); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 348; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_v_problem = __pyx_t_3;
      __pyx_t_3 = 0;
      goto __pyx_L8;
    }
    /*else*/ {

      /* "_yaml.pyx":350
 *                 problem = self.parser.problem
 *             else:
 *                 problem = PyUnicode_FromString(self.parser.problem)             # <<<<<<<<<<<<<<
 *             if self.parser.error == YAML_SCANNER_ERROR:
 *                 return ScannerError(context, context_mark, problem, problem_mark)
 */
      __pyx_t_3 = PyUnicode_FromString(__pyx_v_self->parser.problem); 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_v_problem = __pyx_t_3;
      __pyx_t_3 = 0;
    }
    __pyx_L8:;

    /* "_yaml.pyx":351
 *             else:
 *                 problem = PyUnicode_FromString(self.parser.problem)
 *             if self.parser.error == YAML_SCANNER_ERROR:             # <<<<<<<<<<<<<<
 *                 return ScannerError(context, context_mark, problem, problem_mark)
 *             else:
 */
    __pyx_t_1 = ((__pyx_v_self->parser.error == YAML_SCANNER_ERROR) != 0);
    if (__pyx_t_1) {

      /* "_yaml.pyx":352
 *                 problem = PyUnicode_FromString(self.parser.problem)
 *             if self.parser.error == YAML_SCANNER_ERROR:
 *                 return ScannerError(context, context_mark, problem, problem_mark)             # <<<<<<<<<<<<<<
 *             else:
 *                 return ParserError(context, context_mark, problem, problem_mark)
 */
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_ScannerError); 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_t_4 = PyTuple_New(4); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 352; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_INCREF(__pyx_v_context);
      PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_context);
      __Pyx_GIVEREF(__pyx_v_context);
      __Pyx_INCREF(__pyx_v_context_mark);
      PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_context_mark);
      __Pyx_GIVEREF(__pyx_v_context_mark);
      __Pyx_INCREF(__pyx_v_problem);
      PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_problem);
      __Pyx_GIVEREF(__pyx_v_problem);
      __Pyx_INCREF(__pyx_v_problem_mark);
      PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_v_problem_mark);
      __Pyx_GIVEREF(__pyx_v_problem_mark);
      __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, NULL); 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_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      goto __pyx_L0;
    }
    /*else*/ {

      /* "_yaml.pyx":354
 *                 return ScannerError(context, context_mark, problem, problem_mark)
 *             else:
 *                 return ParserError(context, context_mark, problem, problem_mark)             # <<<<<<<<<<<<<<
 *         if PY_MAJOR_VERSION < 3:
 *             raise ValueError("no parser error")
 */
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_ParserError); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 354; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_4 = PyTuple_New(4); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 354; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_INCREF(__pyx_v_context);
      PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_context);
      __Pyx_GIVEREF(__pyx_v_context);
      __Pyx_INCREF(__pyx_v_context_mark);
      PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_context_mark);
      __Pyx_GIVEREF(__pyx_v_context_mark);
      __Pyx_INCREF(__pyx_v_problem);
      PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_problem);
      __Pyx_GIVEREF(__pyx_v_problem);
      __Pyx_INCREF(__pyx_v_problem_mark);
      PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_v_problem_mark);
      __Pyx_GIVEREF(__pyx_v_problem_mark);
      __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 354; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_r = __pyx_t_3;
      __pyx_t_3 = 0;
      goto __pyx_L0;
    }
    break;
    default: break;
  }

  /* "_yaml.pyx":355
 *             else:
 *                 return ParserError(context, context_mark, problem, problem_mark)
 *         if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *             raise ValueError("no parser error")
 *         else:
 */
  __pyx_t_1 = ((PY_MAJOR_VERSION < 3) != 0);
  if (__pyx_t_1) {

    /* "_yaml.pyx":356
 *                 return ParserError(context, context_mark, problem, problem_mark)
 *         if PY_MAJOR_VERSION < 3:
 *             raise ValueError("no parser error")             # <<<<<<<<<<<<<<
 *         else:
 *             raise ValueError(u"no parser error")
 */
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__4, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 356; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 356; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  }
  /*else*/ {

    /* "_yaml.pyx":358
 *             raise ValueError("no parser error")
 *         else:
 *             raise ValueError(u"no parser error")             # <<<<<<<<<<<<<<
 * 
 *     def raw_scan(self):
 */
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__5, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 358; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 358; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  }

  /* "_yaml.pyx":317
 *         pass
 * 
 *     cdef object _parser_error(self):             # <<<<<<<<<<<<<<
 *         if self.parser.error == YAML_MEMORY_ERROR:
 *             return MemoryError
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_yaml.CParser._parser_error", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_context_mark);
  __Pyx_XDECREF(__pyx_v_problem_mark);
  __Pyx_XDECREF(__pyx_v_context);
  __Pyx_XDECREF(__pyx_v_problem);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_yaml.pyx":360
 *             raise ValueError(u"no parser error")
 * 
 *     def raw_scan(self):             # <<<<<<<<<<<<<<
 *         cdef yaml_token_t token
 *         cdef int done
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_yaml_7CParser_7raw_scan(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_5_yaml_7CParser_7raw_scan(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("raw_scan (wrapper)", 0);
  __pyx_r = __pyx_pf_5_yaml_7CParser_6raw_scan(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_yaml_7CParser_6raw_scan(struct __pyx_obj_5_yaml_CParser *__pyx_v_self) {
  yaml_token_t __pyx_v_token;
  int __pyx_v_done;
  int __pyx_v_count;
  PyObject *__pyx_v_error = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("raw_scan", 0);

  /* "_yaml.pyx":364
 *         cdef int done
 *         cdef int count
 *         count = 0             # <<<<<<<<<<<<<<
 *         done = 0
 *         while done == 0:
 */
  __pyx_v_count = 0;

  /* "_yaml.pyx":365
 *         cdef int count
 *         count = 0
 *         done = 0             # <<<<<<<<<<<<<<
 *         while done == 0:
 *             if yaml_parser_scan(&self.parser, &token) == 0:
 */
  __pyx_v_done = 0;

  /* "_yaml.pyx":366
 *         count = 0
 *         done = 0
 *         while done == 0:             # <<<<<<<<<<<<<<
 *             if yaml_parser_scan(&self.parser, &token) == 0:
 *                 error = self._parser_error()
 */
  while (1) {
    __pyx_t_1 = ((__pyx_v_done == 0) != 0);
    if (!__pyx_t_1) break;

    /* "_yaml.pyx":367
 *         done = 0
 *         while done == 0:
 *             if yaml_parser_scan(&self.parser, &token) == 0:             # <<<<<<<<<<<<<<
 *                 error = self._parser_error()
 *                 raise error
 */
    __pyx_t_2 = yaml_parser_scan((&__pyx_v_self->parser), (&__pyx_v_token)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 367; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __pyx_t_1 = ((__pyx_t_2 == 0) != 0);
    if (__pyx_t_1) {

      /* "_yaml.pyx":368
 *         while done == 0:
 *             if yaml_parser_scan(&self.parser, &token) == 0:
 *                 error = self._parser_error()             # <<<<<<<<<<<<<<
 *                 raise error
 *             if token.type == YAML_NO_TOKEN:
 */
      __pyx_t_3 = ((struct __pyx_vtabstruct_5_yaml_CParser *)__pyx_v_self->__pyx_vtab)->_parser_error(__pyx_v_self); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 368; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_v_error = __pyx_t_3;
      __pyx_t_3 = 0;

      /* "_yaml.pyx":369
 *             if yaml_parser_scan(&self.parser, &token) == 0:
 *                 error = self._parser_error()
 *                 raise error             # <<<<<<<<<<<<<<
 *             if token.type == YAML_NO_TOKEN:
 *                 done = 1
 */
      __Pyx_Raise(__pyx_v_error, 0, 0, 0);
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 369; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    }

    /* "_yaml.pyx":370
 *                 error = self._parser_error()
 *                 raise error
 *             if token.type == YAML_NO_TOKEN:             # <<<<<<<<<<<<<<
 *                 done = 1
 *             else:
 */
    __pyx_t_1 = ((__pyx_v_token.type == YAML_NO_TOKEN) != 0);
    if (__pyx_t_1) {

      /* "_yaml.pyx":371
 *                 raise error
 *             if token.type == YAML_NO_TOKEN:
 *                 done = 1             # <<<<<<<<<<<<<<
 *             else:
 *                 count = count+1
 */
      __pyx_v_done = 1;
      goto __pyx_L6;
    }
    /*else*/ {

      /* "_yaml.pyx":373
 *                 done = 1
 *             else:
 *                 count = count+1             # <<<<<<<<<<<<<<
 *             yaml_token_delete(&token)
 *         return count
 */
      __pyx_v_count = (__pyx_v_count + 1);
    }
    __pyx_L6:;

    /* "_yaml.pyx":374
 *             else:
 *                 count = count+1
 *             yaml_token_delete(&token)             # <<<<<<<<<<<<<<
 *         return count
 * 
 */
    yaml_token_delete((&__pyx_v_token));
  }

  /* "_yaml.pyx":375
 *                 count = count+1
 *             yaml_token_delete(&token)
 *         return count             # <<<<<<<<<<<<<<
 * 
 *     cdef object _scan(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_count); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 375; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "_yaml.pyx":360
 *             raise ValueError(u"no parser error")
 * 
 *     def raw_scan(self):             # <<<<<<<<<<<<<<
 *         cdef yaml_token_t token
 *         cdef int done
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("_yaml.CParser.raw_scan", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_error);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_yaml.pyx":377
 *         return count
 * 
 *     cdef object _scan(self):             # <<<<<<<<<<<<<<
 *         cdef yaml_token_t token
 *         if yaml_parser_scan(&self.parser, &token) == 0:
 */

static PyObject *__pyx_f_5_yaml_7CParser__scan(struct __pyx_obj_5_yaml_CParser *__pyx_v_self) {
  yaml_token_t __pyx_v_token;
  PyObject *__pyx_v_error = NULL;
  PyObject *__pyx_v_token_object = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_scan", 0);

  /* "_yaml.pyx":379
 *     cdef object _scan(self):
 *         cdef yaml_token_t token
 *         if yaml_parser_scan(&self.parser, &token) == 0:             # <<<<<<<<<<<<<<
 *             error = self._parser_error()
 *             raise error
 */
  __pyx_t_1 = yaml_parser_scan((&__pyx_v_self->parser), (&__pyx_v_token)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 379; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_t_2 = ((__pyx_t_1 == 0) != 0);
  if (__pyx_t_2) {

    /* "_yaml.pyx":380
 *         cdef yaml_token_t token
 *         if yaml_parser_scan(&self.parser, &token) == 0:
 *             error = self._parser_error()             # <<<<<<<<<<<<<<
 *             raise error
 *         token_object = self._token_to_object(&token)
 */
    __pyx_t_3 = ((struct __pyx_vtabstruct_5_yaml_CParser *)__pyx_v_self->__pyx_vtab)->_parser_error(__pyx_v_self); 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_v_error = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "_yaml.pyx":381
 *         if yaml_parser_scan(&self.parser, &token) == 0:
 *             error = self._parser_error()
 *             raise error             # <<<<<<<<<<<<<<
 *         token_object = self._token_to_object(&token)
 *         yaml_token_delete(&token)
 */
    __Pyx_Raise(__pyx_v_error, 0, 0, 0);
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 381; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  }

  /* "_yaml.pyx":382
 *             error = self._parser_error()
 *             raise error
 *         token_object = self._token_to_object(&token)             # <<<<<<<<<<<<<<
 *         yaml_token_delete(&token)
 *         return token_object
 */
  __pyx_t_3 = ((struct __pyx_vtabstruct_5_yaml_CParser *)__pyx_v_self->__pyx_vtab)->_token_to_object(__pyx_v_self, (&__pyx_v_token)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 382; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_v_token_object = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "_yaml.pyx":383
 *             raise error
 *         token_object = self._token_to_object(&token)
 *         yaml_token_delete(&token)             # <<<<<<<<<<<<<<
 *         return token_object
 * 
 */
  yaml_token_delete((&__pyx_v_token));

  /* "_yaml.pyx":384
 *         token_object = self._token_to_object(&token)
 *         yaml_token_delete(&token)
 *         return token_object             # <<<<<<<<<<<<<<
 * 
 *     cdef object _token_to_object(self, yaml_token_t *token):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_token_object);
  __pyx_r = __pyx_v_token_object;
  goto __pyx_L0;

  /* "_yaml.pyx":377
 *         return count
 * 
 *     cdef object _scan(self):             # <<<<<<<<<<<<<<
 *         cdef yaml_token_t token
 *         if yaml_parser_scan(&self.parser, &token) == 0:
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("_yaml.CParser._scan", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_error);
  __Pyx_XDECREF(__pyx_v_token_object);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_yaml.pyx":386
 *         return token_object
 * 
 *     cdef object _token_to_object(self, yaml_token_t *token):             # <<<<<<<<<<<<<<
 *         start_mark = Mark(self.stream_name,
 *                 token.start_mark.index,
 */

static PyObject *__pyx_f_5_yaml_7CParser__token_to_object(struct __pyx_obj_5_yaml_CParser *__pyx_v_self, yaml_token_t *__pyx_v_token) {
  struct __pyx_obj_5_yaml_Mark *__pyx_v_start_mark = NULL;
  struct __pyx_obj_5_yaml_Mark *__pyx_v_end_mark = NULL;
  PyObject *__pyx_v_encoding = NULL;
  PyObject *__pyx_v_handle = NULL;
  PyObject *__pyx_v_prefix = NULL;
  PyObject *__pyx_v_value = NULL;
  PyObject *__pyx_v_suffix = NULL;
  int __pyx_v_plain;
  PyObject *__pyx_v_style = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_token_to_object", 0);

  /* "_yaml.pyx":388
 *     cdef object _token_to_object(self, yaml_token_t *token):
 *         start_mark = Mark(self.stream_name,
 *                 token.start_mark.index,             # <<<<<<<<<<<<<<
 *                 token.start_mark.line,
 *                 token.start_mark.column,
 */
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_token->start_mark.index); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 388; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);

  /* "_yaml.pyx":389
 *         start_mark = Mark(self.stream_name,
 *                 token.start_mark.index,
 *                 token.start_mark.line,             # <<<<<<<<<<<<<<
 *                 token.start_mark.column,
 *                 None, None)
 */
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_token->start_mark.line); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 389; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);

  /* "_yaml.pyx":390
 *                 token.start_mark.index,
 *                 token.start_mark.line,
 *                 token.start_mark.column,             # <<<<<<<<<<<<<<
 *                 None, None)
 *         end_mark = Mark(self.stream_name,
 */
  __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_token->start_mark.column); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 390; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);

  /* "_yaml.pyx":387
 * 
 *     cdef object _token_to_object(self, yaml_token_t *token):
 *         start_mark = Mark(self.stream_name,             # <<<<<<<<<<<<<<
 *                 token.start_mark.index,
 *                 token.start_mark.line,
 */
  __pyx_t_4 = PyTuple_New(6); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 387; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(__pyx_v_self->stream_name);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_self->stream_name);
  __Pyx_GIVEREF(__pyx_v_self->stream_name);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(Py_None);
  PyTuple_SET_ITEM(__pyx_t_4, 4, Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_INCREF(Py_None);
  PyTuple_SET_ITEM(__pyx_t_4, 5, Py_None);
  __Pyx_GIVEREF(Py_None);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_5_yaml_Mark)), __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 387; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_v_start_mark = ((struct __pyx_obj_5_yaml_Mark *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "_yaml.pyx":393
 *                 None, None)
 *         end_mark = Mark(self.stream_name,
 *                 token.end_mark.index,             # <<<<<<<<<<<<<<
 *                 token.end_mark.line,
 *                 token.end_mark.column,
 */
  __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_token->end_mark.index); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 393; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);

  /* "_yaml.pyx":394
 *         end_mark = Mark(self.stream_name,
 *                 token.end_mark.index,
 *                 token.end_mark.line,             # <<<<<<<<<<<<<<
 *                 token.end_mark.column,
 *                 None, None)
 */
  __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_token->end_mark.line); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 394; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);

  /* "_yaml.pyx":395
 *                 token.end_mark.index,
 *                 token.end_mark.line,
 *                 token.end_mark.column,             # <<<<<<<<<<<<<<
 *                 None, None)
 *         if token.type == YAML_NO_TOKEN:
 */
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_token->end_mark.column); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 395; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);

  /* "_yaml.pyx":392
 *                 token.start_mark.column,
 *                 None, None)
 *         end_mark = Mark(self.stream_name,             # <<<<<<<<<<<<<<
 *                 token.end_mark.index,
 *                 token.end_mark.line,
 */
  __pyx_t_1 = PyTuple_New(6); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 392; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_v_self->stream_name);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_self->stream_name);
  __Pyx_GIVEREF(__pyx_v_self->stream_name);
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(Py_None);
  PyTuple_SET_ITEM(__pyx_t_1, 4, Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_INCREF(Py_None);
  PyTuple_SET_ITEM(__pyx_t_1, 5, Py_None);
  __Pyx_GIVEREF(Py_None);
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_5_yaml_Mark)), __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 392; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_end_mark = ((struct __pyx_obj_5_yaml_Mark *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "_yaml.pyx":459
 *                 handle = None
 *             return TagToken((handle, suffix), start_mark, end_mark)
 *         elif token.type == YAML_SCALAR_TOKEN:             # <<<<<<<<<<<<<<
 *             value = PyUnicode_DecodeUTF8(token.data.scalar.value,
 *                     token.data.scalar.length, 'strict')
 */
  switch (__pyx_v_token->type) {

    /* "_yaml.pyx":397
 *                 token.end_mark.column,
 *                 None, None)
 *         if token.type == YAML_NO_TOKEN:             # <<<<<<<<<<<<<<
 *             return None
 *         elif token.type == YAML_STREAM_START_TOKEN:
 */
    case YAML_NO_TOKEN:

    /* "_yaml.pyx":398
 *                 None, None)
 *         if token.type == YAML_NO_TOKEN:
 *             return None             # <<<<<<<<<<<<<<
 *         elif token.type == YAML_STREAM_START_TOKEN:
 *             encoding = None
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_None);
    __pyx_r = Py_None;
    goto __pyx_L0;
    break;

    /* "_yaml.pyx":399
 *         if token.type == YAML_NO_TOKEN:
 *             return None
 *         elif token.type == YAML_STREAM_START_TOKEN:             # <<<<<<<<<<<<<<
 *             encoding = None
 *             if token.data.stream_start.encoding == YAML_UTF8_ENCODING:
 */
    case YAML_STREAM_START_TOKEN:

    /* "_yaml.pyx":400
 *             return None
 *         elif token.type == YAML_STREAM_START_TOKEN:
 *             encoding = None             # <<<<<<<<<<<<<<
 *             if token.data.stream_start.encoding == YAML_UTF8_ENCODING:
 *                 if self.unicode_source == 0:
 */
    __Pyx_INCREF(Py_None);
    __pyx_v_encoding = Py_None;

    /* "_yaml.pyx":401
 *         elif token.type == YAML_STREAM_START_TOKEN:
 *             encoding = None
 *             if token.data.stream_start.encoding == YAML_UTF8_ENCODING:             # <<<<<<<<<<<<<<
 *                 if self.unicode_source == 0:
 *                     encoding = u"utf-8"
 */
    __pyx_t_5 = ((__pyx_v_token->data.stream_start.encoding == YAML_UTF8_ENCODING) != 0);
    if (__pyx_t_5) {

      /* "_yaml.pyx":402
 *             encoding = None
 *             if token.data.stream_start.encoding == YAML_UTF8_ENCODING:
 *                 if self.unicode_source == 0:             # <<<<<<<<<<<<<<
 *                     encoding = u"utf-8"
 *             elif token.data.stream_start.encoding == YAML_UTF16LE_ENCODING:
 */
      __pyx_t_5 = ((__pyx_v_self->unicode_source == 0) != 0);
      if (__pyx_t_5) {

        /* "_yaml.pyx":403
 *             if token.data.stream_start.encoding == YAML_UTF8_ENCODING:
 *                 if self.unicode_source == 0:
 *                     encoding = u"utf-8"             # <<<<<<<<<<<<<<
 *             elif token.data.stream_start.encoding == YAML_UTF16LE_ENCODING:
 *                 encoding = u"utf-16-le"
 */
        __Pyx_INCREF(__pyx_kp_u_utf_8);
        __Pyx_DECREF_SET(__pyx_v_encoding, __pyx_kp_u_utf_8);
        goto __pyx_L4;
      }
      __pyx_L4:;
      goto __pyx_L3;
    }

    /* "_yaml.pyx":404
 *                 if self.unicode_source == 0:
 *                     encoding = u"utf-8"
 *             elif token.data.stream_start.encoding == YAML_UTF16LE_ENCODING:             # <<<<<<<<<<<<<<
 *                 encoding = u"utf-16-le"
 *             elif token.data.stream_start.encoding == YAML_UTF16BE_ENCODING:
 */
    __pyx_t_5 = ((__pyx_v_token->data.stream_start.encoding == YAML_UTF16LE_ENCODING) != 0);
    if (__pyx_t_5) {

      /* "_yaml.pyx":405
 *                     encoding = u"utf-8"
 *             elif token.data.stream_start.encoding == YAML_UTF16LE_ENCODING:
 *                 encoding = u"utf-16-le"             # <<<<<<<<<<<<<<
 *             elif token.data.stream_start.encoding == YAML_UTF16BE_ENCODING:
 *                 encoding = u"utf-16-be"
 */
      __Pyx_INCREF(__pyx_kp_u_utf_16_le);
      __Pyx_DECREF_SET(__pyx_v_encoding, __pyx_kp_u_utf_16_le);
      goto __pyx_L3;
    }

    /* "_yaml.pyx":406
 *             elif token.data.stream_start.encoding == YAML_UTF16LE_ENCODING:
 *                 encoding = u"utf-16-le"
 *             elif token.data.stream_start.encoding == YAML_UTF16BE_ENCODING:             # <<<<<<<<<<<<<<
 *                 encoding = u"utf-16-be"
 *             return StreamStartToken(start_mark, end_mark, encoding)
 */
    __pyx_t_5 = ((__pyx_v_token->data.stream_start.encoding == YAML_UTF16BE_ENCODING) != 0);
    if (__pyx_t_5) {

      /* "_yaml.pyx":407
 *                 encoding = u"utf-16-le"
 *             elif token.data.stream_start.encoding == YAML_UTF16BE_ENCODING:
 *                 encoding = u"utf-16-be"             # <<<<<<<<<<<<<<
 *             return StreamStartToken(start_mark, end_mark, encoding)
 *         elif token.type == YAML_STREAM_END_TOKEN:
 */
      __Pyx_INCREF(__pyx_kp_u_utf_16_be);
      __Pyx_DECREF_SET(__pyx_v_encoding, __pyx_kp_u_utf_16_be);
      goto __pyx_L3;
    }
    __pyx_L3:;

    /* "_yaml.pyx":408
 *             elif token.data.stream_start.encoding == YAML_UTF16BE_ENCODING:
 *                 encoding = u"utf-16-be"
 *             return StreamStartToken(start_mark, end_mark, encoding)             # <<<<<<<<<<<<<<
 *         elif token.type == YAML_STREAM_END_TOKEN:
 *             return StreamEndToken(start_mark, end_mark)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_StreamStartToken); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 408; __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 = 408; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_INCREF(((PyObject *)__pyx_v_start_mark));
    PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_v_start_mark));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_start_mark));
    __Pyx_INCREF(((PyObject *)__pyx_v_end_mark));
    PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_end_mark));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_end_mark));
    __Pyx_INCREF(__pyx_v_encoding);
    PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_encoding);
    __Pyx_GIVEREF(__pyx_v_encoding);
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_1, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 408; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;
    break;

    /* "_yaml.pyx":409
 *                 encoding = u"utf-16-be"
 *             return StreamStartToken(start_mark, end_mark, encoding)
 *         elif token.type == YAML_STREAM_END_TOKEN:             # <<<<<<<<<<<<<<
 *             return StreamEndToken(start_mark, end_mark)
 *         elif token.type == YAML_VERSION_DIRECTIVE_TOKEN:
 */
    case YAML_STREAM_END_TOKEN:

    /* "_yaml.pyx":410
 *             return StreamStartToken(start_mark, end_mark, encoding)
 *         elif token.type == YAML_STREAM_END_TOKEN:
 *             return StreamEndToken(start_mark, end_mark)             # <<<<<<<<<<<<<<
 *         elif token.type == YAML_VERSION_DIRECTIVE_TOKEN:
 *             return DirectiveToken(u"YAML",
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_StreamEndToken); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 410; __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 = 410; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_INCREF(((PyObject *)__pyx_v_start_mark));
    PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_v_start_mark));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_start_mark));
    __Pyx_INCREF(((PyObject *)__pyx_v_end_mark));
    PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_end_mark));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_end_mark));
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 410; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;
    break;

    /* "_yaml.pyx":411
 *         elif token.type == YAML_STREAM_END_TOKEN:
 *             return StreamEndToken(start_mark, end_mark)
 *         elif token.type == YAML_VERSION_DIRECTIVE_TOKEN:             # <<<<<<<<<<<<<<
 *             return DirectiveToken(u"YAML",
 *                     (token.data.version_directive.major,
 */
    case YAML_VERSION_DIRECTIVE_TOKEN:

    /* "_yaml.pyx":412
 *             return StreamEndToken(start_mark, end_mark)
 *         elif token.type == YAML_VERSION_DIRECTIVE_TOKEN:
 *             return DirectiveToken(u"YAML",             # <<<<<<<<<<<<<<
 *                     (token.data.version_directive.major,
 *                         token.data.version_directive.minor),
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_DirectiveToken); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 412; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);

    /* "_yaml.pyx":413
 *         elif token.type == YAML_VERSION_DIRECTIVE_TOKEN:
 *             return DirectiveToken(u"YAML",
 *                     (token.data.version_directive.major,             # <<<<<<<<<<<<<<
 *                         token.data.version_directive.minor),
 *                     start_mark, end_mark)
 */
    __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_token->data.version_directive.major); 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);

    /* "_yaml.pyx":414
 *             return DirectiveToken(u"YAML",
 *                     (token.data.version_directive.major,
 *                         token.data.version_directive.minor),             # <<<<<<<<<<<<<<
 *                     start_mark, end_mark)
 *         elif token.type == YAML_TAG_DIRECTIVE_TOKEN:
 */
    __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_token->data.version_directive.minor); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 414; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);

    /* "_yaml.pyx":413
 *         elif token.type == YAML_VERSION_DIRECTIVE_TOKEN:
 *             return DirectiveToken(u"YAML",
 *                     (token.data.version_directive.major,             # <<<<<<<<<<<<<<
 *                         token.data.version_directive.minor),
 *                     start_mark, end_mark)
 */
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 413; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_1 = 0;
    __pyx_t_4 = 0;

    /* "_yaml.pyx":412
 *             return StreamEndToken(start_mark, end_mark)
 *         elif token.type == YAML_VERSION_DIRECTIVE_TOKEN:
 *             return DirectiveToken(u"YAML",             # <<<<<<<<<<<<<<
 *                     (token.data.version_directive.major,
 *                         token.data.version_directive.minor),
 */
    __pyx_t_4 = PyTuple_New(4); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 412; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_INCREF(__pyx_n_u_YAML);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_n_u_YAML);
    __Pyx_GIVEREF(__pyx_n_u_YAML);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    __Pyx_INCREF(((PyObject *)__pyx_v_start_mark));
    PyTuple_SET_ITEM(__pyx_t_4, 2, ((PyObject *)__pyx_v_start_mark));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_start_mark));
    __Pyx_INCREF(((PyObject *)__pyx_v_end_mark));
    PyTuple_SET_ITEM(__pyx_t_4, 3, ((PyObject *)__pyx_v_end_mark));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_end_mark));
    __pyx_t_3 = 0;
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 412; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;
    break;

    /* "_yaml.pyx":416
 *                         token.data.version_directive.minor),
 *                     start_mark, end_mark)
 *         elif token.type == YAML_TAG_DIRECTIVE_TOKEN:             # <<<<<<<<<<<<<<
 *             handle = PyUnicode_FromString(token.data.tag_directive.handle)
 *             prefix = PyUnicode_FromString(token.data.tag_directive.prefix)
 */
    case YAML_TAG_DIRECTIVE_TOKEN:

    /* "_yaml.pyx":417
 *                     start_mark, end_mark)
 *         elif token.type == YAML_TAG_DIRECTIVE_TOKEN:
 *             handle = PyUnicode_FromString(token.data.tag_directive.handle)             # <<<<<<<<<<<<<<
 *             prefix = PyUnicode_FromString(token.data.tag_directive.prefix)
 *             return DirectiveToken(u"TAG", (handle, prefix),
 */
    __pyx_t_3 = PyUnicode_FromString(__pyx_v_token->data.tag_directive.handle); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 417; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_handle = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "_yaml.pyx":418
 *         elif token.type == YAML_TAG_DIRECTIVE_TOKEN:
 *             handle = PyUnicode_FromString(token.data.tag_directive.handle)
 *             prefix = PyUnicode_FromString(token.data.tag_directive.prefix)             # <<<<<<<<<<<<<<
 *             return DirectiveToken(u"TAG", (handle, prefix),
 *                     start_mark, end_mark)
 */
    __pyx_t_3 = PyUnicode_FromString(__pyx_v_token->data.tag_directive.prefix); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 418; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_prefix = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "_yaml.pyx":419
 *             handle = PyUnicode_FromString(token.data.tag_directive.handle)
 *             prefix = PyUnicode_FromString(token.data.tag_directive.prefix)
 *             return DirectiveToken(u"TAG", (handle, prefix),             # <<<<<<<<<<<<<<
 *                     start_mark, end_mark)
 *         elif token.type == YAML_DOCUMENT_START_TOKEN:
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_DirectiveToken); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 419; __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 = 419; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_INCREF(__pyx_v_handle);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_handle);
    __Pyx_GIVEREF(__pyx_v_handle);
    __Pyx_INCREF(__pyx_v_prefix);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_prefix);
    __Pyx_GIVEREF(__pyx_v_prefix);

    /* "_yaml.pyx":420
 *             prefix = PyUnicode_FromString(token.data.tag_directive.prefix)
 *             return DirectiveToken(u"TAG", (handle, prefix),
 *                     start_mark, end_mark)             # <<<<<<<<<<<<<<
 *         elif token.type == YAML_DOCUMENT_START_TOKEN:
 *             return DocumentStartToken(start_mark, end_mark)
 */
    __pyx_t_2 = PyTuple_New(4); 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_INCREF(__pyx_n_u_TAG);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_n_u_TAG);
    __Pyx_GIVEREF(__pyx_n_u_TAG);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __Pyx_INCREF(((PyObject *)__pyx_v_start_mark));
    PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_v_start_mark));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_start_mark));
    __Pyx_INCREF(((PyObject *)__pyx_v_end_mark));
    PyTuple_SET_ITEM(__pyx_t_2, 3, ((PyObject *)__pyx_v_end_mark));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_end_mark));
    __pyx_t_4 = 0;

    /* "_yaml.pyx":419
 *             handle = PyUnicode_FromString(token.data.tag_directive.handle)
 *             prefix = PyUnicode_FromString(token.data.tag_directive.prefix)
 *             return DirectiveToken(u"TAG", (handle, prefix),             # <<<<<<<<<<<<<<
 *                     start_mark, end_mark)
 *         elif token.type == YAML_DOCUMENT_START_TOKEN:
 */
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_2, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 419; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;
    break;

    /* "_yaml.pyx":421
 *             return DirectiveToken(u"TAG", (handle, prefix),
 *                     start_mark, end_mark)
 *         elif token.type == YAML_DOCUMENT_START_TOKEN:             # <<<<<<<<<<<<<<
 *             return DocumentStartToken(start_mark, end_mark)
 *         elif token.type == YAML_DOCUMENT_END_TOKEN:
 */
    case YAML_DOCUMENT_START_TOKEN:

    /* "_yaml.pyx":422
 *                     start_mark, end_mark)
 *         elif token.type == YAML_DOCUMENT_START_TOKEN:
 *             return DocumentStartToken(start_mark, end_mark)             # <<<<<<<<<<<<<<
 *         elif token.type == YAML_DOCUMENT_END_TOKEN:
 *             return DocumentEndToken(start_mark, end_mark)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_DocumentStartToken); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 422; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 422; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(((PyObject *)__pyx_v_start_mark));
    PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_start_mark));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_start_mark));
    __Pyx_INCREF(((PyObject *)__pyx_v_end_mark));
    PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_end_mark));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_end_mark));
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 422; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;
    break;

    /* "_yaml.pyx":423
 *         elif token.type == YAML_DOCUMENT_START_TOKEN:
 *             return DocumentStartToken(start_mark, end_mark)
 *         elif token.type == YAML_DOCUMENT_END_TOKEN:             # <<<<<<<<<<<<<<
 *             return DocumentEndToken(start_mark, end_mark)
 *         elif token.type == YAML_BLOCK_SEQUENCE_START_TOKEN:
 */
    case YAML_DOCUMENT_END_TOKEN:

    /* "_yaml.pyx":424
 *             return DocumentStartToken(start_mark, end_mark)
 *         elif token.type == YAML_DOCUMENT_END_TOKEN:
 *             return DocumentEndToken(start_mark, end_mark)             # <<<<<<<<<<<<<<
 *         elif token.type == YAML_BLOCK_SEQUENCE_START_TOKEN:
 *             return BlockSequenceStartToken(start_mark, end_mark)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_DocumentEndToken); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 424; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 424; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(((PyObject *)__pyx_v_start_mark));
    PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_start_mark));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_start_mark));
    __Pyx_INCREF(((PyObject *)__pyx_v_end_mark));
    PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_end_mark));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_end_mark));
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_2, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 424; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;
    break;

    /* "_yaml.pyx":425
 *         elif token.type == YAML_DOCUMENT_END_TOKEN:
 *             return DocumentEndToken(start_mark, end_mark)
 *         elif token.type == YAML_BLOCK_SEQUENCE_START_TOKEN:             # <<<<<<<<<<<<<<
 *             return BlockSequenceStartToken(start_mark, end_mark)
 *         elif token.type == YAML_BLOCK_MAPPING_START_TOKEN:
 */
    case YAML_BLOCK_SEQUENCE_START_TOKEN:

    /* "_yaml.pyx":426
 *             return DocumentEndToken(start_mark, end_mark)
 *         elif token.type == YAML_BLOCK_SEQUENCE_START_TOKEN:
 *             return BlockSequenceStartToken(start_mark, end_mark)             # <<<<<<<<<<<<<<
 *         elif token.type == YAML_BLOCK_MAPPING_START_TOKEN:
 *             return BlockMappingStartToken(start_mark, end_mark)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_BlockSequenceStartToken); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 426; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 426; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(((PyObject *)__pyx_v_start_mark));
    PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_start_mark));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_start_mark));
    __Pyx_INCREF(((PyObject *)__pyx_v_end_mark));
    PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_end_mark));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_end_mark));
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 426; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;
    break;

    /* "_yaml.pyx":427
 *         elif token.type == YAML_BLOCK_SEQUENCE_START_TOKEN:
 *             return BlockSequenceStartToken(start_mark, end_mark)
 *         elif token.type == YAML_BLOCK_MAPPING_START_TOKEN:             # <<<<<<<<<<<<<<
 *             return BlockMappingStartToken(start_mark, end_mark)
 *         elif token.type == YAML_BLOCK_END_TOKEN:
 */
    case YAML_BLOCK_MAPPING_START_TOKEN:

    /* "_yaml.pyx":428
 *             return BlockSequenceStartToken(start_mark, end_mark)
 *         elif token.type == YAML_BLOCK_MAPPING_START_TOKEN:
 *             return BlockMappingStartToken(start_mark, end_mark)             # <<<<<<<<<<<<<<
 *         elif token.type == YAML_BLOCK_END_TOKEN:
 *             return BlockEndToken(start_mark, end_mark)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_BlockMappingStartToken); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 428; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 428; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(((PyObject *)__pyx_v_start_mark));
    PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_start_mark));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_start_mark));
    __Pyx_INCREF(((PyObject *)__pyx_v_end_mark));
    PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_end_mark));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_end_mark));
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_2, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 428; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;
    break;

    /* "_yaml.pyx":429
 *         elif token.type == YAML_BLOCK_MAPPING_START_TOKEN:
 *             return BlockMappingStartToken(start_mark, end_mark)
 *         elif token.type == YAML_BLOCK_END_TOKEN:             # <<<<<<<<<<<<<<
 *             return BlockEndToken(start_mark, end_mark)
 *         elif token.type == YAML_FLOW_SEQUENCE_START_TOKEN:
 */
    case YAML_BLOCK_END_TOKEN:

    /* "_yaml.pyx":430
 *             return BlockMappingStartToken(start_mark, end_mark)
 *         elif token.type == YAML_BLOCK_END_TOKEN:
 *             return BlockEndToken(start_mark, end_mark)             # <<<<<<<<<<<<<<
 *         elif token.type == YAML_FLOW_SEQUENCE_START_TOKEN:
 *             return FlowSequenceStartToken(start_mark, end_mark)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_BlockEndToken); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 430; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 430; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(((PyObject *)__pyx_v_start_mark));
    PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_start_mark));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_start_mark));
    __Pyx_INCREF(((PyObject *)__pyx_v_end_mark));
    PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_end_mark));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_end_mark));
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 430; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;
    break;

    /* "_yaml.pyx":431
 *         elif token.type == YAML_BLOCK_END_TOKEN:
 *             return BlockEndToken(start_mark, end_mark)
 *         elif token.type == YAML_FLOW_SEQUENCE_START_TOKEN:             # <<<<<<<<<<<<<<
 *             return FlowSequenceStartToken(start_mark, end_mark)
 *         elif token.type == YAML_FLOW_SEQUENCE_END_TOKEN:
 */
    case YAML_FLOW_SEQUENCE_START_TOKEN:

    /* "_yaml.pyx":432
 *             return BlockEndToken(start_mark, end_mark)
 *         elif token.type == YAML_FLOW_SEQUENCE_START_TOKEN:
 *             return FlowSequenceStartToken(start_mark, end_mark)             # <<<<<<<<<<<<<<
 *         elif token.type == YAML_FLOW_SEQUENCE_END_TOKEN:
 *             return FlowSequenceEndToken(start_mark, end_mark)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_FlowSequenceStartToken); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 432; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 432; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(((PyObject *)__pyx_v_start_mark));
    PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_start_mark));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_start_mark));
    __Pyx_INCREF(((PyObject *)__pyx_v_end_mark));
    PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_end_mark));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_end_mark));
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_2, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 432; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;
    break;

    /* "_yaml.pyx":433
 *         elif token.type == YAML_FLOW_SEQUENCE_START_TOKEN:
 *             return FlowSequenceStartToken(start_mark, end_mark)
 *         elif token.type == YAML_FLOW_SEQUENCE_END_TOKEN:             # <<<<<<<<<<<<<<
 *             return FlowSequenceEndToken(start_mark, end_mark)
 *         elif token.type == YAML_FLOW_MAPPING_START_TOKEN:
 */
    case YAML_FLOW_SEQUENCE_END_TOKEN:

    /* "_yaml.pyx":434
 *             return FlowSequenceStartToken(start_mark, end_mark)
 *         elif token.type == YAML_FLOW_SEQUENCE_END_TOKEN:
 *             return FlowSequenceEndToken(start_mark, end_mark)             # <<<<<<<<<<<<<<
 *         elif token.type == YAML_FLOW_MAPPING_START_TOKEN:
 *             return FlowMappingStartToken(start_mark, end_mark)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_FlowSequenceEndToken); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 434; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 434; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(((PyObject *)__pyx_v_start_mark));
    PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_start_mark));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_start_mark));
    __Pyx_INCREF(((PyObject *)__pyx_v_end_mark));
    PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_end_mark));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_end_mark));
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 434; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;
    break;

    /* "_yaml.pyx":435
 *         elif token.type == YAML_FLOW_SEQUENCE_END_TOKEN:
 *             return FlowSequenceEndToken(start_mark, end_mark)
 *         elif token.type == YAML_FLOW_MAPPING_START_TOKEN:             # <<<<<<<<<<<<<<
 *             return FlowMappingStartToken(start_mark, end_mark)
 *         elif token.type == YAML_FLOW_MAPPING_END_TOKEN:
 */
    case YAML_FLOW_MAPPING_START_TOKEN:

    /* "_yaml.pyx":436
 *             return FlowSequenceEndToken(start_mark, end_mark)
 *         elif token.type == YAML_FLOW_MAPPING_START_TOKEN:
 *             return FlowMappingStartToken(start_mark, end_mark)             # <<<<<<<<<<<<<<
 *         elif token.type == YAML_FLOW_MAPPING_END_TOKEN:
 *             return FlowMappingEndToken(start_mark, end_mark)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_FlowMappingStartToken); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 436; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 436; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(((PyObject *)__pyx_v_start_mark));
    PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_start_mark));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_start_mark));
    __Pyx_INCREF(((PyObject *)__pyx_v_end_mark));
    PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_end_mark));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_end_mark));
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_2, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 436; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;
    break;

    /* "_yaml.pyx":437
 *         elif token.type == YAML_FLOW_MAPPING_START_TOKEN:
 *             return FlowMappingStartToken(start_mark, end_mark)
 *         elif token.type == YAML_FLOW_MAPPING_END_TOKEN:             # <<<<<<<<<<<<<<
 *             return FlowMappingEndToken(start_mark, end_mark)
 *         elif token.type == YAML_BLOCK_ENTRY_TOKEN:
 */
    case YAML_FLOW_MAPPING_END_TOKEN:

    /* "_yaml.pyx":438
 *             return FlowMappingStartToken(start_mark, end_mark)
 *         elif token.type == YAML_FLOW_MAPPING_END_TOKEN:
 *             return FlowMappingEndToken(start_mark, end_mark)             # <<<<<<<<<<<<<<
 *         elif token.type == YAML_BLOCK_ENTRY_TOKEN:
 *             return BlockEntryToken(start_mark, end_mark)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_FlowMappingEndToken); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 438; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 438; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(((PyObject *)__pyx_v_start_mark));
    PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_start_mark));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_start_mark));
    __Pyx_INCREF(((PyObject *)__pyx_v_end_mark));
    PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_end_mark));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_end_mark));
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 438; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;
    break;

    /* "_yaml.pyx":439
 *         elif token.type == YAML_FLOW_MAPPING_END_TOKEN:
 *             return FlowMappingEndToken(start_mark, end_mark)
 *         elif token.type == YAML_BLOCK_ENTRY_TOKEN:             # <<<<<<<<<<<<<<
 *             return BlockEntryToken(start_mark, end_mark)
 *         elif token.type == YAML_FLOW_ENTRY_TOKEN:
 */
    case YAML_BLOCK_ENTRY_TOKEN:

    /* "_yaml.pyx":440
 *             return FlowMappingEndToken(start_mark, end_mark)
 *         elif token.type == YAML_BLOCK_ENTRY_TOKEN:
 *             return BlockEntryToken(start_mark, end_mark)             # <<<<<<<<<<<<<<
 *         elif token.type == YAML_FLOW_ENTRY_TOKEN:
 *             return FlowEntryToken(start_mark, end_mark)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_BlockEntryToken); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 440; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = PyTuple_New(2); 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_INCREF(((PyObject *)__pyx_v_start_mark));
    PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_start_mark));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_start_mark));
    __Pyx_INCREF(((PyObject *)__pyx_v_end_mark));
    PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_end_mark));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_end_mark));
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_2, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 440; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;
    break;

    /* "_yaml.pyx":441
 *         elif token.type == YAML_BLOCK_ENTRY_TOKEN:
 *             return BlockEntryToken(start_mark, end_mark)
 *         elif token.type == YAML_FLOW_ENTRY_TOKEN:             # <<<<<<<<<<<<<<
 *             return FlowEntryToken(start_mark, end_mark)
 *         elif token.type == YAML_KEY_TOKEN:
 */
    case YAML_FLOW_ENTRY_TOKEN:

    /* "_yaml.pyx":442
 *             return BlockEntryToken(start_mark, end_mark)
 *         elif token.type == YAML_FLOW_ENTRY_TOKEN:
 *             return FlowEntryToken(start_mark, end_mark)             # <<<<<<<<<<<<<<
 *         elif token.type == YAML_KEY_TOKEN:
 *             return KeyToken(start_mark, end_mark)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_FlowEntryToken); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 442; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 442; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(((PyObject *)__pyx_v_start_mark));
    PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_start_mark));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_start_mark));
    __Pyx_INCREF(((PyObject *)__pyx_v_end_mark));
    PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_end_mark));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_end_mark));
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 442; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;
    break;

    /* "_yaml.pyx":443
 *         elif token.type == YAML_FLOW_ENTRY_TOKEN:
 *             return FlowEntryToken(start_mark, end_mark)
 *         elif token.type == YAML_KEY_TOKEN:             # <<<<<<<<<<<<<<
 *             return KeyToken(start_mark, end_mark)
 *         elif token.type == YAML_VALUE_TOKEN:
 */
    case YAML_KEY_TOKEN:

    /* "_yaml.pyx":444
 *             return FlowEntryToken(start_mark, end_mark)
 *         elif token.type == YAML_KEY_TOKEN:
 *             return KeyToken(start_mark, end_mark)             # <<<<<<<<<<<<<<
 *         elif token.type == YAML_VALUE_TOKEN:
 *             return ValueToken(start_mark, end_mark)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_KeyToken); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 444; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 444; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(((PyObject *)__pyx_v_start_mark));
    PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_start_mark));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_start_mark));
    __Pyx_INCREF(((PyObject *)__pyx_v_end_mark));
    PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_end_mark));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_end_mark));
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_2, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 444; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;
    break;

    /* "_yaml.pyx":445
 *         elif token.type == YAML_KEY_TOKEN:
 *             return KeyToken(start_mark, end_mark)
 *         elif token.type == YAML_VALUE_TOKEN:             # <<<<<<<<<<<<<<
 *             return ValueToken(start_mark, end_mark)
 *         elif token.type == YAML_ALIAS_TOKEN:
 */
    case YAML_VALUE_TOKEN:

    /* "_yaml.pyx":446
 *             return KeyToken(start_mark, end_mark)
 *         elif token.type == YAML_VALUE_TOKEN:
 *             return ValueToken(start_mark, end_mark)             # <<<<<<<<<<<<<<
 *         elif token.type == YAML_ALIAS_TOKEN:
 *             value = PyUnicode_FromString(token.data.alias.value)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_ValueToken); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 446; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 446; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(((PyObject *)__pyx_v_start_mark));
    PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_start_mark));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_start_mark));
    __Pyx_INCREF(((PyObject *)__pyx_v_end_mark));
    PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_end_mark));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_end_mark));
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 446; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;
    break;

    /* "_yaml.pyx":447
 *         elif token.type == YAML_VALUE_TOKEN:
 *             return ValueToken(start_mark, end_mark)
 *         elif token.type == YAML_ALIAS_TOKEN:             # <<<<<<<<<<<<<<
 *             value = PyUnicode_FromString(token.data.alias.value)
 *             return AliasToken(value, start_mark, end_mark)
 */
    case YAML_ALIAS_TOKEN:

    /* "_yaml.pyx":448
 *             return ValueToken(start_mark, end_mark)
 *         elif token.type == YAML_ALIAS_TOKEN:
 *             value = PyUnicode_FromString(token.data.alias.value)             # <<<<<<<<<<<<<<
 *             return AliasToken(value, start_mark, end_mark)
 *         elif token.type == YAML_ANCHOR_TOKEN:
 */
    __pyx_t_3 = PyUnicode_FromString(__pyx_v_token->data.alias.value); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 448; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_value = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "_yaml.pyx":449
 *         elif token.type == YAML_ALIAS_TOKEN:
 *             value = PyUnicode_FromString(token.data.alias.value)
 *             return AliasToken(value, start_mark, end_mark)             # <<<<<<<<<<<<<<
 *         elif token.type == YAML_ANCHOR_TOKEN:
 *             value = PyUnicode_FromString(token.data.anchor.value)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_AliasToken); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 449; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 449; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_v_value);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_value);
    __Pyx_GIVEREF(__pyx_v_value);
    __Pyx_INCREF(((PyObject *)__pyx_v_start_mark));
    PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_start_mark));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_start_mark));
    __Pyx_INCREF(((PyObject *)__pyx_v_end_mark));
    PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_v_end_mark));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_end_mark));
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_2, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 449; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;
    break;

    /* "_yaml.pyx":450
 *             value = PyUnicode_FromString(token.data.alias.value)
 *             return AliasToken(value, start_mark, end_mark)
 *         elif token.type == YAML_ANCHOR_TOKEN:             # <<<<<<<<<<<<<<
 *             value = PyUnicode_FromString(token.data.anchor.value)
 *             return AnchorToken(value, start_mark, end_mark)
 */
    case YAML_ANCHOR_TOKEN:

    /* "_yaml.pyx":451
 *             return AliasToken(value, start_mark, end_mark)
 *         elif token.type == YAML_ANCHOR_TOKEN:
 *             value = PyUnicode_FromString(token.data.anchor.value)             # <<<<<<<<<<<<<<
 *             return AnchorToken(value, start_mark, end_mark)
 *         elif token.type == YAML_TAG_TOKEN:
 */
    __pyx_t_4 = PyUnicode_FromString(__pyx_v_token->data.anchor.value); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 451; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_v_value = __pyx_t_4;
    __pyx_t_4 = 0;

    /* "_yaml.pyx":452
 *         elif token.type == YAML_ANCHOR_TOKEN:
 *             value = PyUnicode_FromString(token.data.anchor.value)
 *             return AnchorToken(value, start_mark, end_mark)             # <<<<<<<<<<<<<<
 *         elif token.type == YAML_TAG_TOKEN:
 *             handle = PyUnicode_FromString(token.data.tag.handle)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_AnchorToken); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 452; __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 = 452; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_v_value);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_value);
    __Pyx_GIVEREF(__pyx_v_value);
    __Pyx_INCREF(((PyObject *)__pyx_v_start_mark));
    PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_start_mark));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_start_mark));
    __Pyx_INCREF(((PyObject *)__pyx_v_end_mark));
    PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_v_end_mark));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_end_mark));
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 452; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;
    break;

    /* "_yaml.pyx":453
 *             value = PyUnicode_FromString(token.data.anchor.value)
 *             return AnchorToken(value, start_mark, end_mark)
 *         elif token.type == YAML_TAG_TOKEN:             # <<<<<<<<<<<<<<
 *             handle = PyUnicode_FromString(token.data.tag.handle)
 *             suffix = PyUnicode_FromString(token.data.tag.suffix)
 */
    case YAML_TAG_TOKEN:

    /* "_yaml.pyx":454
 *             return AnchorToken(value, start_mark, end_mark)
 *         elif token.type == YAML_TAG_TOKEN:
 *             handle = PyUnicode_FromString(token.data.tag.handle)             # <<<<<<<<<<<<<<
 *             suffix = PyUnicode_FromString(token.data.tag.suffix)
 *             if not handle:
 */
    __pyx_t_3 = PyUnicode_FromString(__pyx_v_token->data.tag.handle); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 454; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_handle = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "_yaml.pyx":455
 *         elif token.type == YAML_TAG_TOKEN:
 *             handle = PyUnicode_FromString(token.data.tag.handle)
 *             suffix = PyUnicode_FromString(token.data.tag.suffix)             # <<<<<<<<<<<<<<
 *             if not handle:
 *                 handle = None
 */
    __pyx_t_3 = PyUnicode_FromString(__pyx_v_token->data.tag.suffix); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 455; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_suffix = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "_yaml.pyx":456
 *             handle = PyUnicode_FromString(token.data.tag.handle)
 *             suffix = PyUnicode_FromString(token.data.tag.suffix)
 *             if not handle:             # <<<<<<<<<<<<<<
 *                 handle = None
 *             return TagToken((handle, suffix), start_mark, end_mark)
 */
    __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_v_handle); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 456; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __pyx_t_6 = ((!__pyx_t_5) != 0);
    if (__pyx_t_6) {

      /* "_yaml.pyx":457
 *             suffix = PyUnicode_FromString(token.data.tag.suffix)
 *             if not handle:
 *                 handle = None             # <<<<<<<<<<<<<<
 *             return TagToken((handle, suffix), start_mark, end_mark)
 *         elif token.type == YAML_SCALAR_TOKEN:
 */
      __Pyx_INCREF(Py_None);
      __Pyx_DECREF_SET(__pyx_v_handle, Py_None);
      goto __pyx_L5;
    }
    __pyx_L5:;

    /* "_yaml.pyx":458
 *             if not handle:
 *                 handle = None
 *             return TagToken((handle, suffix), start_mark, end_mark)             # <<<<<<<<<<<<<<
 *         elif token.type == YAML_SCALAR_TOKEN:
 *             value = PyUnicode_DecodeUTF8(token.data.scalar.value,
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_TagToken); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 458; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 458; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_v_handle);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_handle);
    __Pyx_GIVEREF(__pyx_v_handle);
    __Pyx_INCREF(__pyx_v_suffix);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_suffix);
    __Pyx_GIVEREF(__pyx_v_suffix);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 458; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __Pyx_INCREF(((PyObject *)__pyx_v_start_mark));
    PyTuple_SET_ITEM(__pyx_t_4, 1, ((PyObject *)__pyx_v_start_mark));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_start_mark));
    __Pyx_INCREF(((PyObject *)__pyx_v_end_mark));
    PyTuple_SET_ITEM(__pyx_t_4, 2, ((PyObject *)__pyx_v_end_mark));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_end_mark));
    __pyx_t_2 = 0;
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 458; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;
    break;

    /* "_yaml.pyx":459
 *                 handle = None
 *             return TagToken((handle, suffix), start_mark, end_mark)
 *         elif token.type == YAML_SCALAR_TOKEN:             # <<<<<<<<<<<<<<
 *             value = PyUnicode_DecodeUTF8(token.data.scalar.value,
 *                     token.data.scalar.length, 'strict')
 */
    case YAML_SCALAR_TOKEN:

    /* "_yaml.pyx":460
 *             return TagToken((handle, suffix), start_mark, end_mark)
 *         elif token.type == YAML_SCALAR_TOKEN:
 *             value = PyUnicode_DecodeUTF8(token.data.scalar.value,             # <<<<<<<<<<<<<<
 *                     token.data.scalar.length, 'strict')
 *             plain = False
 */
    __pyx_t_2 = PyUnicode_DecodeUTF8(__pyx_v_token->data.scalar.value, __pyx_v_token->data.scalar.length, __pyx_k_strict); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 460; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_v_value = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "_yaml.pyx":462
 *             value = PyUnicode_DecodeUTF8(token.data.scalar.value,
 *                     token.data.scalar.length, 'strict')
 *             plain = False             # <<<<<<<<<<<<<<
 *             style = None
 *             if token.data.scalar.style == YAML_PLAIN_SCALAR_STYLE:
 */
    __pyx_v_plain = 0;

    /* "_yaml.pyx":463
 *                     token.data.scalar.length, 'strict')
 *             plain = False
 *             style = None             # <<<<<<<<<<<<<<
 *             if token.data.scalar.style == YAML_PLAIN_SCALAR_STYLE:
 *                 plain = True
 */
    __Pyx_INCREF(Py_None);
    __pyx_v_style = Py_None;

    /* "_yaml.pyx":464
 *             plain = False
 *             style = None
 *             if token.data.scalar.style == YAML_PLAIN_SCALAR_STYLE:             # <<<<<<<<<<<<<<
 *                 plain = True
 *                 style = u''
 */
    __pyx_t_6 = ((__pyx_v_token->data.scalar.style == YAML_PLAIN_SCALAR_STYLE) != 0);
    if (__pyx_t_6) {

      /* "_yaml.pyx":465
 *             style = None
 *             if token.data.scalar.style == YAML_PLAIN_SCALAR_STYLE:
 *                 plain = True             # <<<<<<<<<<<<<<
 *                 style = u''
 *             elif token.data.scalar.style == YAML_SINGLE_QUOTED_SCALAR_STYLE:
 */
      __pyx_v_plain = 1;

      /* "_yaml.pyx":466
 *             if token.data.scalar.style == YAML_PLAIN_SCALAR_STYLE:
 *                 plain = True
 *                 style = u''             # <<<<<<<<<<<<<<
 *             elif token.data.scalar.style == YAML_SINGLE_QUOTED_SCALAR_STYLE:
 *                 style = u'\''
 */
      __Pyx_INCREF(__pyx_kp_u__6);
      __Pyx_DECREF_SET(__pyx_v_style, __pyx_kp_u__6);
      goto __pyx_L6;
    }

    /* "_yaml.pyx":467
 *                 plain = True
 *                 style = u''
 *             elif token.data.scalar.style == YAML_SINGLE_QUOTED_SCALAR_STYLE:             # <<<<<<<<<<<<<<
 *                 style = u'\''
 *             elif token.data.scalar.style == YAML_DOUBLE_QUOTED_SCALAR_STYLE:
 */
    __pyx_t_6 = ((__pyx_v_token->data.scalar.style == YAML_SINGLE_QUOTED_SCALAR_STYLE) != 0);
    if (__pyx_t_6) {

      /* "_yaml.pyx":468
 *                 style = u''
 *             elif token.data.scalar.style == YAML_SINGLE_QUOTED_SCALAR_STYLE:
 *                 style = u'\''             # <<<<<<<<<<<<<<
 *             elif token.data.scalar.style == YAML_DOUBLE_QUOTED_SCALAR_STYLE:
 *                 style = u'"'
 */
      __Pyx_INCREF(__pyx_kp_u__7);
      __Pyx_DECREF_SET(__pyx_v_style, __pyx_kp_u__7);
      goto __pyx_L6;
    }

    /* "_yaml.pyx":469
 *             elif token.data.scalar.style == YAML_SINGLE_QUOTED_SCALAR_STYLE:
 *                 style = u'\''
 *             elif token.data.scalar.style == YAML_DOUBLE_QUOTED_SCALAR_STYLE:             # <<<<<<<<<<<<<<
 *                 style = u'"'
 *             elif token.data.scalar.style == YAML_LITERAL_SCALAR_STYLE:
 */
    __pyx_t_6 = ((__pyx_v_token->data.scalar.style == YAML_DOUBLE_QUOTED_SCALAR_STYLE) != 0);
    if (__pyx_t_6) {

      /* "_yaml.pyx":470
 *                 style = u'\''
 *             elif token.data.scalar.style == YAML_DOUBLE_QUOTED_SCALAR_STYLE:
 *                 style = u'"'             # <<<<<<<<<<<<<<
 *             elif token.data.scalar.style == YAML_LITERAL_SCALAR_STYLE:
 *                 style = u'|'
 */
      __Pyx_INCREF(__pyx_kp_u__8);
      __Pyx_DECREF_SET(__pyx_v_style, __pyx_kp_u__8);
      goto __pyx_L6;
    }

    /* "_yaml.pyx":471
 *             elif token.data.scalar.style == YAML_DOUBLE_QUOTED_SCALAR_STYLE:
 *                 style = u'"'
 *             elif token.data.scalar.style == YAML_LITERAL_SCALAR_STYLE:             # <<<<<<<<<<<<<<
 *                 style = u'|'
 *             elif token.data.scalar.style == YAML_FOLDED_SCALAR_STYLE:
 */
    __pyx_t_6 = ((__pyx_v_token->data.scalar.style == YAML_LITERAL_SCALAR_STYLE) != 0);
    if (__pyx_t_6) {

      /* "_yaml.pyx":472
 *                 style = u'"'
 *             elif token.data.scalar.style == YAML_LITERAL_SCALAR_STYLE:
 *                 style = u'|'             # <<<<<<<<<<<<<<
 *             elif token.data.scalar.style == YAML_FOLDED_SCALAR_STYLE:
 *                 style = u'>'
 */
      __Pyx_INCREF(__pyx_kp_u__9);
      __Pyx_DECREF_SET(__pyx_v_style, __pyx_kp_u__9);
      goto __pyx_L6;
    }

    /* "_yaml.pyx":473
 *             elif token.data.scalar.style == YAML_LITERAL_SCALAR_STYLE:
 *                 style = u'|'
 *             elif token.data.scalar.style == YAML_FOLDED_SCALAR_STYLE:             # <<<<<<<<<<<<<<
 *                 style = u'>'
 *             return ScalarToken(value, plain,
 */
    __pyx_t_6 = ((__pyx_v_token->data.scalar.style == YAML_FOLDED_SCALAR_STYLE) != 0);
    if (__pyx_t_6) {

      /* "_yaml.pyx":474
 *                 style = u'|'
 *             elif token.data.scalar.style == YAML_FOLDED_SCALAR_STYLE:
 *                 style = u'>'             # <<<<<<<<<<<<<<
 *             return ScalarToken(value, plain,
 *                     start_mark, end_mark, style)
 */
      __Pyx_INCREF(__pyx_kp_u__10);
      __Pyx_DECREF_SET(__pyx_v_style, __pyx_kp_u__10);
      goto __pyx_L6;
    }
    __pyx_L6:;

    /* "_yaml.pyx":475
 *             elif token.data.scalar.style == YAML_FOLDED_SCALAR_STYLE:
 *                 style = u'>'
 *             return ScalarToken(value, plain,             # <<<<<<<<<<<<<<
 *                     start_mark, end_mark, style)
 *         else:
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_ScalarToken); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 475; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_v_plain); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 475; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);

    /* "_yaml.pyx":476
 *                 style = u'>'
 *             return ScalarToken(value, plain,
 *                     start_mark, end_mark, style)             # <<<<<<<<<<<<<<
 *         else:
 *             if PY_MAJOR_VERSION < 3:
 */
    __pyx_t_3 = PyTuple_New(5); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 475; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_INCREF(__pyx_v_value);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_value);
    __Pyx_GIVEREF(__pyx_v_value);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __Pyx_INCREF(((PyObject *)__pyx_v_start_mark));
    PyTuple_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_v_start_mark));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_start_mark));
    __Pyx_INCREF(((PyObject *)__pyx_v_end_mark));
    PyTuple_SET_ITEM(__pyx_t_3, 3, ((PyObject *)__pyx_v_end_mark));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_end_mark));
    __Pyx_INCREF(__pyx_v_style);
    PyTuple_SET_ITEM(__pyx_t_3, 4, __pyx_v_style);
    __Pyx_GIVEREF(__pyx_v_style);
    __pyx_t_4 = 0;

    /* "_yaml.pyx":475
 *             elif token.data.scalar.style == YAML_FOLDED_SCALAR_STYLE:
 *                 style = u'>'
 *             return ScalarToken(value, plain,             # <<<<<<<<<<<<<<
 *                     start_mark, end_mark, style)
 *         else:
 */
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 475; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;
    break;
    default:

    /* "_yaml.pyx":478
 *                     start_mark, end_mark, style)
 *         else:
 *             if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *                 raise ValueError("unknown token type")
 *             else:
 */
    __pyx_t_6 = ((PY_MAJOR_VERSION < 3) != 0);
    if (__pyx_t_6) {

      /* "_yaml.pyx":479
 *         else:
 *             if PY_MAJOR_VERSION < 3:
 *                 raise ValueError("unknown token type")             # <<<<<<<<<<<<<<
 *             else:
 *                 raise ValueError(u"unknown token type")
 */
      __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__11, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 479; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_Raise(__pyx_t_4, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 479; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    }
    /*else*/ {

      /* "_yaml.pyx":481
 *                 raise ValueError("unknown token type")
 *             else:
 *                 raise ValueError(u"unknown token type")             # <<<<<<<<<<<<<<
 * 
 *     def get_token(self):
 */
      __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__12, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 481; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_Raise(__pyx_t_4, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 481; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    }
    break;
  }

  /* "_yaml.pyx":386
 *         return token_object
 * 
 *     cdef object _token_to_object(self, yaml_token_t *token):             # <<<<<<<<<<<<<<
 *         start_mark = Mark(self.stream_name,
 *                 token.start_mark.index,
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("_yaml.CParser._token_to_object", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_start_mark);
  __Pyx_XDECREF((PyObject *)__pyx_v_end_mark);
  __Pyx_XDECREF(__pyx_v_encoding);
  __Pyx_XDECREF(__pyx_v_handle);
  __Pyx_XDECREF(__pyx_v_prefix);
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_XDECREF(__pyx_v_suffix);
  __Pyx_XDECREF(__pyx_v_style);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_yaml.pyx":483
 *                 raise ValueError(u"unknown token type")
 * 
 *     def get_token(self):             # <<<<<<<<<<<<<<
 *         if self.current_token is not None:
 *             value = self.current_token
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_yaml_7CParser_9get_token(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_5_yaml_7CParser_9get_token(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_token (wrapper)", 0);
  __pyx_r = __pyx_pf_5_yaml_7CParser_8get_token(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_yaml_7CParser_8get_token(struct __pyx_obj_5_yaml_CParser *__pyx_v_self) {
  PyObject *__pyx_v_value = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_token", 0);

  /* "_yaml.pyx":484
 * 
 *     def get_token(self):
 *         if self.current_token is not None:             # <<<<<<<<<<<<<<
 *             value = self.current_token
 *             self.current_token = None
 */
  __pyx_t_1 = (__pyx_v_self->current_token != Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_yaml.pyx":485
 *     def get_token(self):
 *         if self.current_token is not None:
 *             value = self.current_token             # <<<<<<<<<<<<<<
 *             self.current_token = None
 *         else:
 */
    __pyx_t_3 = __pyx_v_self->current_token;
    __Pyx_INCREF(__pyx_t_3);
    __pyx_v_value = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "_yaml.pyx":486
 *         if self.current_token is not None:
 *             value = self.current_token
 *             self.current_token = None             # <<<<<<<<<<<<<<
 *         else:
 *             value = self._scan()
 */
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    __Pyx_GOTREF(__pyx_v_self->current_token);
    __Pyx_DECREF(__pyx_v_self->current_token);
    __pyx_v_self->current_token = Py_None;
    goto __pyx_L3;
  }
  /*else*/ {

    /* "_yaml.pyx":488
 *             self.current_token = None
 *         else:
 *             value = self._scan()             # <<<<<<<<<<<<<<
 *         return value
 * 
 */
    __pyx_t_3 = ((struct __pyx_vtabstruct_5_yaml_CParser *)__pyx_v_self->__pyx_vtab)->_scan(__pyx_v_self); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 488; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_v_value = __pyx_t_3;
    __pyx_t_3 = 0;
  }
  __pyx_L3:;

  /* "_yaml.pyx":489
 *         else:
 *             value = self._scan()
 *         return value             # <<<<<<<<<<<<<<
 * 
 *     def peek_token(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_value);
  __pyx_r = __pyx_v_value;
  goto __pyx_L0;

  /* "_yaml.pyx":483
 *                 raise ValueError(u"unknown token type")
 * 
 *     def get_token(self):             # <<<<<<<<<<<<<<
 *         if self.current_token is not None:
 *             value = self.current_token
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("_yaml.CParser.get_token", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_yaml.pyx":491
 *         return value
 * 
 *     def peek_token(self):             # <<<<<<<<<<<<<<
 *         if self.current_token is None:
 *             self.current_token = self._scan()
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_yaml_7CParser_11peek_token(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_5_yaml_7CParser_11peek_token(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("peek_token (wrapper)", 0);
  __pyx_r = __pyx_pf_5_yaml_7CParser_10peek_token(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_yaml_7CParser_10peek_token(struct __pyx_obj_5_yaml_CParser *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("peek_token", 0);

  /* "_yaml.pyx":492
 * 
 *     def peek_token(self):
 *         if self.current_token is None:             # <<<<<<<<<<<<<<
 *             self.current_token = self._scan()
 *         return self.current_token
 */
  __pyx_t_1 = (__pyx_v_self->current_token == Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_yaml.pyx":493
 *     def peek_token(self):
 *         if self.current_token is None:
 *             self.current_token = self._scan()             # <<<<<<<<<<<<<<
 *         return self.current_token
 * 
 */
    __pyx_t_3 = ((struct __pyx_vtabstruct_5_yaml_CParser *)__pyx_v_self->__pyx_vtab)->_scan(__pyx_v_self); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 493; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    __Pyx_GOTREF(__pyx_v_self->current_token);
    __Pyx_DECREF(__pyx_v_self->current_token);
    __pyx_v_self->current_token = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  /* "_yaml.pyx":494
 *         if self.current_token is None:
 *             self.current_token = self._scan()
 *         return self.current_token             # <<<<<<<<<<<<<<
 * 
 *     def check_token(self, *choices):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->current_token);
  __pyx_r = __pyx_v_self->current_token;
  goto __pyx_L0;

  /* "_yaml.pyx":491
 *         return value
 * 
 *     def peek_token(self):             # <<<<<<<<<<<<<<
 *         if self.current_token is None:
 *             self.current_token = self._scan()
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("_yaml.CParser.peek_token", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_yaml.pyx":496
 *         return self.current_token
 * 
 *     def check_token(self, *choices):             # <<<<<<<<<<<<<<
 *         if self.current_token is None:
 *             self.current_token = self._scan()
 */

/* Python wrapper */
static PyObject *__pyx_pw_5_yaml_7CParser_13check_token(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_pw_5_yaml_7CParser_13check_token(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_choices = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("check_token (wrapper)", 0);
  if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "check_token", 0))) return NULL;
  __Pyx_INCREF(__pyx_args);
  __pyx_v_choices = __pyx_args;
  __pyx_r = __pyx_pf_5_yaml_7CParser_12check_token(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self), __pyx_v_choices);

  /* function exit code */
  __Pyx_XDECREF(__pyx_v_choices);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5_yaml_7CParser_12check_token(struct __pyx_obj_5_yaml_CParser *__pyx_v_self, PyObject *__pyx_v_choices) {
  PyObject *__pyx_v_token_class = NULL;
  PyObject *__pyx_v_choice = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  Py_ssize_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("check_token", 0);

  /* "_yaml.pyx":497
 * 
 *     def check_token(self, *choices):
 *         if self.current_token is None:             # <<<<<<<<<<<<<<
 *             self.current_token = self._scan()
 *         if self.current_token is None:
 */
  __pyx_t_1 = (__pyx_v_self->current_token == Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "_yaml.pyx":498
 *     def check_token(self, *choices):
 *         if self.current_token is None:
 *             self.current_token = self._scan()             # <<<<<<<<<<<<<<
 *         if self.current_token is None:
 *             return False
 */
    __pyx_t_3 = ((struct __pyx_vtabstruct_5_yaml_CParser *)__pyx_v_self->__pyx_vtab)->_scan(__pyx_v_self); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 498; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    __Pyx_GOTREF(__pyx_v_self->current_token);
    __Pyx_DECREF(__pyx_v_self->current_token);
    __pyx_v_self->current_token = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  /* "_yaml.pyx":499
 *         if self.current_token is None:
 *             self.current_token = self._scan()
 *         if self.current_token is None:             # <<<<<<<<<<<<<<
 *             return False
 *         if not choices:
 */
  __pyx_t_2 = (__pyx_v_self->current_token == Py_None);
  __pyx_t_1 = (__pyx_t_2 != 0);
  if (__pyx_t_1) {

    /* "_yaml.pyx":500
 *             self.current_token = self._scan()
 *         if self.current_token is None:
 *             return False             # <<<<<<<<<<<<<<
 *         if not choices:
 *             return True
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_False);
    __pyx_r = Py_False;
    goto __pyx_L0;
  }

  /* "_yaml.pyx":501
 *         if self.current_token is None:
 *             return False
 *         if not choices:             # <<<<<<<<<<<<<<
 *             return True
 *         token_class = self.current_token.__class__
 */
  __pyx_t_1 = (__pyx_v_choices != Py_None) && (PyTuple_GET_SIZE(__pyx_v_choices) != 0);
  __pyx_t_2 = ((!__pyx_t_1) != 0);
  if (__pyx_t_2) {

    /* "_yaml.pyx":502
 *             return False
 *         if not choices:
 *             return True             # <<<<<<<<<<<<<<
 *         token_class = self.current_token.__class__
 *         for choice in choices:
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_True);
    __pyx_r = Py_True;
    goto __pyx_L0;
  }

  /* "_yaml.pyx":503
 *         if not choices:
 *             return True
 *         token_class = self.current_token.__class__             # <<<<<<<<<<<<<<
 *         for choice in choices:
 *             if token_class is choice:
 */
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->current_token, __pyx_n_s_class); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 503; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_v_token_class = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "_yaml.pyx":504
 *             return True
 *         token_class = self.current_token.__class__
 *         for choice in choices:             # <<<<<<<<<<<<<<
 *             if token_class is choice:
 *                 return True
 */
  __pyx_t_3 = __pyx_v_choices; __Pyx_INCREF(__pyx_t_3); __pyx_t_4 = 0;
  for (;;) {
    if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_3)) break;
    #if CYTHON_COMPILING_IN_CPYTHON
    __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_4); __Pyx_INCREF(__pyx_t_5); __pyx_t_4++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 504; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    #else
    __pyx_t_5 = PySequence_ITEM(__pyx_t_3, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 504; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    #endif
    __Pyx_XDECREF_SET(__pyx_v_choice, __pyx_t_5);
    __pyx_t_5 = 0;

    /* "_yaml.pyx":505
 *         token_class = self.current_token.__class__
 *         for choice in choices:
 *             if token_class is choice:             # <<<<<<<<<<<<<<
 *                 return True
 *         return False
 */
    __pyx_t_2 = (__pyx_v_token_class == __pyx_v_choice);
    __pyx_t_1 = (__pyx_t_2 != 0);
    if (__pyx_t_1) {

      /* "_yaml.pyx":506
 *         for choice in choices:
 *             if token_class is choice:
 *                 return True             # <<<<<<<<<<<<<<
 *         return False
 * 
 */
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(Py_True);
      __pyx_r = Py_True;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L0;
    }
  }
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "_yaml.pyx":507
 *             if token_class is choice:
 *                 return True
 *         return False             # <<<<<<<<<<<<<<
 * 
 *     def raw_parse(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(Py_False);
  __pyx_r = Py_False;
  goto __pyx_L0;

  /* "_yaml.pyx":496
 *         return self.current_token
 * 
 *     def check_token(self, *choices):             # <<<<<<<<<<<<<<
 *         if self.current_token is None:
 *             self.current_token = self._scan()
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("_yaml.CParser.check_token", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_token_class);
  __Pyx_XDECREF(__pyx_v_choice);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "_yaml.pyx":509
 *         return False
 * 
 *     def raw_parse(self):             # <<<<<<<<<<<<<<
 *         cdef yaml_event_t event
 *         cdef int done
 */

/* Python wrapper */