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

Type And

   object --+        
            |        
ParserElement --+    
                |    
  ParseExpression --+
                    |
                   And


Requires all given ParseExpressions to be found in the given order. Expressions may be separated by whitespace. May be constructed using the '+' operator.
Method Summary
  __init__(self, exprs, savelist)
  __iadd__(self, other)
  __str__(self)
  checkRecursion(self, parseElementList)
  parseImpl(self, instring, loc, doActions)
  setResultsName(self, name)
Define name for referencing matching tokens as a nested attribute of the returned parse results.
Inherited from ParseExpression: append, ignore, leaveWhitespace, streamline, validate
Inherited from ParserElement: __add__, __invert__, __or__, __radd__, __repr__, __ror__, __rxor__, __xor__, parse, parseFile, parseString, parseWithTabs, postParse, preParse, scanString, setDebug, setName, setParseAction, skipIgnorables, suppress, transformString, tryParse
Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__

Class Variable Summary
list __slotnames__ = []

Method Details

setResultsName(self, name)

Define name for referencing matching tokens as a nested attribute of the returned parse results. NOTE: this returns a *copy* of the original ParseElement object; this is so that the client can define a basic element, such as an integer, and reference it in multiple places with different names.
Overrides:
pyparsing.ParserElement.setResultsName (inherited documentation)

Class Variable Details

__slotnames__

Type:
list
Value:
[]                                                                     

Generated by Epydoc 2.1 on Sun Jun 20 00:25:20 2004 http://epydoc.sf.net