ó
ŚV]c           @   s   d  e  f d     YZ d e f d     YZ d e f d     YZ d e f d     YZ d e f d	     YZ e   Z d
 e f d     YZ e   Z d S(   t   Actionc           B   s   e  Z d    Z d   Z RS(   c         C   s   d  S(   N(    (   t   selft   token_streamt   text(    (    s2   lib/python2.7/site-packages/Cython/Plex/Actions.pyt   perform   s    c         C   s
   |  | k S(   N(    (   R   t   other(    (    s2   lib/python2.7/site-packages/Cython/Plex/Actions.pyt   same_as   s    (   t   __name__t
   __module__R   R   (    (    (    s2   lib/python2.7/site-packages/Cython/Plex/Actions.pyR    
   s   	t   Returnc           B   s2   e  Z d  Z d   Z d   Z d   Z d   Z RS(   sk   
    Internal Plex action which causes |value| to
    be returned as the value of the associated token
    c         C   s   | |  _  d  S(   N(   t   value(   R   R
   (    (    s2   lib/python2.7/site-packages/Cython/Plex/Actions.pyt   __init__   s    c         C   s   |  j  S(   N(   R
   (   R   R   R   (    (    s2   lib/python2.7/site-packages/Cython/Plex/Actions.pyR      s    c         C   s   t  | t  o |  j | j k S(   N(   t
   isinstanceR	   R
   (   R   R   (    (    s2   lib/python2.7/site-packages/Cython/Plex/Actions.pyR      s    c         C   s   d t  |  j  S(   Ns
   Return(%s)(   t   reprR
   (   R   (    (    s2   lib/python2.7/site-packages/Cython/Plex/Actions.pyt   __repr__!   s    (   R   R   t   __doc__R   R   R   R   (    (    (    s2   lib/python2.7/site-packages/Cython/Plex/Actions.pyR	      s
   			t   Callc           B   s2   e  Z d  Z d   Z d   Z d   Z d   Z RS(   sD   
    Internal Plex action which causes a function to be called.
    c         C   s   | |  _  d  S(   N(   t   function(   R   R   (    (    s2   lib/python2.7/site-packages/Cython/Plex/Actions.pyR   *   s    c         C   s   |  j  | |  S(   N(   R   (   R   R   R   (    (    s2   lib/python2.7/site-packages/Cython/Plex/Actions.pyR   -   s    c         C   s   d |  j  j S(   Ns   Call(%s)(   R   R   (   R   (    (    s2   lib/python2.7/site-packages/Cython/Plex/Actions.pyR   0   s    c         C   s   t  | t  o |  j | j k S(   N(   R   R   R   (   R   R   (    (    s2   lib/python2.7/site-packages/Cython/Plex/Actions.pyR   3   s    (   R   R   R   R   R   R   R   (    (    (    s2   lib/python2.7/site-packages/Cython/Plex/Actions.pyR   %   s
   			t   Beginc           B   s2   e  Z d  Z d   Z d   Z d   Z d   Z RS(   sŚ   
    Begin(state_name) is a Plex action which causes the Scanner to
    enter the state |state_name|. See the docstring of Plex.Lexicon
    for more information.
    c         C   s   | |  _  d  S(   N(   t
   state_name(   R   R   (    (    s2   lib/python2.7/site-packages/Cython/Plex/Actions.pyR   >   s    c         C   s   | j  |  j  d  S(   N(   t   beginR   (   R   R   R   (    (    s2   lib/python2.7/site-packages/Cython/Plex/Actions.pyR   A   s    c         C   s   d |  j  S(   Ns	   Begin(%s)(   R   (   R   (    (    s2   lib/python2.7/site-packages/Cython/Plex/Actions.pyR   D   s    c         C   s   t  | t  o |  j | j k S(   N(   R   R   R   (   R   R   (    (    s2   lib/python2.7/site-packages/Cython/Plex/Actions.pyR   G   s    (   R   R   R   R   R   R   R   (    (    (    s2   lib/python2.7/site-packages/Cython/Plex/Actions.pyR   7   s
   			t   Ignorec           B   s    e  Z d  Z d   Z d   Z RS(   s   
    IGNORE is a Plex action which causes its associated token
    to be ignored. See the docstring of Plex.Lexicon  for more
    information.
    c         C   s   d  S(   N(   t   None(   R   R   R   (    (    s2   lib/python2.7/site-packages/Cython/Plex/Actions.pyR   R   s    c         C   s   d S(   Nt   IGNORE(    (   R   (    (    s2   lib/python2.7/site-packages/Cython/Plex/Actions.pyR   U   s    (   R   R   R   R   R   (    (    (    s2   lib/python2.7/site-packages/Cython/Plex/Actions.pyR   K   s   	t   Textc           B   s    e  Z d  Z d   Z d   Z RS(   sŤ   
    TEXT is a Plex action which causes the text of a token to
    be returned as the value of the token. See the docstring of
    Plex.Lexicon  for more information.
    c         C   s   | S(   N(    (   R   R   R   (    (    s2   lib/python2.7/site-packages/Cython/Plex/Actions.pyR   d   s    c         C   s   d S(   Nt   TEXT(    (   R   (    (    s2   lib/python2.7/site-packages/Cython/Plex/Actions.pyR   g   s    (   R   R   R   R   R   (    (    (    s2   lib/python2.7/site-packages/Cython/Plex/Actions.pyR   ]   s   	N(	   t   objectR    R	   R   R   R   R   R   R   (    (    (    s2   lib/python2.7/site-packages/Cython/Plex/Actions.pyt   <module>
   s   	