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/Plex/Scanners.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/Plex/Scanners.pxd')
-rw-r--r-- | contrib/tools/cython/Cython/Plex/Scanners.pxd | 78 |
1 files changed, 39 insertions, 39 deletions
diff --git a/contrib/tools/cython/Cython/Plex/Scanners.pxd b/contrib/tools/cython/Cython/Plex/Scanners.pxd index e2ac99b552..6e75f55e61 100644 --- a/contrib/tools/cython/Cython/Plex/Scanners.pxd +++ b/contrib/tools/cython/Cython/Plex/Scanners.pxd @@ -1,50 +1,50 @@ -from __future__ import absolute_import - -import cython - -from Cython.Plex.Actions cimport Action - -cdef class Scanner: - - cdef public lexicon - cdef public stream - cdef public name - cdef public unicode buffer - cdef public Py_ssize_t buf_start_pos - cdef public Py_ssize_t next_pos - cdef public Py_ssize_t cur_pos - cdef public Py_ssize_t cur_line - cdef public Py_ssize_t cur_line_start - cdef public Py_ssize_t start_pos - cdef public Py_ssize_t start_line - cdef public Py_ssize_t start_col - cdef public text - cdef public initial_state # int? - cdef public state_name - cdef public list queue - cdef public bint trace - cdef public cur_char - cdef public long input_state - - cdef public level - +from __future__ import absolute_import + +import cython + +from Cython.Plex.Actions cimport Action + +cdef class Scanner: + + cdef public lexicon + cdef public stream + cdef public name + cdef public unicode buffer + cdef public Py_ssize_t buf_start_pos + cdef public Py_ssize_t next_pos + cdef public Py_ssize_t cur_pos + cdef public Py_ssize_t cur_line + cdef public Py_ssize_t cur_line_start + cdef public Py_ssize_t start_pos + cdef public Py_ssize_t start_line + cdef public Py_ssize_t start_col + cdef public text + cdef public initial_state # int? + cdef public state_name + cdef public list queue + cdef public bint trace + cdef public cur_char + cdef public long input_state + + cdef public level + @cython.final - @cython.locals(input_state=long) - cdef next_char(self) - @cython.locals(action=Action) + @cython.locals(input_state=long) + cdef next_char(self) + @cython.locals(action=Action) cpdef tuple read(self) @cython.final - cdef tuple scan_a_token(self) + cdef tuple scan_a_token(self) ##cdef tuple position(self) # used frequently by Parsing.py - + @cython.final @cython.locals(cur_pos=Py_ssize_t, cur_line=Py_ssize_t, cur_line_start=Py_ssize_t, input_state=long, next_pos=Py_ssize_t, state=dict, buf_start_pos=Py_ssize_t, buf_len=Py_ssize_t, buf_index=Py_ssize_t, trace=bint, discard=Py_ssize_t, data=unicode, buffer=unicode) - cdef run_machine_inlined(self) - + cdef run_machine_inlined(self) + @cython.final - cdef begin(self, state) + cdef begin(self, state) @cython.final - cdef produce(self, value, text = *) + cdef produce(self, value, text = *) |