Turning String into Numerical Equation

Paul McGuire ptmcg at austin.rr.com
Sun Mar 13 11:27:32 EST 2005


Almost this exact parser, called fourFn.py, is included in the examples
with pyparsing (at http://pyparsing.sourceforge.net).  Since it is pure
Python, you can extend the grammar with whatever builtin functions you
like.  But it *is* a parser, not just a short cut.

-- Paul




More information about the Python-list mailing list