paren matching by leonid

import os
s=os.read(0,999)
for x in s:s=('([{_)]}'+x)[~-'?([{'.find(x)%9::4]+s[1:];os.write(1,s[0])

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

download

return top