I need to be able to pass in mathematical equations to a program, have the program parse them, and use those equations as lambda/anonymous functions. I know higher level languages are able to do this, but I would prefer the lowest level language due to the computational intensity of this algorithm.
Just as an example:
where if 'x = y + z' as passed as a parameter, it would print 5, and if 'x = y + 2*z' was passed as a parameter, it would print 8Code:intialize x, y, z y = 2 z = 3 lambda function here (parse string parameter) print x
If this isn't possible in C, what's the next fastest language that is able to implement this?