Basic Brainfuck Code Optimization by AndoDaan

b=io.read'*a'a={'%+%-','%-%+','%<%>','%>%<'}for i=1,99 do b=b:gsub(a[i%4+1],'')end print(b)

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page