Many of script interpreters like irb
or node
works as evaluator. If I execute this code,
10
it will evaluate and print the value itself, and make no error.
When I installed lua
it worked as executor rather than evaluator. So when I put 10
, it will make an error.
Can I make the Lua interpreter work as evaluator?
There's also iLua. It is an extended interpreter and does pretty much all you want.