A parser and calculator for mathematical formulas written in C