Bracket Matching by 51b

import std.stdio;void main(){char[400]s;for(char*p,q;gets(q=p=&*s);printf(*q?&*"failed at: %s
":"yes
",*p?p:&*"EOL"))for(;*p%9%5%3?*q++=*p:(*p^*--q)<7&&*q;)p++;}

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

download

return to the top page