i=0 System.in.eachLine{it.each{c=(int)it;while(i!=c){if(i<c){print('+');i++}else{print('-');i--}};print('.')}}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page