summaryrefslogtreecommitdiff
path: root/Cython/Compiler/Scanning.pxd
diff options
context:
space:
mode:
Diffstat (limited to 'Cython/Compiler/Scanning.pxd')
-rw-r--r--Cython/Compiler/Scanning.pxd18
1 files changed, 7 insertions, 11 deletions
diff --git a/Cython/Compiler/Scanning.pxd b/Cython/Compiler/Scanning.pxd
index 59593f88a..2d64565c0 100644
--- a/Cython/Compiler/Scanning.pxd
+++ b/Cython/Compiler/Scanning.pxd
@@ -1,4 +1,4 @@
-from __future__ import absolute_import
+# cython: language_level=3
import cython
@@ -9,11 +9,6 @@ cdef unicode any_string_prefix, IDENT
cdef get_lexicon()
cdef initial_compile_time_env()
-cdef class Method:
- cdef object name
- cdef dict kwargs
- cdef readonly object __name__ # for tracing the scanner
-
## methods commented with '##' out are used by Parsing.py when compiled.
@cython.final
@@ -39,10 +34,11 @@ cdef class PyrexScanner(Scanner):
cdef public indentation_char
cdef public int bracket_nesting_level
cdef readonly bint async_enabled
- cdef public sy
- cdef public systring
+ cdef public unicode sy
+ cdef public systring # EncodedString
+ cdef public list put_back_on_failure
- cdef long current_level(self)
+ cdef Py_ssize_t current_level(self)
#cpdef commentline(self, text)
#cpdef open_bracket_action(self, text)
#cpdef close_bracket_action(self, text)
@@ -50,13 +46,12 @@ cdef class PyrexScanner(Scanner):
#cpdef begin_string_action(self, text)
#cpdef end_string_action(self, text)
#cpdef unclosed_string_action(self, text)
- @cython.locals(current_level=cython.long, new_level=cython.long)
+ @cython.locals(current_level=Py_ssize_t, new_level=Py_ssize_t)
cpdef indentation_action(self, text)
#cpdef eof_action(self, text)
##cdef next(self)
##cdef peek(self)
#cpdef put_back(self, sy, systring)
- #cdef unread(self, token, value)
##cdef bint expect(self, what, message = *) except -2
##cdef expect_keyword(self, what, message = *)
##cdef expected(self, what, message = *)
@@ -65,3 +60,4 @@ cdef class PyrexScanner(Scanner):
##cdef expect_newline(self, message=*, bint ignore_semicolon=*)
##cdef int enter_async(self) except -1
##cdef int exit_async(self) except -1
+ cdef void error_at_scanpos(self, str message) except *