Execute Brain****/JavaScript: Difference between revisions
Content added Content deleted
m (RCBF (JavaScript) moved to RCBF/JavaScript: MW has page hierarchy support.) |
m (<code>) |
||
Line 2: | Line 2: | ||
Presented here is the core of a Brainf*** interpreter/debugger designed to run within a web page. The full source can be found at http://www.quirkster.com/iano/js/bf.html by viewing the page source. |
Presented here is the core of a Brainf*** interpreter/debugger designed to run within a web page. The full source can be found at http://www.quirkster.com/iano/js/bf.html by viewing the page source. |
||
<code javascript> |
|||
<pre> |
|||
var code; // formatted code |
var code; // formatted code |
||
var ip = 0; // current instruction within code |
var ip = 0; // current instruction within code |
||
Line 137: | Line 137: | ||
dump(); |
dump(); |
||
} |
} |
||
</ |
</code> |