lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> 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 */