lua-users home
lua-l archive

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

On Wed, Oct 17, 2007 at 07:21:37PM -0500, Javier Guerra Giraldez wrote:
> instead of tryind to write a 'compatibility layer', maybe it would be easier
> to use some text-handling to translate your old scripts to Lua once and for
> all.
> something like (using sed):
> s/OD/end/
> s/StartTest/StartTest()/
> s/SetDuration%s*[(.-)]/SetDuration (\1)/
> and so on
> --
> Javier

Yeah, if the extent of the differences is surmountable by some trivial
text manipulation you could either use an external tool to do it or
possibly (though people with more experience doing this would want to
check me on this) just write a custom loader and use that to load/parse
your scripts before calling them.