3 from Cython.Plex.Scanners cimport Scanner
9 cdef class CompileTimeScope:
10 cdef public dict entries
11 cdef public CompileTimeScope outer
12 cdef declare(self, name, value)
13 cdef lookup_here(self, name)
14 cpdef lookup(self, name)
16 cdef class PyrexScanner(Scanner):
18 cdef public list included_files
19 cdef public CompileTimeScope compile_time_env
20 cdef public bint compile_time_eval
21 cdef public bint compile_time_expr
22 cdef public bint parse_comments
23 cdef public bint in_python_file
24 cdef public source_encoding
26 cdef public list indentation_stack
27 cdef public indentation_char
28 cdef public int bracket_nesting_level
32 cdef long current_level(self)
33 #cpdef commentline(self, text)
34 #cpdef open_bracket_action(self, text)
35 #cpdef close_bracket_action(self, text)
36 #cpdef newline_action(self, text)
37 #cpdef begin_string_action(self, text)
38 #cpdef end_string_action(self, text)
39 #cpdef unclosed_string_action(self, text)
40 @cython.locals(current_level=cython.long, new_level=cython.long)
41 cpdef indentation_action(self, text)
42 #cpdef eof_action(self, text)
45 #cpdef put_back(self, sy, systring)
46 #cdef unread(self, token, value)
47 cdef bint expect(self, what, message = *) except -2
48 cdef expect_keyword(self, what, message = *)
49 cdef expected(self, what, message = *)
50 cdef expect_indent(self)
51 cdef expect_dedent(self)
52 cdef expect_newline(self, message = *)