a=io.read()b=0 for i=1,#a do c=a:sub(i,i):byte()-b io.write((c>0 and"+"or"-"):rep(math.abs(c))..".")b=b+c end
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page