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]

  1. Put file "Brainfuck.php" into new Wiki extension directory:
$IP/extensions/Brainfuck/Brainfuck.php
  1. Add following line to "LocalSettings.php":
require_once("$IP/extensions/Brainfuck/Brainfuck.php");

References[edit | edit source]