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

Type Combine

     object --+            
              |            
  ParserElement --+        
                  |        
ParseElementEnhance --+    
                      |    
         TokenConverter --+
                          |
                         Combine


Converter to concatenate all matching tokens to a single string. By default, the matching patterns must also be contiguous in the input string; this can be disabled by specifying 'adjacent=False' in the constructor.
Method Summary
  __init__(self, expr, joinString, adjacent)
  ignore(self, other)
Define expression to be ignored (e.g., comments) while doing pattern matching; may be called repeatedly, to define multiple comment or other ignorable patterns.
  postParse(self, instring, loc, tokenlist)
Inherited from ParseElementEnhance: __str__, checkRecursion, leaveWhitespace, parseImpl, streamline, validate
Inherited from ParserElement: __add__, __invert__, __or__, __radd__, __repr__, __ror__, __rxor__, __xor__, copy, parse, parseFile, parseString, parseWithTabs, preParse, scanString, setDebug, setDebugActions, setDefaultWhitespaceChars, setName, setParseAction, setResultsName, setWhitespaceChars, skipIgnorables, suppress, transformString, tryParse
Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__

Class Variable Summary
Inherited from ParserElement: DEFAULT_WHITE_CHARS

Instance Method Details

ignore(self, other)

Define expression to be ignored (e.g., comments) while doing pattern matching; may be called repeatedly, to define multiple comment or other ignorable patterns.
Overrides:
pyparsing.ParseElementEnhance.ignore (inherited documentation)

Generated by Epydoc 2.1 on Sun Jun 12 22:30:07 2005 http://epydoc.sf.net