sealife / brainfuck

该软件包最新版本(dev-master)没有可用的许可信息。

PHP 编写的 Brainfuck 解释器

dev-master 2018-10-30 22:15 UTC

This package is auto-updated.

Last update: 2024-09-29 05:28:01 UTC


README

此脚本将在 PHP 中解释 brainfuck。

示例

$parser = new Parser();

$parser->run("+++++++++ [-]");

// or to run a file

$parser->runFile($file);

// to modify the starting memory (to start with a custom one) do

$memory = new Memory();
$parser = new Parser($memory);

$result = $parser->run("[>[>+>+<<-]>>[<<+>>-]<<<-]");

规范

来源: 维基百科