ó
Nl[Tc           @   s±   d  Z  d d l m Z m Z d d l m Z m Z m Z m Z m	 Z	 m
 Z
 m Z m Z m Z d d d g Z d e f d     YZ d e f d     YZ d e f d	     YZ d
 S(   sÓ   
    pygments.lexers.esoteric
    ~~~~~~~~~~~~~~~~~~~~~~~~

    Lexers for esoteric languages.

    :copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
i’’’’(   t
   RegexLexert   include(	   t   Textt   Commentt   Operatort   Keywordt   Namet   Stringt   Numbert   Punctuationt   Errort   BrainfuckLexert   BefungeLexert   RedcodeLexerc           B   s¼   e  Z d  Z d Z d d g Z d d g Z d g Z i d e j f d e j	 f d	 e j
 f d
 e f g d 6d e d f d e f e d  g d 6d e d f d e d f e d  g d 6Z RS(   se   
    Lexer for the esoteric `BrainFuck <http://www.muppetlabs.com/~breadbox/bf/>`_
    language.
    t	   Brainfuckt	   brainfuckt   bfs   *.bfs   *.bs   application/x-brainfucks   [.,]+s   [+-]+s   [<>]+s   [^.,+\-<>\[\]]+t   commons   \[t   loops   \]t   roots   #pushs   #pop(   t   __name__t
   __module__t   __doc__t   namet   aliasest	   filenamest	   mimetypesR   t   Tagt   Builtint   VariableR   R   R
   R   t   tokens(    (    (    s<   /usr/lib/python2.7/dist-packages/pygments/lexers/esoteric.pyR      s    		c           B   s·   e  Z d  Z d Z d g Z d g Z d g Z i d e f d e f d e	 j
 f d e	 j f d	 e f d
 e	 j f d e j f d e j f d e f d e f d e f d e f g d 6Z RS(   s{   
    Lexer for the esoteric `Befunge <http://en.wikipedia.org/wiki/Befunge>`_
    language.

    .. versionadded:: 0.7
    t   Befunget   befunges	   *.befunges   application/x-befunges   [0-9a-f]s	   [+*/%!`-]s   [<>^v?\[\]rxjk]s	   [:\\$.,n]s   [|_mw]s   [{}]s   ".*?"s   \'.s   [#;]s   [pg&~=@iotsy]s   [()A-Z]s   \s+R   (   R   R   R   R   R   R   R   R   R   R   R   R   R   R   R   t   Doublet   SingleR   R   R   (    (    (    s<   /usr/lib/python2.7/dist-packages/pygments/lexers/esoteric.pyR   3   s$   									c           B   s¶   e  Z d  Z d Z d g Z d g Z d& Z d' Z i d e f d e	 j
 f d d j e  e j f d d j e  e j f d  e f d! e f d" e f d# e f d$ e j f g	 d% 6Z RS((   s   
    A simple Redcode lexer based on ICWS'94.
    Contributed by Adam Blinkinsop <blinks@acm.org>.

    .. versionadded:: 0.8
    t   Redcodet   redcodes   *.cwt   DATt   MOVt   ADDt   SUBt   MULt   DIVt   MODt   JMPt   JMZt   JMNt   DJNt   CMPt   SLTt   SPLt   ORGt   EQUt   ENDt   At   Bt   ABt   BAt   Ft   Xt   Is   \s+s   ;.*$s   \b(%s)\bt   |s   [A-Za-z_]\w+s   [-+*/%]s   [#$@<>]s   [.,]s   [-+]?\d+R   (   R%   R&   R'   R(   R)   R*   R+   R,   R-   R.   R/   R0   R1   R2   R3   R4   R5   (   R6   R7   R8   R9   R:   R;   R<   (   R   R   R   R   R   R   t   opcodest	   modifiersR   R   R"   t   joinR   t   Functiont	   DecoratorR   R	   R   t   IntegerR   (    (    (    s<   /usr/lib/python2.7/dist-packages/pygments/lexers/esoteric.pyR   Q   s$   		  					N(   R   t   pygments.lexerR    R   t   pygments.tokenR   R   R   R   R   R   R   R	   R
   t   __all__R   R   R   (    (    (    s<   /usr/lib/python2.7/dist-packages/pygments/lexers/esoteric.pyt   <module>
   s   @ 