Extension:Brainfuck

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual
Crystal Clear action run.png
Brainfuck

Release status: stable

Brainfuck-mw-logo.png
Implementation Tag, Parser function
Description Embedded Brainfuck Interpreter
Author(s) Vladimir Kostyukov (vkostyukovtalk)
Latest version 0.3 (May 2012)
MediaWiki 1.14 (tested)
Database changes No
License Apache License v2.0
Download
Hooks used
ParserFirstCallInit

LanguageGetMagic

Translate the Brainfuck extension if it is available at translatewiki.net

Check usage and version matrix; code metrics

The Brainfuck extension allows you to interpret Brainfuck code on pages.

Usage[edit | edit source]

There are two ways to use this extension: with tags or with parser function. Following examples are renders as "BF" string (from "BrainFuck").

Tag[edit | edit source]

<brainfuck>>++++++++++[>+++++++>+++++++><<<-]>---->><<<>.>.</brainfuck>
<bf>>++++++++++[>+++++++>+++++++><<<-]>---->><<<>.>.</bf>

Parser Function[edit | edit source]

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

Installation[edit | edit source]

  • Download and extract the tarball in your extensions/ folder. It should generate a new folder called Brainfuck directly inside your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
require_once "$IP/extensions/Brainfuck/Brainfuck.php";
  • Done! Navigate to "Special:Version" on your wiki to verify that the extension is successfully installed.

References[edit | edit source]