Execute Brain****/JavaScript: Difference between revisions

Content added Content deleted
m (<lang>)
(unfriendly to quit on EOF)
Line 22: Line 22:
']':function() { if ( data[dp]) ip = ahead[ip]; else --nest },
']':function() { if ( data[dp]) ip = ahead[ip]; else --nest },
',':function() {
',':function() {
data[dp] = document.getElementById("input").value.charCodeAt(inp++);
var c = document.getElementById("input").value.charCodeAt(inp++);
if (isNaN(data[dp])) { data[dp]=0; quit++; } // EOF
data[dp] = isNaN(c) ? 0 : c; // EOF: other options are -1 or no change
},
},
'.':function() {
'.':function() {