cpdef next(self)
cpdef bint expect(self, what, message = *) except -2
+ @cython.locals(current_level=cython.long, new_level=cython.long)
cpdef indentation_action(self, text)
self.end_string_action(text)
self.error("Unclosed string literal")
- @cython.locals(current_level=cython.long, new_level=cython.long)
def indentation_action(self, text):
self.begin('')
# Indentation within brackets should be ignored.
cdef public level
+ @cython.locals(input_state=long)
cpdef next_char(self)
cpdef read(self)
cpdef position(self)
+ @cython.locals(cur_pos=cython.long, cur_line=cython.long,
+ cur_line_start=cython.long, input_state=cython.long,
+ next_pos=cython.long, buf_start_pos=cython.long,
+ buf_len=cython.long, buf_index=cython.long,
+ trace=cython.bint, discard=cython.long)
cpdef run_machine_inlined(self)
cpdef begin(self, state)
pass
return self.back_up()
- @cython.locals(cur_pos=cython.long, cur_line=cython.long,
- cur_line_start=cython.long, input_state=cython.long,
- next_pos=cython.long, buf_start_pos=cython.long,
- buf_len=cython.long, buf_index=cython.long,
- trace=cython.bint, discard=cython.long)
def run_machine_inlined(self):
"""
Inlined version of run_machine for speed.
# else:
# return None
- @cython.locals(input_state=long)
def next_char(self):
input_state = self.input_state
if self.trace: