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 0x8be5...

Class Variable Details

patterns

Type:
list
Value:
[('"\\)"', <_sre.SRE_Pattern object at 0x8be5de8>),
 ('","', <_sre.SRE_Pattern object at 0x8be5e30>),
 ('"\\("', <_sre.SRE_Pattern object at 0x8beca70>),
 ('"@"', <_sre.SRE_Pattern object at 0x88b57c8>),
 ('"\\]"', <_sre.SRE_Pattern object at 0x8c07e68>),
 ('"\\["', <_sre.SRE_Pattern object at 0x8c07eb0>),
 ('"/"', <_sre.SRE_Pattern object at 0x8894ff8>),
 ('\\s+', <_sre.SRE_Pattern object at 0x8652418>),
...                                                                    

Generated by Epydoc 2.0 on Sat Sep 13 04:21:00 2003 http://epydoc.sf.net