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

Class FormulaToAST


Class creating an AST from a formula string
Method Summary
  __init__(self)
tuple (bool, ast.ASTNode, string) parseToAST(self, stringToParse)
Given a formula string, return its AST representation.

Method Details

parseToAST(self, stringToParse)

Given a formula string, return its AST representation. Note: A tuple is returned to propagate possible errors. The first element of the tuple is a boolean flag set to true if the parse was a success. The second element is the actual parse tree (None on failure). Finally, the last element of the tuple is the error message.
Parameters:
stringToParse - formula string
           (type=string)
Returns:
tuple (bool, ast.ASTNode, string)

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