Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vkostyukov/brainfuck-wiki-extension

Brainfuck interpreter as Wiki Extension
https://github.com/vkostyukov/brainfuck-wiki-extension

Last synced: 7 days ago
JSON representation

Brainfuck interpreter as Wiki Extension

Awesome Lists containing this project

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) >++++++++++[>+++++++>+++++++><<<-]>---->><<<>.>.
or
>++++++++++[>+++++++>+++++++><<<-]>---->><<<>.>.

= 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
GitHub page: https://github.com/vkostyukov/brainfuck-wiki-extension
Extension page: http://www.mediawiki.org/wiki/Extension:Brainfuck