|
|
||
|
> It's really going to be a lot of grunt work to change every single one of
> those 'for' statements.
The following script may help:
t = io.read("*a")
t = string.gsub(t, "%f[%w]for ([ %w,_]+) in +([%w_.]+) +do%f[%W]",
"for %1 in pairs(%2) do")
io.write(t)
-- Roberto