diff options
author | Anton Samokhvalov <pg83@yandex.ru> | 2022-02-10 16:45:17 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:17 +0300 |
commit | d3a398281c6fd1d3672036cb2d63f842d2cb28c5 (patch) | |
tree | dd4bd3ca0f36b817e96812825ffaf10d645803f2 /contrib/tools/cython/Cython/Compiler/Scanning.pxd | |
parent | 72cb13b4aff9bc9cf22e49251bc8fd143f82538f (diff) | |
download | ydb-d3a398281c6fd1d3672036cb2d63f842d2cb28c5.tar.gz |
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/tools/cython/Cython/Compiler/Scanning.pxd')
-rw-r--r-- | contrib/tools/cython/Cython/Compiler/Scanning.pxd | 84 |
1 files changed, 42 insertions, 42 deletions
diff --git a/contrib/tools/cython/Cython/Compiler/Scanning.pxd b/contrib/tools/cython/Cython/Compiler/Scanning.pxd index 4803025e5b..59593f88a2 100644 --- a/contrib/tools/cython/Cython/Compiler/Scanning.pxd +++ b/contrib/tools/cython/Cython/Compiler/Scanning.pxd @@ -1,62 +1,62 @@ -from __future__ import absolute_import - -import cython - -from ..Plex.Scanners cimport Scanner - +from __future__ import absolute_import + +import cython + +from ..Plex.Scanners cimport Scanner + cdef unicode any_string_prefix, IDENT cdef get_lexicon() cdef initial_compile_time_env() -cdef class Method: - cdef object name +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 -cdef class CompileTimeScope: - cdef public dict entries - cdef public CompileTimeScope outer +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) - + @cython.final -cdef class PyrexScanner(Scanner): - cdef public context - cdef public list included_files - cdef public CompileTimeScope compile_time_env - cdef public bint compile_time_eval - cdef public bint compile_time_expr - cdef public bint parse_comments - cdef public bint in_python_file - cdef public source_encoding - cdef set keywords - cdef public list indentation_stack - cdef public indentation_char - cdef public int bracket_nesting_level +cdef class PyrexScanner(Scanner): + cdef public context + cdef public list included_files + cdef public CompileTimeScope compile_time_env + cdef public bint compile_time_eval + cdef public bint compile_time_expr + cdef public bint parse_comments + cdef public bint in_python_file + cdef public source_encoding + cdef set keywords + cdef public list indentation_stack + cdef public indentation_char + cdef public int bracket_nesting_level cdef readonly bint async_enabled - cdef public sy - cdef public systring - - cdef long current_level(self) - #cpdef commentline(self, text) - #cpdef open_bracket_action(self, text) - #cpdef close_bracket_action(self, text) - #cpdef newline_action(self, text) - #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) - cpdef indentation_action(self, text) - #cpdef eof_action(self, text) + cdef public sy + cdef public systring + + cdef long current_level(self) + #cpdef commentline(self, text) + #cpdef open_bracket_action(self, text) + #cpdef close_bracket_action(self, text) + #cpdef newline_action(self, text) + #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) + 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) + #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 = *) |