paren matching by twobit

import os
q=[]
while 1:c=os.read(0,1);os.write(1,c*(c!="?")or q.pop());q+=")]} "["([{".find(c):3:9]

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

download

return top