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

Class Variable Details

patterns

Type:
list
Value:
[("'='", <_sre.SRE_Pattern object at 0xf6c979c0>),
 ('[ \r\t\n]+', <_sre.SRE_Pattern object at 0xf6c89ce0>),
 ('int', <_sre.SRE_Pattern object at 0xf6c7a870>),
 ('real', <_sre.SRE_Pattern object at 0x8475400>),
 ('number', <_sre.SRE_Pattern object at 0x8454420>),
 ('char', <_sre.SRE_Pattern object at 0xf6c932a0>),
 ('string', <_sre.SRE_Pattern object at 0x84523d8>),
 ('ref', <_sre.SRE_Pattern object at 0x8453608>),
...                                                                    

Generated by Epydoc 2.1 on Tue Aug 17 18:20:07 2004 http://epydoc.sf.net