lua-parse 0.3.5

omniLua's Lua parser — internal crate; depend on `omnilua`.
Documentation

Lua parser — translates the token stream produced by the lexer into bytecode prototypes (LuaProto).

This crate is the recursive-descent parser with single-pass bytecode codegen folded in: the front end pairs with lua-lex for tokens and lua-code for opcode tables. It is verified by the bytecode-parity structural oracle plus the behavioral suite (see GRADUATED.md); it is no longer a line-by-line mirror of any C source, so do not reach for lparser.c/lcode.c to reason about it.

Ownership shapes

  • BlockCnt and LhsAssign are Option<Box<...>> chains; [enter_block] pushes, [leave_block] pops. FuncState.prev is likewise Option<Box<FuncState>>.
  • FuncState.f is Box<LuaProto> during compilation (owned, mutably accessible); it is consumed into the GC when the function closes.