Convert embedded macros to Lua.