Gaudi Framework, version v23r8

Home   Generated: Fri May 31 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.NotAny Class Reference
Inheritance diagram for pyparsing.NotAny:
Inheritance graph
[legend]
Collaboration diagram for pyparsing.NotAny:
Collaboration graph
[legend]

Public Member Functions

def __init__
 
def parseImpl
 
def __str__
 
- 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

 skipWhitespace
 
 mayReturnEmpty
 
 errmsg
 
 strRepr
 
- 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
 

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

Lookahead to disallow matching with the given parse expression.  NotAny
does *not* advance the parsing position within the input string, it only
verifies that the specified parse expression does *not* match at the current
position.  Also, NotAny does *not* skip over leading whitespace. NotAny
always returns a null token list.  May be constructed using the '~' operator.

Definition at line 2671 of file pyparsing.py.

Constructor & Destructor Documentation

def pyparsing.NotAny.__init__ (   self,
  expr 
)

Definition at line 2677 of file pyparsing.py.

2678  def __init__( self, expr ):
2679  super(NotAny,self).__init__(expr)
2680  #~ self.leaveWhitespace()
2681  self.skipWhitespace = False # do NOT use self.leaveWhitespace(), don't want to propagate to exprs
2682  self.mayReturnEmpty = True
2683  self.errmsg = "Found unwanted token, "+_ustr(self.expr)
2684  #self.myException = ParseException("",0,self.errmsg,self)

Member Function Documentation

def pyparsing.NotAny.__str__ (   self)

Definition at line 2698 of file pyparsing.py.

2699  def __str__( self ):
2700  if hasattr(self,"name"):
2701  return self.name
2702 
2703  if self.strRepr is None:
2704  self.strRepr = "~{" + _ustr(self.expr) + "}"
2705 
2706  return self.strRepr
2707 
def pyparsing.NotAny.parseImpl (   self,
  instring,
  loc,
  doActions = True 
)

Definition at line 2685 of file pyparsing.py.

2686  def parseImpl( self, instring, loc, doActions=True ):
2687  try:
2688  self.expr.tryParse( instring, loc )
2689  except (ParseException,IndexError):
2690  pass
2691  else:
2692  #~ raise ParseException(instring, loc, self.errmsg )
2693  exc = self.myException
2694  exc.loc = loc
2695  exc.pstr = instring
2696  raise exc
2697  return loc, []

Member Data Documentation

pyparsing.NotAny.errmsg

Definition at line 2682 of file pyparsing.py.

pyparsing.NotAny.mayReturnEmpty

Definition at line 2681 of file pyparsing.py.

pyparsing.NotAny.skipWhitespace

Definition at line 2680 of file pyparsing.py.

pyparsing.NotAny.strRepr

Definition at line 2703 of file pyparsing.py.


The documentation for this class was generated from the following file:
Generated at Fri May 31 2013 15:09:30 for Gaudi Framework, version v23r8 by Doxygen version 1.8.2 written by Dimitri van Heesch, © 1997-2004