Home | History | Annotate | Download | only in Compiler
      1 import cython
      2 
      3 from Cython.Plex.Scanners cimport Scanner
      4 
      5 cdef class Method:
      6     cdef object name
      7     cdef object __name__
      8 
      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)
     15 
     16 cdef class PyrexScanner(Scanner):
     17     cdef public context
     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
     25     cdef set keywords
     26     cdef public list indentation_stack
     27     cdef public indentation_char
     28     cdef public int bracket_nesting_level
     29     cdef public sy
     30     cdef public systring
     31 
     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)
     43     cdef next(self)
     44     cdef peek(self)
     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 = *)
     53