pub fn parse(
state: &mut LuaState,
dyd: DynData,
source: &[u8],
name: &[u8],
firstchar: i32,
) -> Result<Box<LuaProto>, LuaError>Expand description
C: LClosure *luaY_parser(lua_State *L, ZIO *z, Mbuffer *buff, Dyndata *dyd, const char *name, int firstchar) Top-level entry point: parses a chunk and returns the main LClosure. LUAI_FUNC visibility.
PORT NOTE: In C, returns LClosure * (a GC object). In Rust (Phase A),
we return Box<LuaProto> since we don’t have GcRef