codeplea/tinyexpr

no variable assigning?

mgood7123 opened this issue · 8 comments

why isnt there the ability to do something like "a=24" "b=a+4" "c=ab" or "a = 8 + 5; b=a+4"

I prefer to keep the code-base small so that it's easy for people to add features like that as they need them. If it's going to be called tinyexpr, I have to draw the line somewhere.

rip ;-;

@mgood7123 Why not use an interpreter like Lua for such a use case?

It would be very useful to be able to do something like te_compile("x=x+3",... though. Can someone advice how to alter the library to support something like this? Where to look at for example...

so far, Eval11 (another math expression library) can accomplish this

an example of this is Expression_Assign("s", &test)