Basic Brainfuck Code Optimization by chocobi

string u;for(string s:stdin){for(int l=999;length(s)<l;){l=length(s);for(string t:new string[]{"+-","-+","><","<>"})s=replace(s,t,"");}write(s);}

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

download

return to the top page