Re: Parenless calls for function literals
"'Martin Eden' via lua-l" <[email protected]> Sat, 30 May 2026 18:19:25 +0200
| Newsgroups | gmane.comp.lang.lua.general |
|---|---|
| Message-ID | <[email protected]> |
On 2026-05-29 13:47, 'TopchetoEU' via lua-l wrote: > Your tool wouldn't nicely transform this syntax, as I'm trying to transform `expression begin stm1 stm2 stm3 end` to `expression(function(...) stm1 stm2 stm3 end)`, which on the token level is exponentially harder, because you need to know where the function body ends, so that you can insert the closing call parenthesis. Yeah ltokenp is tool for transpiling Lua code to something else. Not vice versa. -- Martin -- You received this message because you are subscribed to the Google Groups "lua-l" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/lua-l/117492ce-a579-4d9f-a594-348f3bace068%40disroot.org.