| # 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 | Private Attributes | List of all members
pyparsing.Forward Class Reference
Inheritance diagram for pyparsing.Forward:
[legend]
Collaboration diagram for pyparsing.Forward:
[legend]

## Public Member Functions
def | __init__
def | __lshift__
def | leaveWhitespace
def | streamline
def | validate
def | __str__
def | copy
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
| expr
| mayReturnEmpty
| strRepr
| mayIndexError
| skipWhitespace
| saveAsList
| streamlined
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

## Private Attributes
| _revertClass
| __class__

## 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

    Forward declaration of an expression to be defined later -
       used for recursive grammars, such as algebraic infix notation.
       When the expression is known, it is assigned to the Forward variable using the '<<' operator.

       Note: take care when assigning to Forward not to overlook precedence of operators.
       Specifically, '|' has a lower precedence than '<<', so that::
          fwdExpr << a | b | c
       will actually be evaluated as::
          (fwdExpr << a) | b | c
       thereby leaving b and c out as parseable alternatives.  It is recommended that you
       explicitly group the values inserted into the Forward::
          fwdExpr << (a | b | c)

Definition at line 2889 of file pyparsing.py.

## Constructor & Destructor Documentation

def pyparsing.Forward.__init__ | ( |  | self,
|  |  | other = `None`
| ) |  |

Definition at line 2903 of file pyparsing.py.

2903
2904 def __init__( self, other=None ):
2905 super(Forward,self).__init__( other, savelist=False )

## Member Function Documentation

def pyparsing.Forward.__lshift__ | ( |  | self,
|  |  | other
| ) |  |

Definition at line 2906 of file pyparsing.py.

2906
2907 def __lshift__( self, other ):
2908 if isinstance( other, basestring ):
2909 other = Literal(other)
2910 self.expr = other
2911 self.mayReturnEmpty = other.mayReturnEmpty
2912 self.strRepr = None
2913 self.mayIndexError = self.expr.mayIndexError
2914 self.mayReturnEmpty = self.expr.mayReturnEmpty
2915 self.setWhitespaceChars( self.expr.whiteChars )
2916 self.skipWhitespace = self.expr.skipWhitespace
2917 self.saveAsList = self.expr.saveAsList
2918 self.ignoreExprs.extend(self.expr.ignoreExprs)
2919 return None

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

Definition at line 2938 of file pyparsing.py.

2938
2939 def __str__( self ):
2940 if hasattr(self,"name"):
2941 return self.name
2942
2943 self._revertClass = self.__class__
2944 self.__class__ = _ForwardNoRecurse
2945 try:
2946 if self.expr is not None:
2947 retString = _ustr(self.expr)
2948 else:
2949 retString = "None"
2950 finally:
2951 self.__class__ = self._revertClass
2952 return self.__class__.__name__ + ": " + retString

def pyparsing.Forward.copy | ( |  | self | ) |

Definition at line 2953 of file pyparsing.py.

2953
2954 def copy(self):
2955 if self.expr is not None:
2956 return super(Forward,self).copy()
2957 else:
2958 ret = Forward()
2959 ret << self
2960 return ret

def pyparsing.Forward.leaveWhitespace | ( |  | self | ) |

Definition at line 2920 of file pyparsing.py.

2920
2921 def leaveWhitespace( self ):
2922 self.skipWhitespace = False
2923 return self

def pyparsing.Forward.streamline | ( |  | self | ) |

Definition at line 2924 of file pyparsing.py.

2924
2925 def streamline( self ):
2926 if not self.streamlined:
2927 self.streamlined = True
2928 if self.expr is not None:
2929 self.expr.streamline()
2930 return self

def pyparsing.Forward.validate | ( |  | self,
|  |  | validateTrace = `[]`
| ) |  |

Definition at line 2931 of file pyparsing.py.

2931
2932 def validate( self, validateTrace=[] ):
2933 if self not in validateTrace:
2934 tmp = validateTrace[:]+[self]
2935 if self.expr is not None:
2936 self.expr.validate(tmp)
2937 self.checkRecursion([])

## Member Data Documentation

pyparsing.Forward.__class__
| private

Definition at line 2943 of file pyparsing.py.

pyparsing.Forward._revertClass
| private

Definition at line 2942 of file pyparsing.py.

pyparsing.Forward.expr

Definition at line 2909 of file pyparsing.py.

pyparsing.Forward.mayIndexError

Definition at line 2912 of file pyparsing.py.

pyparsing.Forward.mayReturnEmpty

Definition at line 2910 of file pyparsing.py.

pyparsing.Forward.saveAsList

Definition at line 2916 of file pyparsing.py.

pyparsing.Forward.skipWhitespace

Definition at line 2915 of file pyparsing.py.

pyparsing.Forward.streamlined

Definition at line 2926 of file pyparsing.py.

pyparsing.Forward.strRepr

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