Module pyparsing :: Class ParseResults
[frames | no frames]

Class ParseResults

object --+
         |
        ParseResults


Structured parse results, to provide multiple means of access to the parsed data:
Method Summary
  __init__(self, toklist, name, asList)
  __delitem__(self, i)
  __getattr__(self, name)
  __getitem__(self, i)
  __iadd__(self, other)
  __iter__(self)
  __len__(self)
  __repr__(self)
  __str__(self)
  asList(self)
Returns the parse results as a nested list of matching tokens, all converted to strings.
  items(self)
  keys(self)
Inherited from object: __delattr__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __setattr__
Inherited from type: __new__

Class Variable Summary
tuple __slots__ = ('list', 'dict')
member_descriptor dict = <member 'dict' of 'ParseResults' objects>
member_descriptor list = <member 'list' of 'ParseResults' objects>

Method Details

asList(self)

Returns the parse results as a nested list of matching tokens, all converted to strings.

Class Variable Details

__slots__

Type:
tuple
Value:
('list', 'dict')                                                       

dict

Type:
member_descriptor
Value:
<member 'dict' of 'ParseResults' objects>                              

list

Type:
member_descriptor
Value:
<member 'list' of 'ParseResults' objects>                              

Generated by Epydoc 2.0 on Sat Mar 20 09:58:33 2004 http://epydoc.sf.net