I am quite new to Lua environment.
We have very simple requirement. Before we start using Lua , we need to check if it is the right script language for our requirement.
I have a bunch of code as below
int count = 5
count = count * 2
The above syntax is what I have thought of, I can change syntax if required
My whole project is in C. Now I need to evaluate above block and get the value.
Can we use Lua to determine the value of above block and return the value to C code.
I do not want to have script.lua and execute (same I can do with shell etc) by dofile load.
I have above string, I want to feed this string to Lua (or equivalent of above string that Lua understands) and can Lua evaluate count value and return to C code.
Can somebody guide me if Lua is right choice.
Also , at any point of time in same machine I might have 1000s of programs running and each program might be loading Lua Libs etc, will there be any performance constraints..