| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
ParserElement --+
|
Token --+
|
Keyword
Token to exactly match a specified string as a keyword, that is, it
must be immediately followed by a non-keyword character. Compare with
Literal:
Literal("if") will match the leading C{'if'} in C{'ifAndOnlyIf'}.
Keyword("if") will not; it will only match the leading C{'if'} in C{'if x=1'}, or C{'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.
| Nested Classes | |
|
Inherited from |
| Instance Methods | |||
|
|||
|
|||
|
|||
|
Inherited from Inherited from |
|||
| Static Methods | |||
|
|||
|
Inherited from |
|||
| Class Variables | |
DEFAULT_KEYWORD_CHARS =
|
|
|
Inherited from |
|
| Properties | |
|
Inherited from |
| Method Details |
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
|
Make a copy of this
|
| Class Variable Details |
DEFAULT_KEYWORD_CHARS
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Sun Apr 13 12:08:30 2014 | http://epydoc.sourceforge.net |