paren matching by 0mg

with([])for(p="??()[]{}";s=readline();)for each(c in s+"\n")n=p.indexOf(c),n>0&&push(p[n^1]),putstr(n?c:pop())

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

download

return to the top page