title: Checking validity of Lua code?
body: <p>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).</p>
  
  <p>How can I go about doing that in a quick and efficient manner?</p>
  
  <p>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.</p>