[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.1: Question on how the Lua parser evaluates bodies
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Fri, 19 Jun 2020 13:43:26 -0300
> I noticed that the Lua 5.1 parser seems to call the body() procedure
> multiple times when parsing statements that are part of a Lua body, for
> example statements in a `then`, `else` or `do` body.
body() is for parsing function bodies:
/* body -> `(' parlist `)' chunk END */
Perhaps you mean block():
/* block -> chunk */