
    Ae	                          G d  de       Z G d de      Z G d de      Z G d de      Z G d d	e      Z e       Z G d
 de      Z e       Zy)c                       e Zd Zd Zd Zy)Actionc                      y N selftoken_streamtexts      3lib/python3.12/site-packages/Cython/Plex/Actions.pyperformzAction.perform   s        c                 
    | |u S r   r   r   others     r   same_aszAction.same_as   s    u}r   N)__name__
__module____qualname__r   r   r   r   r   r   r   
   s    r   r   c                   (    e Zd ZdZd Zd Zd Zd Zy)Returnzk
    Internal Plex action which causes |value| to
    be returned as the value of the associated token
    c                     || _         y r   value)r   r   s     r   __init__zReturn.__init__   s	    
r   c                     | j                   S r   r   r   s      r   r   zReturn.perform   s    zzr   c                 X    t        |t              xr | j                  |j                  k(  S r   )
isinstancer   r   r   s     r   r   zReturn.same_as   s!    %(FTZZ5;;-FFr   c                 2    dt        | j                        z  S )Nz
Return(%s))reprr   r   s    r   __repr__zReturn.__repr__!   s    d4::...r   N)r   r   r   __doc__r   r   r   r!   r   r   r   r   r      s    
G/r   r   c                   (    e Zd ZdZd Zd Zd Zd Zy)CallzD
    Internal Plex action which causes a function to be called.
    c                     || _         y r   function)r   r'   s     r   r   zCall.__init__*   s	     r   c                 &    | j                  ||      S r   r&   r   s      r   r   zCall.perform-   s    }}\400r   c                 4    d| j                   j                  z  S )NzCall(%s))r'   r   r    s    r   r!   zCall.__repr__0   s    DMM2222r   c                 V    t        |t              xr | j                  |j                  u S r   )r   r$   r'   r   s     r   r   zCall.same_as3   s!    %&J4==ENN+JJr   Nr   r   r   r"   r   r   r!   r   r   r   r   r$   r$   %   s    !13Kr   r$   c                   (    e Zd ZdZd Zd Zd Zd Zy)Beginz
    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                     || _         y r   
state_name)r   r0   s     r   r   zBegin.__init__>   s	    $r   c                 :    |j                  | j                         y r   )beginr0   r   s      r   r   zBegin.performA   s    4??+r   c                      d| j                   z  S )Nz	Begin(%s)r/   r    s    r   r!   zBegin.__repr__D   s    T__,,r   c                 X    t        |t              xr | j                  |j                  k(  S r   )r   r-   r0   r   s     r   r   zBegin.same_asG   s#    %'ODOOu?O?O,OOr   Nr+   r   r   r   r-   r-   7   s    %,-Pr   r-   c                       e Zd ZdZd Zd Zy)Ignorez
    IGNORE is a Plex action which causes its associated token
    to be ignored. See the docstring of Plex.Lexicon  for more
    information.
    c                      y r   r   r   s      r   r   zIgnore.performR   s    r   c                      y)NIGNOREr   r    s    r   r!   zIgnore.__repr__U   s    r   Nr   r   r   r"   r   r!   r   r   r   r6   r6   K   s    r   r6   c                       e Zd ZdZd Zd Zy)Textz
    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                     |S r   r   r   s      r   r   zText.performd   s    r   c                      y)NTEXTr   r    s    r   r!   zText.__repr__g   s    r   Nr:   r   r   r   r<   r<   ]   s    r   r<   N)	objectr   r   r$   r-   r6   r9   r<   r?   r   r   r   <module>rA      sc   V /V /&K6 K$PF P(V  
6  vr   