Gaudi Framework, version v25r1

Home   Generated: Mon Mar 24 2014
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
pyparsing.WordEnd Class Reference
Inheritance diagram for pyparsing.WordEnd:
Inheritance graph
[legend]
Collaboration diagram for pyparsing.WordEnd:
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

 wordChars
 
 skipWhitespace
 
 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 the current position is at the end of a Word, and
   is not followed by any character in a given set of wordChars
   (default=printables). To emulate the \b behavior of regular expressions,
   use WordEnd(alphanums). WordEnd will also match at the end of
   the string being parsed, or at the end of a line.

Definition at line 2189 of file pyparsing.py.

Constructor & Destructor Documentation

def pyparsing.WordEnd.__init__ (   self,
  wordChars = printables 
)

Definition at line 2196 of file pyparsing.py.

2197  def __init__(self, wordChars = printables):
2198  super(WordEnd,self).__init__()
2199  self.wordChars = _str2dict(wordChars)
2200  self.skipWhitespace = False
2201  self.errmsg = "Not at the end of a word"

Member Function Documentation

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

Definition at line 2202 of file pyparsing.py.

2203  def parseImpl(self, instring, loc, doActions=True ):
2204  instrlen = len(instring)
2205  if instrlen>0 and loc<instrlen:
2206  if (instring[loc] in self.wordChars or
2207  instring[loc-1] not in self.wordChars):
2208  #~ raise ParseException( instring, loc, "Expected end of word" )
2209  exc = self.myException
2210  exc.loc = loc
2211  exc.pstr = instring
2212  raise exc
2213  return loc, []
2214 

Member Data Documentation

pyparsing.WordEnd.errmsg

Definition at line 2200 of file pyparsing.py.

pyparsing.WordEnd.skipWhitespace

Definition at line 2199 of file pyparsing.py.

pyparsing.WordEnd.wordChars

Definition at line 2198 of file pyparsing.py.


The documentation for this class was generated from the following file:
Generated at Mon Mar 24 2014 18:27:54 for Gaudi Framework, version v25r1 by Doxygen version 1.8.2 written by Dimitri van Heesch, © 1997-2004