Exctract Lua block parsing function