| # 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.ZeroOrMore Class Reference
Inheritance diagram for pyparsing.ZeroOrMore:
[legend]
Collaboration diagram for pyparsing.ZeroOrMore:
[legend]

## Public Member Functions
def | __init__
def | parseImpl
def | __str__
def | setResultsName
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
| mayReturnEmpty
| strRepr
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

    Optional repetition of zero or more of the given expression.

Definition at line 2708 of file pyparsing.py.

## Constructor & Destructor Documentation

def pyparsing.ZeroOrMore.__init__ | ( |  | self,
|  |  | expr
| ) |  |

Definition at line 2710 of file pyparsing.py.

2710
2711 def __init__( self, expr ):
2712 super(ZeroOrMore,self).__init__(expr)
2713 self.mayReturnEmpty = True

## Member Function Documentation

def pyparsing.ZeroOrMore.__str__ | ( |  | self | ) |

Definition at line 2732 of file pyparsing.py.

2732
2733 def __str__( self ):
2734 if hasattr(self,"name"):
2735 return self.name
2736
2737 if self.strRepr is None:
2738 self.strRepr = "[" + _ustr(self.expr) + "]..."
2739
2740 return self.strRepr

def pyparsing.ZeroOrMore.parseImpl | ( |  | self,
|  |  | instring,
|  |  | loc,
|  |  | doActions = `True`
| ) |  |

Definition at line 2714 of file pyparsing.py.

2714
2715 def parseImpl( self, instring, loc, doActions=True ):
2716 tokens = []
2717 try:
2718 loc, tokens = self.expr._parse( instring, loc, doActions, callPreParse=False )
2719 hasIgnoreExprs = ( len(self.ignoreExprs) > 0 )
2720 while 1:
2721 if hasIgnoreExprs:
2722 preloc = self._skipIgnorables( instring, loc )
2723 else:
2724 preloc = loc
2725 loc, tmptokens = self.expr._parse( instring, preloc, doActions )
2726 if tmptokens or tmptokens.keys():
2727 tokens += tmptokens
2728 except (ParseException,IndexError):
2729 pass
2730
2731 return loc, tokens

def pyparsing.ZeroOrMore.setResultsName | ( |  | self,
|  |  | name,
|  |  | listAllMatches = `False`
| ) |  |

Definition at line 2741 of file pyparsing.py.

2741
2742 def setResultsName( self, name, listAllMatches=False ):
2743 ret = super(ZeroOrMore,self).setResultsName(name,listAllMatches)
2744 ret.saveAsList = True
2745 return ret
2746

## Member Data Documentation

pyparsing.ZeroOrMore.mayReturnEmpty

Definition at line 2712 of file pyparsing.py.

pyparsing.ZeroOrMore.strRepr

Definition at line 2737 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