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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_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
|
|
|
|
|
|
|
|
|
|
|
|
|
|