I have some Lua code in C# as a string and I'd like to check if it's valid (any syntax errors, that sort of thing).
How can I go about doing that in a quick and efficient manner?
edit: the other suggested duplicate question does not simply check for valid syntax but valid code, luaL_loadstirng fails when a line of valid lua code is given to it if that valid line requires other variables declared before it.