Commit a32504ba authored by Stefan Behnel's avatar Stefan Behnel

Use direct C function calls instead of vtable indirections in Scanners module.

parent bb32de01
...@@ -28,13 +28,11 @@ cdef class Scanner: ...@@ -28,13 +28,11 @@ cdef class Scanner:
cdef public level cdef public level
@cython.final
@cython.locals(input_state=long) @cython.locals(input_state=long)
cdef next_char(self) cdef inline next_char(self)
@cython.locals(action=Action) @cython.locals(action=Action)
cpdef tuple read(self) cpdef tuple read(self)
@cython.final cdef inline tuple scan_a_token(self)
cdef tuple scan_a_token(self)
##cdef tuple position(self) # used frequently by Parsing.py ##cdef tuple position(self) # used frequently by Parsing.py
@cython.final @cython.final
...@@ -44,7 +42,5 @@ cdef class Scanner: ...@@ -44,7 +42,5 @@ cdef class Scanner:
trace=bint, discard=Py_ssize_t, data=unicode, buffer=unicode) trace=bint, discard=Py_ssize_t, data=unicode, buffer=unicode)
cdef run_machine_inlined(self) cdef run_machine_inlined(self)
@cython.final cdef inline begin(self, state)
cdef begin(self, state) cdef inline produce(self, value, text = *)
@cython.final
cdef produce(self, value, text = *)
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