| # Gaudi Framework, version v25r0 |

Home |  | Generated: Mon Feb 17 2014

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
pyparsing.Combine Class Reference
Inheritance diagram for pyparsing.Combine:
[legend]
Collaboration diagram for pyparsing.Combine:
[legend]

## Public Member Functions
def | __init__
def | ignore
def | postParse
Public Member Functions inherited from pyparsing.TokenConverter
def | __init__
Public Member Functions inherited from pyparsing.ParseElementEnhance
def | __init__
def | parseImpl
def | leaveWhitespace
def | ignore
def | streamline
def | checkRecursion
def | validate
def | __str__
Public Member Functions inherited from pyparsing.ParserElement
def | setDefaultWhitespaceChars
def | __init__
def | copy
def | setName
def | setResultsName
def | setBreak
def | setParseAction
def | addParseAction
def | setFailAction
def | preParse
def | parseImpl
def | postParse
def | tryParse
def | resetCache
def | enablePackrat
def | parseString
def | scanString
def | transformString
def | searchString
def | __add__
def | __radd__
def | __sub__
def | __rsub__
def | __mul__
def | __rmul__
def | __or__
def | __ror__
def | __xor__
def | __rxor__
def | __and__
def | __rand__
def | __invert__
def | __call__
def | suppress
def | leaveWhitespace
def | setWhitespaceChars
def | parseWithTabs
def | ignore
def | setDebugActions
def | setDebug
def | __str__
def | __repr__
def | streamline
def | checkRecursion
def | validate
def | parseFile
def | getException
def | __getattr__
def | __eq__
def | __ne__
def | __hash__
def | __req__
def | __rne__

## Public Attributes
| adjacent
| skipWhitespace
| joinString
Public Attributes inherited from pyparsing.TokenConverter
| saveAsList
Public Attributes inherited from pyparsing.ParseElementEnhance
| expr
| strRepr
| mayIndexError
| mayReturnEmpty
| skipWhitespace
| saveAsList
| callPreparse
Public Attributes inherited from pyparsing.ParserElement
| parseAction
| failAction
| strRepr
| resultsName
| saveAsList
| skipWhitespace
| whiteChars
| copyDefaultWhiteChars
| mayReturnEmpty
| keepTabs
| ignoreExprs
| debug
| streamlined
| mayIndexError
| errmsg
| modalResults
| debugActions
| re
| callPreparse
| callDuringTry
| name
| myException

## Additional Inherited Members
Static Public Attributes inherited from pyparsing.ParserElement
string | DEFAULT_WHITE_CHARS " \n\t\r"
tuple | setDefaultWhitespaceChars staticmethod(setDefaultWhitespaceChars)
tuple | resetCache staticmethod(resetCache)
tuple | enablePackrat staticmethod(enablePackrat)

## Detailed Description

    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.

Definition at line 2982 of file pyparsing.py.

## Constructor & Destructor Documentation

def pyparsing.Combine.__init__ | ( |  | self,
|  |  | expr,
|  |  | joinString = `""`,
|  |  | adjacent = `True`
| ) |  |

Definition at line 2987 of file pyparsing.py.

2987
2988 def __init__( self, expr, joinString="", adjacent=True ):
2989 super(Combine,self).__init__( expr )
2990 # suppress whitespace-stripping in contained parse expressions, but re-enable it on the Combine itself
2991 if adjacent:
2992 self.leaveWhitespace()
2993 self.adjacent = adjacent
2994 self.skipWhitespace = True
2995 self.joinString = joinString

## Member Function Documentation

def pyparsing.Combine.ignore | ( |  | self,
|  |  | other
| ) |  |

Definition at line 2996 of file pyparsing.py.

2996
2997 def ignore( self, other ):
2998 if self.adjacent:
2999 ParserElement.ignore(self, other)
3000 else:
3001 super( Combine, self).ignore( other )
3002 return self

def pyparsing.Combine.postParse | ( |  | self,
|  |  | instring,
|  |  | loc,
|  |  | tokenlist
| ) |  |

Definition at line 3003 of file pyparsing.py.

3003
3004 def postParse( self, instring, loc, tokenlist ):
3005 retToks = tokenlist.copy()
3006 del retToks[:]
3007 retToks += ParseResults([ "".join(tokenlist._asStringList(self.joinString)) ], modal=self.modalResults)
3008
3009 if self.resultsName and len(retToks.keys())>0:
3010 return [ retToks ]
3011 else:
3012 return retToks

## Member Data Documentation

pyparsing.Combine.adjacent

Definition at line 2992 of file pyparsing.py.

pyparsing.Combine.joinString

Definition at line 2994 of file pyparsing.py.

pyparsing.Combine.skipWhitespace

Definition at line 2993 of file pyparsing.py.

The documentation for this class was generated from the following file:

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v25r0/cmake/cmt2cmake/pyparsing.py