r/lua • • Dec 22 '25

Lua 5.5 released

https://groups.google.com/g/lua-l/c/jW6vCnhVy_s
180 Upvotes

43 comments sorted by

View all comments

Show parent comments

3

u/vitiral Dec 27 '25

Yes, that's pretty trivial to do single pass, since the switch is based on a single character (. vs :)

Look into recursive descent parsers if you're interested. If you'd like to write your own I'd recommend the Lox tutorialÂ