I need the equivalent of eval() which since Lua 5.2 is load().
All of the formulas are simple calculations using only * / + - and parentheses, and look something like this:
(((49))\*100+1000)\*-1
But
print(load("return (((49))\*100+1000)\*-1")())
gives the error message in the topic title.
a ) How do I load the parser?
b ) Are there alternatives?
c ) Is there any way in which I can evaluate these using the Corona SDK short of rolling my own eval()?
d ) Has someone rolled their own eval()?