postfix to infix by 51b

#define S sprintf
char*p,*q;r=" (%s)";s[99];t=s;main(c){for(;~(c=getchar());)c-10?c<48?p=t,q=t-=80,c-43?c%3*~*p%7-*p%5&&S(p+=80,r,p+1),c**q%5&&S(q=s,r,q+1):0,S(t,"%c%s%c%s",c%6,q+1,c,p+1):S(t+=80,"7%c",c):puts(t+1);}

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

download

return to the top page