f=->s{s[-3]>?!&&f[" "+s.gsub(/^( *\/).|.(.)$|./){$1||$2||($&>?/??/:?\\)}]puts s} f[STDIN.read.chomp]
//\/\/\\
/\ //\\ //\/\\ //\/\/\\
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!