> Maybe luac can do it. luac uses the Lua library, just like lua does. Therefore, it stops compilation at the first error.