python Programming Glossary: self.pushfirst
Safe way to parse user-supplied mathematical formula in Python http://stackoverflow.com/questions/11951701/safe-way-to-parse-user-supplied-mathematical-formula-in-python pi e fnumber ident lpar expr rpar .setParseAction self.pushFirst pyp.Optional pyp.oneOf pyp.Group lpar expr rpar .setParseAction.. factor atom pyp.ZeroOrMore expop factor .setParseAction self.pushFirst term factor pyp.ZeroOrMore multop factor .setParseAction self.pushFirst.. term factor pyp.ZeroOrMore multop factor .setParseAction self.pushFirst expr term pyp.ZeroOrMore addop term .setParseAction self.pushFirst..
Evaluating a mathematical expression in a string http://stackoverflow.com/questions/2371436/evaluating-a-mathematical-expression-in-a-string oneOf pi e fnumber ident lpar expr rpar .setParseAction self.pushFirst Optional oneOf Group lpar expr rpar .setParseAction self.pushUMinus.. factor atom ZeroOrMore expop factor .setParseAction self.pushFirst term factor ZeroOrMore multop factor .setParseAction self.pushFirst.. term factor ZeroOrMore multop factor .setParseAction self.pushFirst expr term ZeroOrMore addop term .setParseAction self.pushFirst..
|