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