I want to use Lua 4.0.1 instead of 5.2, because I have to parse 4.0.1 scripts.
The syntax of the generic for loop has been changed since then (with no backwards compatibility).
If this is not possible, are there any alternatives to NLua that support this?