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

Unified Diff: third_party/cython/src/Cython/Plex/Scanners.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
« no previous file with comments | « third_party/cython/src/Cython/Plex/Regexps.py ('k') | third_party/cython/src/Cython/Plex/Scanners.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/cython/src/Cython/Plex/Scanners.pxd
diff --git a/third_party/cython/src/Cython/Plex/Scanners.pxd b/third_party/cython/src/Cython/Plex/Scanners.pxd
new file mode 100644
index 0000000000000000000000000000000000000000..1415220f0a2a6f5fcca367935bd1a6288dc1a573
--- /dev/null
+++ b/third_party/cython/src/Cython/Plex/Scanners.pxd
@@ -0,0 +1,43 @@
+import cython
+
+from Cython.Plex.Actions cimport Action
+
+cdef class Scanner:
+
+ cdef public lexicon
+ cdef public stream
+ cdef public name
+ cdef public unicode buffer
+ cdef public Py_ssize_t buf_start_pos
+ cdef public Py_ssize_t next_pos
+ cdef public Py_ssize_t cur_pos
+ cdef public Py_ssize_t cur_line
+ cdef public Py_ssize_t cur_line_start
+ cdef public Py_ssize_t start_pos
+ cdef public Py_ssize_t start_line
+ cdef public Py_ssize_t start_col
+ cdef public text
+ cdef public initial_state # int?
+ cdef public state_name
+ cdef public list queue
+ cdef public bint trace
+ cdef public cur_char
+ cdef public int input_state
+
+ cdef public level
+
+ @cython.locals(input_state=long)
+ cdef next_char(self)
+ @cython.locals(action=Action)
+ cdef tuple read(self)
+ cdef tuple scan_a_token(self)
+ cdef tuple position(self)
+
+ @cython.locals(cur_pos=long, cur_line=long, cur_line_start=long,
+ input_state=long, next_pos=long, state=dict,
+ buf_start_pos=long, buf_len=long, buf_index=long,
+ trace=bint, discard=long, data=unicode, buffer=unicode)
+ cdef run_machine_inlined(self)
+
+ cdef begin(self, state)
+ cdef produce(self, value, text = *)
« no previous file with comments | « third_party/cython/src/Cython/Plex/Regexps.py ('k') | third_party/cython/src/Cython/Plex/Scanners.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698