lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Is there an easy way to tell whether a string is an expression? I'm setting
up a Lua shell and I'd like to be able to recognize expressions and print
their results if entered as commands. The problem is that lua_loadBuffer
generates a function that doesn't leave anything on the stack when executed.

Thanks.
Mark