The problem with Lua is that it can’t stand alone as a language; it needs to have a mutual relationship with its host in order to be usable.
Otherwise you will get a language so poor in features you might as well consider rewriting your code in Pascal.