for(;s=readline();print(s))for(i=99;i--;s=s.replace(/if (\w+) then (\w+) else ([tf]\w+)/,function(m,a,b,c){return eval(a)?b:c}));
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page