Your IP : 216.73.216.213
B
Z��Z� � @ sp G d d� de �ZG dd� de�ZG dd� de�ZG dd� de�ZG dd � d e�Ze� ZG d
d� de�Ze� ZdS )
c @ s e Zd Zdd� Zdd� ZdS )�Actionc C s d S )N� )�self�token_stream�textr r �F/opt/alt/python37/lib64/python3.7/site-packages/Cython/Plex/Actions.py�perform
s zAction.performc C s | |kS )Nr )r �otherr r r �same_as
s zAction.same_asN)�__name__�
__module__�__qualname__r r r r r r r s r c @ s0 e Zd ZdZdd� Zdd� Zdd� Zdd � Zd
S )�Returnzk
Internal Plex action which causes |value| to
be returned as the value of the associated token
c C s
|| _ d S )N)�value)r r r r r �__init__ s zReturn.__init__c C s | j S )N)r )r r r r r r r s zReturn.performc C s t |t�o| j|jkS )N)�
isinstancer
r )r r r r r r s zReturn.same_asc C s dt | j� S )Nz
Return(%s))�reprr )r r r r �__repr__ s zReturn.__repr__N)r
r r �__doc__r r r r r r r r r
s
r
c @ s0 e Zd ZdZdd� Zdd� Zdd� Zdd � Zd
S )�CallzD
Internal Plex action which causes a function to be called.
c C s
|| _ d S )N)�function)r r r r r r ) s z
Call.__init__c C s | � ||�S )N)r )r r r r r r r , s zCall.performc C s d| j j S )NzCall(%s))r r
)r r r r r / s z
Call.__repr__c C s t |t�o| j|jkS )N)r r r )r r r r r r 2 s zCall.same_asN)r
r r r r r r r r r r r r $ s
r c @ s0 e Zd ZdZdd� 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.
c C s
|| _ d S )N)�
state_name)r r r r r r = s zBegin.__init__c C s |� | j� d S )N)�beginr )r r r r r r r @ s z
Begin.performc C s
d| j S )Nz Begin(%s))r )r r r r r C s zBegin.__repr__c C s t |t�o| j|jkS )N)r r r )r r r r r r F s z
Begin.same_asN)r
r r r r r r r r r r r r 6 s
r c @ s e Zd ZdZdd� 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.
c C s d S )Nr )r r r r r r r Q s zIgnore.performc C s dS )N�IGNOREr )r r r r r T s zIgnore.__repr__N)r
r r r r r r r r r r J s r c @ s e Zd ZdZdd� 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.
c C s |S )Nr )r r r r r r r c s zText.performc C s dS )N�TEXTr )r r r r r f s z
Text.__repr__N)r
r r r r r r r r r r \ s r N) �objectr r
r r r r r r r r r r �<module> s