literate C by twobit

l=list(file("../fd/0"))+["\n"]
c=p=1
while l:q=l[1][0]in">\n";print" / *  "[p::2]*c+l.pop(0)[1-c:-1]+" */"*q*c;p=1-c;c=1-q

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

download

return top