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

    Token to advance to a specific column of input text; useful for tabular report scraping.

Definition at line 2051 of file pyparsing.py.

## Constructor & Destructor Documentation

def pyparsing.GoToColumn.__init__ | ( |  | self,
|  |  | colno
| ) |  |

Definition at line 2053 of file pyparsing.py.

2053
2054 def __init__( self, colno ):
2055 super(GoToColumn,self).__init__()
2056 self.col = colno

## Member Function Documentation

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

Definition at line 2066 of file pyparsing.py.

2066
2067 def parseImpl( self, instring, loc, doActions=True ):
2068 thiscol = col( loc, instring )
2069 if thiscol > self.col:
2070 raise ParseException( instring, loc, "Text not in expected column", self )
2071 newloc = loc + self.col - thiscol
2072 ret = instring[ loc: newloc ]
2073 return newloc, ret

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

Definition at line 2057 of file pyparsing.py.

2057
2058 def preParse( self, instring, loc ):
2059 if col(loc,instring) != self.col:
2060 instrlen = len(instring)
2061 if self.ignoreExprs:
2062 loc = self._skipIgnorables( instring, loc )
2063 while loc < instrlen and instring[loc].isspace() and col( loc, instring ) != self.col :
2064 loc += 1
2065 return loc

## Member Data Documentation

pyparsing.GoToColumn.col

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