Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(182)

Unified Diff: third_party/cython/src/Cython/Compiler/Scanning.pxd

Issue 385073004: Adding cython v0.20.2 in third-party. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reference cython dev list thread. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/cython/src/Cython/Compiler/Scanning.pxd
diff --git a/third_party/cython/src/Cython/Compiler/Scanning.pxd b/third_party/cython/src/Cython/Compiler/Scanning.pxd
new file mode 100644
index 0000000000000000000000000000000000000000..b560c1ec806e58d8830b747ce2571ed7c313f4e1
--- /dev/null
+++ b/third_party/cython/src/Cython/Compiler/Scanning.pxd
@@ -0,0 +1,52 @@
+import cython
+
+from Cython.Plex.Scanners cimport Scanner
+
+cdef class Method:
+ cdef object name
+ cdef object __name__
+
+cdef class CompileTimeScope:
+ cdef public dict entries
+ cdef public CompileTimeScope outer
+ cdef declare(self, name, value)
+ cdef lookup_here(self, name)
+ cpdef lookup(self, name)
+
+cdef class PyrexScanner(Scanner):
+ cdef public context
+ cdef public list included_files
+ cdef public CompileTimeScope compile_time_env
+ cdef public bint compile_time_eval
+ cdef public bint compile_time_expr
+ cdef public bint parse_comments
+ cdef public bint in_python_file
+ cdef public source_encoding
+ cdef set keywords
+ cdef public list indentation_stack
+ cdef public indentation_char
+ cdef public int bracket_nesting_level
+ cdef public sy
+ cdef public systring
+
+ cdef long current_level(self)
+ #cpdef commentline(self, text)
+ #cpdef open_bracket_action(self, text)
+ #cpdef close_bracket_action(self, text)
+ #cpdef newline_action(self, text)
+ #cpdef begin_string_action(self, text)
+ #cpdef end_string_action(self, text)
+ #cpdef unclosed_string_action(self, text)
+ @cython.locals(current_level=cython.long, new_level=cython.long)
+ cpdef indentation_action(self, text)
+ #cpdef eof_action(self, text)
+ cdef next(self)
+ cdef peek(self)
+ #cpdef put_back(self, sy, systring)
+ #cdef unread(self, token, value)
+ cdef bint expect(self, what, message = *) except -2
+ cdef expect_keyword(self, what, message = *)
+ cdef expected(self, what, message = *)
+ cdef expect_indent(self)
+ cdef expect_dedent(self)
+ cdef expect_newline(self, message = *)
« no previous file with comments | « third_party/cython/src/Cython/Compiler/PyrexTypes.py ('k') | third_party/cython/src/Cython/Compiler/Scanning.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698