Package formulaparser :: Module FormulaParser :: Class FormulaParserScanner
[show private | hide private]
[frames | no frames]

Class FormulaParserScanner

Scanner --+
          |
         FormulaParserScanner


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

Class Variable Details

patterns

Type:
list
Value:
[("'='", <_sre.SRE_Pattern object at 0xf6c47a70>),
 ('[ \r\t\n]+', <_sre.SRE_Pattern object at 0xf6c35c58>),
 ('int', <_sre.SRE_Pattern object at 0xf6cad790>),
 ('real', <_sre.SRE_Pattern object at 0x8f23808>),
 ('number', <_sre.SRE_Pattern object at 0x8f25470>),
 ('char', <_sre.SRE_Pattern object at 0xf6c37420>),
 ('string', <_sre.SRE_Pattern object at 0x8f200e0>),
 ('ref', <_sre.SRE_Pattern object at 0x8f24658>),
...                                                                    

Generated by Epydoc 2.1 on Thu Aug 26 22:55:24 2004 http://epydoc.sf.net