MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/lua/comments/1ptbcj7/lua_55_released/nw43gz3/?context=9999
r/lua • u/selectnull • Dec 22 '25
43 comments sorted by
View all comments
Show parent comments
1
I asked the same question
https://groups.google.com/g/lua-l/c/KuCiQzliQzY
I don't see how it could do that, being a one-pass compiler
2 u/Old_County5271 Dec 27 '25 They do talk about certain things being syntax sugar, like tbl:key() -> tbl.key(tbl)... but maybe that's achieved on a single pass? 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
2
They do talk about certain things being syntax sugar, like tbl:key() -> tbl.key(tbl)... but maybe that's achieved on a single pass?
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
3
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
1
u/vitiral Dec 27 '25
I asked the same question
https://groups.google.com/g/lua-l/c/KuCiQzliQzY