Commit 71295b90 authored by Stefan Behnel's avatar Stefan Behnel

minor cythonisation and cleanup in Scanners.pxd

parent 5ea2561a
...@@ -26,15 +26,15 @@ cdef class Scanner: ...@@ -26,15 +26,15 @@ cdef class Scanner:
@cython.locals(input_state=long) @cython.locals(input_state=long)
cpdef next_char(self) cpdef next_char(self)
cpdef read(self) @cython.locals(queue=list)
cpdef tuple read(self)
cpdef tuple scan_a_token(self) cpdef tuple scan_a_token(self)
cpdef tuple position(self) cpdef tuple position(self)
@cython.locals(cur_pos=cython.long, cur_line=cython.long, @cython.locals(cur_pos=long, cur_line=long, cur_line_start=long,
cur_line_start=cython.long, input_state=cython.long, input_state=long, next_pos=long,
next_pos=cython.long, buf_start_pos=cython.long, buf_start_pos=long, buf_len=long, buf_index=long,
buf_len=cython.long, buf_index=cython.long, trace=bint, discard=long)
trace=cython.bint, discard=cython.long)
cpdef run_machine_inlined(self) cpdef run_machine_inlined(self)
cpdef begin(self, state) cpdef begin(self, state)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment