postfix to infix by murky-satyr

System.in.eachLine{s->f={p,c=s[-1]->def x=19&86%(int)c
s-=~/.$/
x<4?{t=f(x&2)+it;p>(x&2)?"($t)":t}(c+f(x)):c}
println f(0)}

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

download

return to the top page