Post #2286391
2026-05-09 13:49 UTC
tiny lua compiler: a lua compiler in a single file, that's well-documented, that was hand-crafted over several years, and made to teach you compiler/tokenizer/parser/lexer design.
this is a crazy impressive project, and in a time when people are haphazardly slopcoding projects, is a standard to live by.
https://github.com/bytexenon/Tiny-Lua-Compiler
#programming #lua
Replies (3)
-
@wec@fv390.hs.bam.moe 2026-05-09 21:20
I love how in 2026 being human-made is a badge of honor of high degree when it comes to software
-
@genegoykhman@mastodon.social 2026-05-10 01:04
@vga256@mastodon.tomodori.net I love this so much. It reminded me of this 21-line spelling corrector in Python https://impythonist.wordpress.com/2014/03/18/peter-norvigs-21-line-spelling-corrector-using-probability-theory/
-
@rostiger@merveilles.town 2026-05-10 07:35
@vga256@mastodon.tomodori.net This is also a great example for code style best practices.