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

## Public Member Functions
def | __init__
def | preParse
def | parseImpl
Public Member Functions inherited from pyparsing._PositionToken
def | __init__
Public Member Functions inherited from pyparsing.Token
def | __init__
def | setName
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
| errmsg
Public Attributes inherited from pyparsing._PositionToken
| name
| mayReturnEmpty
| mayIndexError
Public Attributes inherited from pyparsing.Token
| errmsg
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

    Matches if current position is at the beginning of a line within the parse string

Definition at line 2074 of file pyparsing.py.

## Constructor & Destructor Documentation

def pyparsing.LineStart.__init__ | ( |  | self | ) |

Definition at line 2076 of file pyparsing.py.

2076
2077 def __init__( self ):
2078 super(LineStart,self).__init__()
2079 self.setWhitespaceChars( ParserElement.DEFAULT_WHITE_CHARS.replace("\n","") )
2080 self.errmsg = "Expected start of line"
2081 #self.myException.msg = self.errmsg

## Member Function Documentation

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

Definition at line 2088 of file pyparsing.py.

2088
2089 def parseImpl( self, instring, loc, doActions=True ):
2090 if not( loc==0 or
2091 (loc == self.preParse( instring, 0 )) or
2092 (instring[loc-1] == "\n") ): #col(loc, instring) != 1:
2093 #~ raise ParseException( instring, loc, "Expected start of line" )
2094 exc = self.myException
2095 exc.loc = loc
2096 exc.pstr = instring
2097 raise exc
2098 return loc, []

def pyparsing.LineStart.preParse | ( |  | self,
|  |  | instring,
|  |  | loc
| ) |  |

Definition at line 2082 of file pyparsing.py.

2082
2083 def preParse( self, instring, loc ):
2084 preloc = super(LineStart,self).preParse(instring,loc)
2085 if instring[preloc] == "\n":
2086 loc += 1
2087 return loc

## Member Data Documentation

pyparsing.LineStart.errmsg

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