Skip to content
Brainfuck interpreter as Wiki Extension
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Brainfuck.php
README

README

= SUMMARY =

Brainfuck Embedded Interpreter - is a Media Wiki Extension which allows to interpret Brainfuck code on Wiki pages.

= USAGE =

There are two ways to use this extension: a) through parser function b) through tag.

The following examples are renders as "BF" string (like "BrainFuck"):

a) {{#brainfuck:>++++++++++[>+++++++>+++++++><<<-]>---->><<<>.>.}}
   or
   {{#bf:>++++++++++[>+++++++>+++++++><<<-]>---->><<<>.>.}}

b) <brainfuck>>++++++++++[>+++++++>+++++++><<<-]>---->><<<>.>.</brainfuck>
   or
   <bf>>++++++++++[>+++++++>+++++++><<<-]>---->><<<>.>.</bf>

= INSTALLATION =

1) Put file "Brainfuck.php" into new Wiki extension directory:

   $IP/extensions/Brainfuck/Brainfuck.php

2) Add following line to "LocalSettings.php":

   require_once("$IP/extensions/Brainfuck/Brainfuck.php");

= CHANGELOG =

v 0.3 (May 2012)
* added error handling (interpret errors, parse errors)

v 0.2 (May 2012)
* rewrote whole code in OOP-style

v 0.1 (May 2012)
* basic working version

= TODO =

* Add performance counters to interpreters (instructions executed, loops iterations performed, etc ..) (v 0.7)
* Add alternative interpreter implementation (StackInterpreter for example) (v 0.6)
* Allow to interpret more than one source (v 0.5)
* Add parameters to interpreter (v 0.4)

= CONTACTS =

Author: Vladimir Kostyukov <vladimir.kostukov@gmail.com>
GitHub page: https://github.com/vkostyukov/brainfuck-wiki-extension
Extension page: http://www.mediawiki.org/wiki/Extension:Brainfuck
You can’t perform that action at this time.