Re: Parenless calls for function literals

Luiz Henrique de Figueiredo <[email protected]> Thu, 28 May 2026 15:20:28 -0300
Newsgroups gmane.comp.lang.lua.general
Message-ID <CABt16qkG3W2KRCP4yYQiZXmMAQ4ZsXj4UwmmKsxz2X6ezS0bHg@mail.gmail.com>
>     called_function begin
>         body_of_function_literal
>     end

Transforming '<name> begin' to 'function <name>()' is very easy with
ltokenp, my token processor:
https://web.tecgraf.puc-rio.br/~lhf/ftp/lua/#ltokenp

The advantage of ltokenp is that you can experiment with syntax
without patching the Lua source code.
--lhf

-- 
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/CABt16qkG3W2KRCP4yYQiZXmMAQ4ZsXj4UwmmKsxz2X6ezS0bHg%40mail.gmail.com.