A graphical tool for exploring the recursive descent parser. The tool
displays the parser's tree and the remaining text, and allows the user to
control the parser's operation. In particular, the user can expand
subtrees on the frontier, match tokens on the frontier against the text,
and backtrack. A "step" button simply steps through the
parsing process, performing the operations that
RecursiveDescentParser
would use.
|
__init__(self,
grammar,
sent,
trace=0)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_makeroom(self,
treeseg)
Make sure that no sibling tree bbox's overlap. |
source code
|
|
|
_animate_expand_frame(self,
widget,
colors) |
source code
|
|
|
|
|
_animate_backtrack_frame(self,
widgets,
colors) |
source code
|
|
|
|
|
|
|
_animate_match_frame(self,
frame,
widget,
dy) |
source code
|
|
|
_animate_match_backtrack_frame(self,
frame,
widget,
dy) |
source code
|
|
|
|
|
|
|
|
|
|
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__str__
|