literate C by smkt

main(w,f){char B[99][99],i;while(gets(B[i++]));for(w=i,i=0;i<w;i++){f=*B[i]==62?!puts(B[i]+1):!*B[i]?!puts(B[i]):1;if(f){printf("/* %s",B[i]);if(!*B[i+1]|*B[i+1]==62)puts(" */");else{puts("");while(*B[++i]^62&*B[i])printf("   %s%s\n",B[i],!*B[i+1]|*B[i+1]==62?" */":"");i--;}}}}

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

download

return to the top page