diff options
author | orivej <orivej@yandex-team.ru> | 2022-02-10 16:44:49 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:44:49 +0300 |
commit | 718c552901d703c502ccbefdfc3c9028d608b947 (patch) | |
tree | 46534a98bbefcd7b1f3faa5b52c138ab27db75b7 /contrib/tools/cython/Cython/Compiler/Scanning.pxd | |
parent | e9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (diff) | |
download | ydb-718c552901d703c502ccbefdfc3c9028d608b947.tar.gz |
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/tools/cython/Cython/Compiler/Scanning.pxd')
-rw-r--r-- | contrib/tools/cython/Cython/Compiler/Scanning.pxd | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/contrib/tools/cython/Cython/Compiler/Scanning.pxd b/contrib/tools/cython/Cython/Compiler/Scanning.pxd index 59593f88a2..8eba7f068e 100644 --- a/contrib/tools/cython/Cython/Compiler/Scanning.pxd +++ b/contrib/tools/cython/Cython/Compiler/Scanning.pxd @@ -4,27 +4,27 @@ import cython from ..Plex.Scanners cimport Scanner -cdef unicode any_string_prefix, IDENT - -cdef get_lexicon() -cdef initial_compile_time_env() - +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. + cdef dict kwargs + cdef readonly object __name__ # for tracing the scanner -@cython.final +## methods commented with '##' out are used by Parsing.py when compiled. + +@cython.final cdef class CompileTimeScope: cdef public dict entries cdef public CompileTimeScope outer - ##cdef declare(self, name, value) - ##cdef lookup_here(self, name) - ##cpdef lookup(self, name) + ##cdef declare(self, name, value) + ##cdef lookup_here(self, name) + ##cpdef lookup(self, name) -@cython.final +@cython.final cdef class PyrexScanner(Scanner): cdef public context cdef public list included_files @@ -53,15 +53,15 @@ cdef class PyrexScanner(Scanner): @cython.locals(current_level=cython.long, new_level=cython.long) cpdef indentation_action(self, text) #cpdef eof_action(self, text) - ##cdef next(self) - ##cdef peek(self) + ##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 = *) - ##cdef expect_indent(self) - ##cdef expect_dedent(self) - ##cdef expect_newline(self, message=*, bint ignore_semicolon=*) - ##cdef int enter_async(self) except -1 - ##cdef int exit_async(self) except -1 + ##cdef bint expect(self, what, message = *) except -2 + ##cdef expect_keyword(self, what, message = *) + ##cdef expected(self, what, message = *) + ##cdef expect_indent(self) + ##cdef expect_dedent(self) + ##cdef expect_newline(self, message=*, bint ignore_semicolon=*) + ##cdef int enter_async(self) except -1 + ##cdef int exit_async(self) except -1 |