Anonymous user
Execute Brain****/JavaScript: Difference between revisions
m
Categorization now in master page
(unfriendly to quit on EOF) |
m (Categorization now in master page) |
||
Line 1:
{{implementation|Brainf***}}{{collection|RCBF}}
Presented here is the core of a Brainf*** interpreter/debugger written in [[JavaScript]] that 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.
<lang javascript>var code; // formatted code
var ip = 0; // current instruction within code
var nest = 0; // current bracket nesting (for Out button)
Line 136 ⟶ 135:
body();
dump();
}</lang>▼
▲</lang>
|