Home | Trees | Index | Help |
|
---|
Package twisted :: Package xish :: Module xpathparser :: Class Scanner |
|
XPathParserScanner
Method Summary | |
---|---|
Patterns is [(terminal,regex)...] Ignore is [terminal,...]; Input is a string | |
Print the last 10 tokens that have been scanned in | |
Should scan another token and add it to the list, self.tokens, and add the restriction to self.restrictions | |
Get the i'th token, and if i is one past the end, then scan for another token; restrict is a list of tokens that are allowed, or 0 for any token. |
Method Details |
---|
__init__(self,
patterns,
ignore,
input)
Patterns is [(terminal,regex)...] Ignore is [terminal,...]; Input is
a string
|
__repr__(self)
Print the last 10 tokens that have been scanned in
|
scan(self, restrict)Should scan another token and add it to the list, self.tokens, and add the restriction to self.restrictions |
token(self, i, restrict=0)Get the i'th token, and if i is one past the end, then scan for another token; restrict is a list of tokens that are allowed, or 0 for any token. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Sat Oct 25 00:55:13 2003 | http://epydoc.sf.net |