Quine by hirose

x=["];a=",0,1,0,0,";b=",0,1,1,0,";s=",0,"x=[",0,";for(i=0;i<27;i++){c=x[i];s+=c?-c?",0,"1,",0,":a+c+a+",0,",",0,":",0,"0,",0,"}for(i=0;i<27;i++){c=x[i];s+=c?-c?b:c:a}print(s)",];a="\"";b="\\";s="x=[";for(i=0;i<27;i++){c=x[i];s+=c?-c?"1,":a+c+a+",":"0,"}for(i=0;i<27;i++){c=x[i];s+=c?-c?b:c:a}print(s)

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

download

return to the top page