The fpc compiler supplies a Pascal API for Lua, but I experienced a few snags which I managed to sort out. Everything useful I now know about it is on: http://lua-users.org/wiki/LuaInFreePascal Dirk