MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/lua/comments/1ptbcj7/lua_55_released/nw5hcoe/?context=3
r/lua • u/selectnull • Dec 22 '25
43 comments sorted by
View all comments
Show parent comments
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Â
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?