Text language framework and Lua implementation