paren matching by clock

procedure main()
a:=[]
while push(a,")]}"[find(c:=reads(),"([{")])|0&writes("?"~==c|pop(a))
end

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

download

return to the top page