Home | Trees | Index | Help |
|
---|
Package parserFwk :: Module pyparsing :: Class Keyword |
|
object
--+ |ParserElement
--+ |Token
--+ | Keyword
CaselessKeyword
Literal("if") will match the leading 'if' in 'ifAndOnlyIf'. Keyword("if") will not; it will only match the leading 'if in 'if x=1', or 'if(y==2)'Accepts two optional constructor arguments in addition to the keyword string: identChars is a string of characters that would be valid identifier characters, defaulting to all alphanumerics + "_" and "$"; caseless allows case-insensitive matching, default is False.
Method Summary | |
---|---|
__init__(self,
matchString,
identChars,
caseless)
| |
Make a copy of this ParserElement. | |
parseImpl(self,
instring,
loc,
doActions)
| |
Overrides the default Keyword chars (Static method) | |
Inherited from Token :
setName
Inherited from ParserElement :
__add__ ,
__and__ ,
__invert__ ,
__or__ ,
__radd__ ,
__rand__ ,
__repr__ ,
__ror__ ,
__rxor__ ,
__str__ ,
__xor__ ,
addParseAction ,
checkRecursion ,
enablePackrat ,
ignore ,
leaveWhitespace ,
normalizeParseActionArgs ,
parseFile ,
parseString ,
parseWithTabs ,
postParse ,
preParse ,
resetCache ,
scanString ,
searchString ,
setDebug ,
setDebugActions ,
setDefaultWhitespaceChars ,
setFailAction ,
setParseAction ,
setResultsName ,
setWhitespaceChars ,
skipIgnorables ,
streamline ,
suppress ,
transformString ,
tryParse ,
validate
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__
|
Class Variable Summary | |
---|---|
str |
DEFAULT_KEYWORD_CHARS = 'abcdefghijklmnopqrstuvwxyzABCDE...
|
Inherited from ParserElement :
DEFAULT_WHITE_CHARS
|
Instance Method Details |
---|
copy(self)Make a copy of this ParserElement. Useful for defining different parse actions for the same parsing pattern, using copies of the original parse element.
|
Static Method Details |
---|
setDefaultKeywordChars(chars)Overrides the default Keyword chars |
Class Variable Details |
---|
DEFAULT_KEYWORD_CHARS
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Fri Dec 22 02:04:35 2006 | http://epydoc.sf.net |