Your IP : 216.73.216.213


Current Path : /opt/alt/python37/lib64/python3.7/site-packages/Cython/Plex/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib64/python3.7/site-packages/Cython/Plex/__pycache__/Actions.cpython-37.pyc

B

Z��Z�	�@spGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd	�d	e�Ze�ZGd
d�de�Ze�ZdS)
c@seZdZdd�Zdd�ZdS)�ActioncCsdS)N�)�self�token_stream�textrr�F/opt/alt/python37/lib64/python3.7/site-packages/Cython/Plex/Actions.py�perform
szAction.performcCs||kS)Nr)r�otherrrr�same_as
szAction.same_asN)�__name__�
__module__�__qualname__rr	rrrrr	src@s0eZdZdZdd�Zdd�Zdd�Zdd	�Zd
S)�Returnzk
    Internal Plex action which causes |value| to
    be returned as the value of the associated token
    cCs
||_dS)N)�value)rrrrr�__init__szReturn.__init__cCs|jS)N)r)rrrrrrrszReturn.performcCst|t�o|j|jkS)N)�
isinstancer
r)rrrrrr	szReturn.same_ascCsdt|j�S)Nz
Return(%s))�reprr)rrrr�__repr__ szReturn.__repr__N)r
rr�__doc__rrr	rrrrrr
s
r
c@s0eZdZdZdd�Zdd�Zdd�Zdd	�Zd
S)�CallzD
    Internal Plex action which causes a function to be called.
    cCs
||_dS)N)�function)rrrrrr)sz
Call.__init__cCs|�||�S)N)r)rrrrrrr,szCall.performcCsd|jjS)NzCall(%s))rr
)rrrrr/sz
Call.__repr__cCst|t�o|j|jkS)N)rrr)rrrrrr	2szCall.same_asN)r
rrrrrrr	rrrrr$s
rc@s0eZdZdZdd�Zdd�Zdd�Zdd	�Zd
S)�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.
    cCs
||_dS)N)�
state_name)rrrrrr=szBegin.__init__cCs|�|j�dS)N)�beginr)rrrrrrr@sz
Begin.performcCs
d|jS)Nz	Begin(%s))r)rrrrrCszBegin.__repr__cCst|t�o|j|jkS)N)rrr)rrrrrr	Fsz
Begin.same_asN)r
rrrrrrr	rrrrr6s
rc@s eZdZdZdd�Zdd�ZdS)�Ignorez�
    IGNORE is a Plex action which causes its associated token
    to be ignored. See the docstring of Plex.Lexicon  for more
    information.
    cCsdS)Nr)rrrrrrrQszIgnore.performcCsdS)N�IGNOREr)rrrrrTszIgnore.__repr__N)r
rrrrrrrrrrJsrc@s eZdZdZdd�Zdd�ZdS)�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.
    cCs|S)Nr)rrrrrrrcszText.performcCsdS)N�TEXTr)rrrrrfsz
Text.__repr__N)r
rrrrrrrrrr\srN)	�objectrr
rrrrrrrrrr�<module>	s