¡@

Home 

python Programming Glossary: pyp.literal

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

term factor multop factor expr term addop term point pyp.Literal . e pyp.CaselessLiteral E fnumber pyp.Combine pyp.Word pyp.nums.. ident pyp.Word pyp.alphas pyp.alphas pyp.nums _ plus pyp.Literal minus pyp.Literal mult pyp.Literal div pyp.Literal lpar.. pyp.alphas pyp.alphas pyp.nums _ plus pyp.Literal minus pyp.Literal mult pyp.Literal div pyp.Literal lpar pyp.Literal .suppress..