bytexenon/Tiny-Lua-Compiler
⛄Possibly the smallest Lua compiler ever
Implements a complete compilation pipeline—tokenizer, parser, AST generator, and bytecode VM—all in a single ~2000-line Lua file with extensive inline documentation. Self-hosting and dependency-free, it targets Lua 5.1 semantics while deliberately omitting advanced optimizations (constant folding, debug symbols) to remain pedagogically focused and maintainable.
128 stars.
Stars
128
Forks
8
Language
Lua
License
MIT
Category
Last pushed
Jan 29, 2026
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/ai-coding/bytexenon/Tiny-Lua-Compiler"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
javaparser/javaparser
Java 1-25 Parser and Abstract Syntax Tree for Java with advanced analysis functionalities.
asmjit/asmjit
Low-latency machine code generation
lioncash/biscuit
A runtime code generator for RISC-V
llvm-hs/llvm-hs-pretty
Pretty printer for LLVM AST to Textual IR
iml130/mlir-emitc
Conversions to MLIR EmitC