[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Lua 5.1: Question on how the Lua parser evaluates bodies
- From: Alexander Walz <agena.info@...>
- Date: Fri, 19 Jun 2020 18:09:47 +0200
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