Home | Trees | Index | Help |
|
---|
Module bison :: Class BisonNode |
|
Generic class for wrapping parse targets.
Arguments:Method Summary | |
---|---|
__init__(self,
**kw)
| |
Retrieves the ith value from this node, or child nodes | |
__getslice__(self,
fromidx,
toidx)
| |
__iter__(self)
| |
__len__(self)
| |
__repr__(self)
| |
__str__(self)
| |
For debugging - prints a recursive dump of a parse tree node and its children | |
returns a human-readable xml serialisation of this node and its children | |
Returns an xml serialisation of this node and its children, as a raw string | |
Returns the node and its children as an xml.dom.minidom.Document object | |
Returns a DOM Element object of this node and its children |
Method Details |
---|
__getitem__(self,
item)
|
dump(self, indent=0)For debugging - prints a recursive dump of a parse tree node and its children |
toprettyxml(self, indent=' ', newl='\n', encoding=None)returns a human-readable xml serialisation of this node and its children |
toxml(self)Returns an xml serialisation of this node and its children, as a raw string Called on the toplevel node, the xml is a representation of the entire parse tree. |
toxmldoc(self)Returns the node and its children as an xml.dom.minidom.Document object |
toxmlelem(self, docobj)Returns a DOM Element object of this node and its children |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Sun Jun 27 12:36:56 2004 | http://epydoc.sf.net |