If you are looking at actual functions, consider just using eval, at least in the case where your input comes from a trusted source (and not from the internet).
In reply to Re^5: Evaluate arbitrary boolean expressions
by Corion
in thread Evaluate arbitrary boolean expressions
by gauss76
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |