a
    d'                     @   s   d dl mZ dZG dd deZG dd deZG dd deZe e_G d	d
 d
eZG dd deZ	G dd deZ
e
 e
_G dd deZe e_G dd deZG dd deZG dd deZG dd deZdS )    )IntEnumNc                   @   s,   e Zd ZdZdZdZdZdZdZdZ	dZ
d	S )
LexerActionTyper                        N)__name__
__module____qualname__CHANNELCUSTOMMODEMOREPOP_MODE	PUSH_MODESKIPTYPE r   r   _/var/www/html/stable-diffusion-webui/venv/lib/python3.9/site-packages/antlr4/atn/LexerAction.pyr      s   r   c                   @   s.   e Zd ZdZedddZdd Zdd Zd	S )
LexerAction
actionTypeisPositionDependent)actionc                 C   s   || _ d| _d S )NFr   )selfr   r   r   r   __init__   s    zLexerAction.__init__c                 C   s
   t | jS N)hashr   r   r   r   r   __hash__   s    zLexerAction.__hash__c                 C   s   | |u S r   r   r   otherr   r   r   __eq__"   s    zLexerAction.__eq__N)r   r   r   	__slots__r   r   r"   r%   r   r   r   r   r      s   r   c                       s6   e Zd ZdZ fddZedddZdd Z  ZS )	LexerSkipActionNc                    s   t  tj d S r   )superr   r   r   r!   	__class__r   r   r   0   s    zLexerSkipAction.__init__lexerc                 C   s   |   d S r   )skipr   r,   r   r   r   execute3   s    zLexerSkipAction.executec                 C   s   dS )Nr-   r   r!   r   r   r   __str__6   s    zLexerSkipAction.__str__	r   r   r   INSTANCEr   Lexerr/   r0   __classcell__r   r   r)   r   r'   +   s   r'   c                       sL   e Zd ZdZed fddZedddZdd	 Zd
d Z	dd Z
  ZS )LexerTypeActiontyper6   c                    s   t  tj || _d S r   )r(   r   r   r   r6   )r   r6   r)   r   r   r   @   s    zLexerTypeAction.__init__r+   c                 C   s   | j |_ d S r   r7   r.   r   r   r   r/   D   s    zLexerTypeAction.executec                 C   s   t | j| jfS r   )r    r   r6   r!   r   r   r   r"   G   s    zLexerTypeAction.__hash__c                 C   s*   | |u rdS t |tsdS | j|jkS d S NTF)
isinstancer5   r6   r#   r   r   r   r%   J   s
    
zLexerTypeAction.__eq__c                 C   s   dt | j d S )Nztype())strr6   r!   r   r   r   r0   R   s    zLexerTypeAction.__str__r   r   r   r&   intr   r3   r/   r"   r%   r0   r4   r   r   r)   r   r5   =   s   r5   c                       sL   e Zd ZdZed fddZedddZdd	 Zd
d Z	dd Z
  ZS )LexerPushModeActionmoder?   c                    s   t  tj || _d S r   )r(   r   r   r   r?   r   r?   r)   r   r   r   [   s    zLexerPushModeAction.__init__r+   c                 C   s   | | j d S r   )ZpushModer?   r.   r   r   r   r/   a   s    zLexerPushModeAction.executec                 C   s   t | j| jfS r   r    r   r?   r!   r   r   r   r"   d   s    zLexerPushModeAction.__hash__c                 C   s*   | |u rdS t |tsdS | j|jkS d S r8   )r9   r>   r?   r#   r   r   r   r%   g   s
    
