Gaudi Framework, version v23r6

Home   Generated: Wed Jan 30 2013
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
pyparsing.LineEnd Class Reference
Inheritance diagram for pyparsing.LineEnd:
Inheritance graph
[legend]
Collaboration diagram for pyparsing.LineEnd:
Collaboration graph
[legend]

Public Member Functions

def __init__
 
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 end of a line within the parse string

Definition at line 2099 of file pyparsing.py.

Constructor & Destructor Documentation

def pyparsing.LineEnd.__init__ (   self)

Definition at line 2101 of file pyparsing.py.

2102  def __init__( self ):
2103  super(LineEnd,self).__init__()
2104  self.setWhitespaceChars( ParserElement.DEFAULT_WHITE_CHARS.replace("\n","") )
2105  self.errmsg = "Expected end of line"
2106  #self.myException.msg = self.errmsg

Member Function Documentation

def pyparsing.LineEnd.parseImpl (   self,
  instring,
  loc,
  doActions = True 
)

Definition at line 2107 of file pyparsing.py.

2108  def parseImpl( self, instring, loc, doActions=True ):
2109  if loc<len(instring):
2110  if instring[loc] == "\n":
2111  return loc+1, "\n"
2112  else:
2113  #~ raise ParseException( instring, loc, "Expected end of line" )
2114  exc = self.myException
2115  exc.loc = loc
2116  exc.pstr = instring
2117  raise exc
2118  elif loc == len(instring):
2119  return loc+1, []
2120  else:
2121  exc = self.myException
2122  exc.loc = loc
2123  exc.pstr = instring
2124  raise exc

Member Data Documentation

pyparsing.LineEnd.errmsg

Definition at line 2104 of file pyparsing.py.


The documentation for this class was generated from the following file:
Generated at Wed Jan 30 2013 17:13:53 for Gaudi Framework, version v23r6 by Doxygen version 1.8.2 written by Dimitri van Heesch, © 1997-2004