Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
more cythonisation in the scanner/parser
- Loading branch information
Stefan Behnel
committed
Nov 16, 2010
1 parent
698b502
commit d037a45
Showing
4 changed files
with
34 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
cdef class Action: | ||
cdef perform(self, token_stream, text) | ||
cpdef same_as(self, other) | ||
|
||
cdef class Return(Action): | ||
cdef object value | ||
cdef perform(self, token_stream, text) | ||
cpdef same_as(self, other) | ||
|
||
cdef class Call(Action): | ||
cdef object function | ||
cdef perform(self, token_stream, text) | ||
cpdef same_as(self, other) | ||
|
||
cdef class Begin(Action): | ||
cdef object state_name | ||
cdef perform(self, token_stream, text) | ||
cpdef same_as(self, other) | ||
|
||
cdef class Ignore(Action): | ||
cdef perform(self, token_stream, text) | ||
|
||
cdef class Text(Action): | ||
cdef perform(self, token_stream, text) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters