A graphical tool for exploring the shift/reduce parser. The tool
displays the parser's stack and the remaining text, and allows the user
to control the parser's operation. In particular, the user can shift
tokens onto the stack, and can perform reductions on the top elements of
the stack. A "step" button simply steps through the parsing
process, performing the operations that
parse.ShiftReduceParser
would use.
|
__init__(self,
grammar,
sent,
trace=0)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_animate_shift_frame(self,
frame,
widget,
dx) |
source code
|
|
|
|
|
_animate_reduce_frame(self,
frame,
widgets,
dy) |
source code
|
|
|
|
|
|
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__str__
|