
    h%                         S r  " S S5      r " S S\5      r " S S\5      r " S S\5      r " S	 S
\5      r " S S\5      r\" 5       r " S S\5      r\" 5       r	g)zB
Python Lexical Analyser

Actions for use in token specifications
c                   &    \ rS rSrS rS rS rSrg)Action   c                     g N selftoken_streamtexts      M/var/www/fran/franai/venv/lib/python3.13/site-packages/Cython/Plex/Actions.pyperformAction.perform   s        c                     U $ r   r   r	   s    r   __copy__Action.__copy__       r   c                     U $ r   r   )r	   memos     r   __deepcopy__Action.__deepcopy__   r   r   r   N)__name__
__module____qualname____firstlineno__r   r   r   __static_attributes__r   r   r   r   r      s    r   r   c                   *    \ rS rSrSrS rS rS rSrg)Return   z_
Internal Plex action which causes |value| to
be returned as the value of the associated token
c                     Xl         g r   value)r	   r#   s     r   __init__Return.__init__   s    
r   c                     U R                   $ r   r"   r   s      r   r   Return.perform   s    zzr   c                      SU R                   -  $ )Nz
Return(%r)r"   r   s    r   __repr__Return.__repr__   s    djj((r   r"   N	r   r   r   r   __doc__r$   r   r)   r   r   r   r   r   r      s    
)r   r   c                   *    \ rS rSrSrS rS rS rSrg)Call"   z<
Internal Plex action which causes a function to be called.
c                     Xl         g r   function)r	   r2   s     r   r$   Call.__init__'   s     r   c                 $    U R                  X5      $ r   r1   r   s      r   r   Call.perform*   s    }}\00r   c                 4    SU R                   R                  -  $ )NzCall(%s))r2   r   r   s    r   r)   Call.__repr__-   s    DMM2222r   r1   Nr+   r   r   r   r.   r.   "   s    !13r   r.   c                   *    \ rS rSrSrS rS rS rSrg)Method1   z
Plex action that calls a specific method on the token stream,
passing the matched text and any provided constant keyword arguments.
c                 0    Xl         U=(       d    S U l        g r   )namekwargs)r	   r<   r=   s      r   r$   Method.__init__7   s    	nr   c                 |    [        XR                  5      nU R                  b  U" U40 U R                  D6$ U" U5      $ r   )getattrr<   r=   )r	   r
   r   methods       r   r   Method.perform;   s7    yy1.2kk.Evd*dkk*W6RV<Wr   c           	          U R                   bF  SR                  [        U R                   R                  5        Vs/ s H  nSU-  PM
     sn5      5      OSnSU R                  < U(       a  SOS< U< S3$ s  snf )Nz, z%s=%r zMethod())r=   joinsorteditemsr<   )r	   itemr=   s      r   r)   Method.__repr__@   sk     {{& IIf9J9J9LM9Lgn9LMNO,. 	 $(99fd".DfMM Ns   A6)r=   r<   Nr+   r   r   r   r9   r9   1   s    
%X
Nr   r9   c                   *    \ rS rSrSrS rS rS rSrg)BeginG   z
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                     Xl         g r   
state_name)r	   rP   s     r   r$   Begin.__init__N   s    $r   c                 :    UR                  U R                  5        g r   )beginrP   r   s      r   r   Begin.performQ   s    4??+r   c                      SU R                   -  $ )Nz	Begin(%s)rO   r   s    r   r)   Begin.__repr__T   s    T__,,r   rO   Nr+   r   r   r   rL   rL   G   s    %,-r   rL   c                   $    \ rS rSrSrS rS rSrg)IgnoreX   z
IGNORE is a Plex action which causes its associated token
to be ignored. See the docstring of Plex.Lexicon  for more
information.
c                     g r   r   r   s      r   r   Ignore.perform_   s    r   c                     g)NIGNOREr   r   s    r   r)   Ignore.__repr__b   s    r   r   Nr   r   r   r   r,   r   r)   r   r   r   r   rX   rX   X   s    r   rX   c                   $    \ rS rSrSrS rS rSrg)Texti   z
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                     U$ r   r   r   s      r   r   Text.performp   r   r   c                     g)NTEXTr   r   s    r   r)   Text.__repr__s   s    r   r   Nr_   r   r   r   ra   ra   i   s    r   ra   N)
r,   r   r   r.   r9   rL   rX   r]   ra   rf   r   r   r   <module>rh      sp    )V ) 36 3NV N,-F -"V  
6  vr   