Package twisted :: Package xish :: Module xpathparser :: Class XPathParserScanner
[frames | no frames]

Class XPathParserScanner

Scanner --+
          |
         XPathParserScanner


Method Summary
  __init__(self, str)
    Inherited from Scanner
  __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)
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.

Class Variable Summary
list patterns = [('"\\)"', <_sre.SRE_Pattern object at 0x870b...

Class Variable Details

patterns

Type:
list
Value:
[('"\\)"', <_sre.SRE_Pattern object at 0x870b770>),
 ('","', <_sre.SRE_Pattern object at 0x8abc750>),
 ('"\\("', <_sre.SRE_Pattern object at 0x8608880>),
 ('"@"', <_sre.SRE_Pattern object at 0x8abf630>),
 ('"\\]"', <_sre.SRE_Pattern object at 0x8ae7658>),
 ('"\\["', <_sre.SRE_Pattern object at 0x87a5118>),
 ('"/"', <_sre.SRE_Pattern object at 0x874a268>),
 ('\\s+', <_sre.SRE_Pattern object at 0x84bc3e0>),
...                                                                    

Generated by Epydoc 2.0 on Tue Dec 9 17:48:19 2003 http://epydoc.sf.net