BrainFuck解释器


某些代码可能使脚本崩溃(比如死循环)。

一些例子在这。

代码(code):<input class="ismall" type=button value="<=清空" onClick="code.value=''")>

<textarea style='width:80%;' id="code" cols=70 rows=10> ++++++++++[>+++++++>++++++++++>+++>+<<<<-] >++. >+. +++++++.. +++. >++. <<+++++++++++++++. >.+++.------.--------.>+.>. </textarea>

输入流(input): <input markdown="1" class="ismall" type=button value="<=清空" onClick="s_in.value=''"> </input>

<textarea style='width:80%;' id="s_in" cols=70 rows=2> </textarea>
<input type=button value="==执行==" onClick=x(document.getElementById("code").value)>

输出流(output):<input class="ismall" type=button value="<=清空" onClick="s_out.value=''" /> </input>

<textarea style='width:80%;' id="s_out" cols=70 rows=10> </textarea>