Turing Machine by 51b

import std.stdio;void main(){char[999]s=0;char*p=&*s,q=p+400,r=q;for(;gets(p+=32);){}for(p[2]=1;p[2]-35;q<r&&r--)p=&*s+*q%8*32+64+p[2]%8*4,*q=*p,q+=p[1]-61;puts=r;}

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

download

return to the top page