lua-users home
lua-l archive

Re: Lua 5.1: Question on how the Lua parser evaluates bodies

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

AltStyle によって変換されたページ (->オリジナル) /