lua-users home
lua-l archive

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


Hello,

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.

These mutliple calls only occur when entering statements in interactive mode, i.e. when issued from the command-line (getS function).

Is it possible to count and query this count of these frequent calls ?

I am asking this because I am currently trying to implement constants in a Lua 5.1 fork.

Yours,

Alex