Back to index

moin  1.9.0~rc2
Static Public Attributes
MoinMoin.support.pygments.lexers.other.BrainfuckLexer Class Reference
Inheritance diagram for MoinMoin.support.pygments.lexers.other.BrainfuckLexer:
Inheritance graph
[legend]
Collaboration diagram for MoinMoin.support.pygments.lexers.other.BrainfuckLexer:
Collaboration graph
[legend]

List of all members.

Static Public Attributes

string name = 'Brainfuck'
list aliases = ['brainfuck', 'bf']
list filenames = ['*.bf', '*.b']
list mimetypes = ['application/x-brainfuck']
dictionary tokens

Detailed Description

Lexer for the esoteric `BrainFuck <http://www.muppetlabs.com/~breadbox/bf/>`_
language.

Definition at line 259 of file other.py.


Member Data Documentation

Definition at line 266 of file other.py.

Definition at line 267 of file other.py.

list MoinMoin.support.pygments.lexers.other.BrainfuckLexer.mimetypes = ['application/x-brainfuck'] [static]

Definition at line 268 of file other.py.

Definition at line 265 of file other.py.

Initial value:
{
        'common': [
            # use different colors for different instruction types
            (r'[.,]+', Name.Tag),
            (r'[+-]+', Name.Builtin),
            (r'[<>]+', Name.Variable),
            (r'[^.,+\-<>\[\]]+', Comment),
        ],
        'root': [
            (r'\[', Keyword, 'loop'),
            (r'\]', Error),
            include('common'),
        ],
        'loop': [
            (r'\[', Keyword, '#push'),
            (r'\]', Keyword, '#pop'),
            include('common'),
        ]
    }

Definition at line 270 of file other.py.


The documentation for this class was generated from the following file: