module documentation
Python parse tree definitions. This is a very concrete parse tree; we need to keep every token and even the comments and whitespace between tokens. There's also a pattern matching implementation here.
Class |
|
Abstract base class for Node and Leaf. |
Class |
|
A pattern is a tree matching pattern. |
Class |
|
Concrete implementation for leaf nodes. |
Class |
|
No class docstring; 0/3 instance variable, 3/3 methods documented |
Class |
|
No class docstring; 0/1 instance variable, 1/4 method documented |
Class |
|
Concrete implementation for interior nodes. |
Class |
|
No class docstring; 0/4 instance variable, 2/2 methods documented |
Class |
|
A wildcard pattern can match zero or more nodes. |
Function | convert |
Convert raw node information to a Node or Leaf instance. |
Function | generate |
Generator yielding matches for a sequence of patterns and nodes. |
Function | type |
Map a type number to its string representation. |
Constant | HUGE |
Undocumented |
Variable | _type |
Undocumented |
Convert raw node information to a Node or Leaf instance. This is passed to the parser driver which calls it whenever a reduction of a grammar rule produces a new complete node, so that the tree is built strictly bottom-up.