Home | Trees | Indices | Help |
|
---|
|
object --+ | Token --+ | LeafToken --+ | BracedToken
Super class for tokens which can be enclosed in braces, after a commencing character like $ or ~.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
|||
Inherited from |
|
Return a pair of strings if the first character of the provided text would terminate this token. The first string are the characters to be included in the token, the second are the characters which spill over to the next token. Return None if the text would not terminate the token. The token mustn't end in an escape character (\) because that would make the test incorrect. The default implementation matches txt against the regexp self.terminator. On a match it returns match groups 1 and 2, otherwise it returns None. The default value of self.terminator is ()(\s) to terminate on whitespace, but not accept it.
|
Return True if this token will not accept any more characters at the end because it has terminated. The default implementation returns False.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Dec 14 22:46:37 2010 | http://epydoc.sourceforge.net |