loose parsing of Lua code, ignoring syntax errors