Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function build(data)
- local t=data
- len = 1
- while len > 0 do
- t, len = string.gsub(t,'while(.+){(.+)}', 'while %1 do %2 end')
- end
- len = 1
- while len > 0 do
- t, len = string.gsub(t,'for(.+){(.+)}', 'for %1 do %2 end')
- end
- len = 1
- while len > 0 do
- t, len = string.gsub(t,'if(.+){(.+)}','if %1 then %2 end')
- end
- len = 1
- while len > 0 do
- t, len = string.gsub(t,'function(.+){(.+)}', 'function %1 %2 end')
- end
- return t
- end
- print(build)
- return build
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement