Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 546 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 546 Bytes

mochi

build

Lua runtime

Features

  • Bytecode VM compatible with PUC-Rio Lua 5.4
  • Lexer and parser
  • AST to bytecode compiler
  • Incremental mark-and-sweep garbage collection
  • Standard library implementation

Usage

# run script
cargo run --release foo.lua bar baz

# launch REPL
cargo run --release

# compile source code
cargo run --release compile foo.lua -o luac.out
# and run bytecode with PUC-Rio Lua
lua luac.out