zLexerPushModeAction.__eq__c                 C   s   dt | j d S )Nz	pushMode(r:   r;   r?   r!   r   r   r   r0   o   s    zLexerPushModeAction.__str__r<   r   r   r)   r   r>   X   s   r>   c                       s6   e Zd ZdZ fddZedddZdd Z  ZS )	LexerPopModeActionNc                    s   t  tj d S r   )r(   r   r   r   r!   r)   r   r   r   {   s    zLexerPopModeAction.__init__r+   c                 C   s   |   d S r   )popModer.   r   r   r   r/      s    zLexerPopModeAction.executec                 C   s   dS )NrE   r   r!   r   r   r   r0      s    zLexerPopModeAction.__str__r1   r   r   r)   r   rD   w   s   rD   c                       s6   e Zd ZdZ fddZedddZdd Z  ZS )	LexerMoreActionNc                    s   t  tj d S r   )r(   r   r   r   r!   r)   r   r   r      s    zLexerMoreAction.__init__r+   c                 C   s   |   d S r   )morer.   r   r   r   r/      s    zLexerMoreAction.executec                 C   s   dS )NrG   r   r!   r   r   r   r0      s    zLexerMoreAction.__str__r1   r   r   r)   r   rF      s   rF   c                       sL   e Zd ZdZed fddZedddZdd	 Zd
d Z	dd Z
  ZS )LexerModeActionr?   r@   c                    s   t  tj || _d S r   )r(   r   r   r   r?   rA   r)   r   r   r      s    zLexerModeAction.__init__r+   c                 C   s   | | j  d S r   r@   r.   r   r   r   r/      s    zLexerModeAction.executec                 C   s   t | j| jfS r   rB   r!   r   r   r   r"      s    zLexerModeAction.__hash__c                 C   s*   | |u rdS t |tsdS | j|jkS d S r8   )r9   rH   r?   r#   r   r   r   r%      s
    
zLexerModeAction.__eq__c                 C   s   dt | j d S )Nzmode(r:   rC   r!   r   r   r   r0      s    zLexerModeAction.__str__r<   r   r   r)   r   rH      s   rH   c                       sF   e Zd ZdZeed fddZedddZdd Zd	d
 Z	  Z
S )LexerCustomAction)	ruleIndexactionIndexc                    s$   t  tj || _|| _d| _d S NT)r(   r   r   r   rJ   rK   r   )r   rJ   rK   r)   r   r   r      s    zLexerCustomAction.__init__r+   c                 C   s   | d | j| j d S r   )r   rJ   rK   r.   r   r   r   r/      s    zLexerCustomAction.executec                 C   s   t | j| j| jfS r   )r    r   rJ   rK   r!   r   r   r   r"      s    zLexerCustomAction.__hash__c                 C   s6   | |u rdS t |tsdS | j|jko0| j|jkS d S r8   )r9   rI   rJ   rK   r#   r   r   r   r%      s
    
zLexerCustomAction.__eq__)r   r   r   r&   r=   r   r3   r/   r"   r%   r4   r   r   r)   r   rI      s
   
rI   c                       sL   e Zd ZdZed fddZedddZdd	 Zd
d Z	dd Z
  ZS )LexerChannelActionchannel)rN   c                    s   t  tj || _d S r   )r(   r   r   r   rN   )r   rN   r)   r   r   r      s    zLexerChannelAction.__init__r+   c                 C   s   | j |_d S r   )rN   Z_channelr.   r   r   r   r/      s    zLexerChannelAction.executec                 C   s   t | j| jfS r   )r    r   rN   r!   r   r   r   r"      s    zLexerChannelAction.__hash__c                 C   s*   | |u rdS t |tsdS | j|jkS d S r8   )r9   rM   rN   r#   r   r   r   r%      s
    
zLexerChannelAction.__eq__c                 C   s   dt | j d S )Nzchannel(r:   )r;   rN   r!   r   r   r   r0      s    zLexerChannelAction.__str__r<   r   r   r)   r   rM      s   rM   c                       sF   e Zd ZdZeed fddZedddZdd Z	d	d
 Z
  ZS )LexerIndexedCustomAction)offsetr   c                    s$   t  |j || _|| _d| _d S rL   )r(   r   r   rP   r   r   )r   rP   r   r)   r   r   r     s    z!LexerIndexedCustomAction.__init__r+   c                 C   s   | j | d S r   )r   r/   r.   r   r   r   r/     s    z LexerIndexedCustomAction.executec                 C   s   t | j| j| jfS r   )r    r   rP   r   r!   r   r   r   r"   !  s    z!LexerIndexedCustomAction.__hash__c                 C   s6   | |u rdS t |tsdS | j|jko0| j|jkS d S r8   )r9   rO   rP   r   r#   r   r   r   r%   $  s
    
zLexerIndexedCustomAction.__eq__)r   r   r   r&   r=   r   r   r3   r/   r"   r%   r4   r   r   r)   r   rO     s
   rO   )enumr   r3   r   objectr   r'   r2   r5   r>   rD   rF   rH   rI   rM   rO   r   r   r   r   <module>   s   ##$