o
    ڷi'                     @   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   L/home/ubuntu/vllm_env/lib/python3.10/site-packages/antlr4/atn/LexerAction.pyr      s    r   c                   @   s.   e Zd ZdZdef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                       6   e Zd ZdZ fddZdefddZdd Z  ZS )	LexerSkipActionNc                       t  tj d S r   )superr   r   r   r!   	__class__r   r   r   0      zLexerSkipAction.__init__lexerc                 C      |   d S r   )skipr   r.   r   r   r   execute3      zLexerSkipAction.executec                 C      dS )Nr0   r   r!   r   r   r   __str__6      zLexerSkipAction.__str__	r   r   r   INSTANCEr   Lexerr2   r5   __classcell__r   r   r+   r   r(   +   s
    r(   c                       L   e Zd ZdZdef fddZdefddZdd Zd	d
 Z	dd Z
  ZS )LexerTypeActiontypec                       t  tj || _d S r   )r*   r   r   r   r=   )r   r=   r+   r   r   r   @      
zLexerTypeAction.__init__r.   c                 C   s   | j |_ d S r   )r=   r1   r   r   r   r2   D   r3   zLexerTypeAction.executec                 C      t | j| jfS r   )r    r   r=   r!   r   r   r   r"   G      zLexerTypeAction.__hash__c                 C   &   | |u rdS t |tsdS | j|jkS NTF)
isinstancer<   r=   r#   r   r   r   r%   J   
   
zLexerTypeAction.__eq__c                 C      dt | j d S )Nztype())strr=   r!   r   r   r   r5   R   r-   zLexerTypeAction.__str__r   r   r   r&   intr   r9   r2   r"   r%   r5   r:   r   r   r+   r   r<   =   s    r<   c                       r;   )LexerPushModeActionmodec                    r>   r   )r*   r   r   r   rL   r   rL   r+   r   r   r   [   r?   zLexerPushModeAction.__init__r.   c                 C   s   | | j d S r   )pushModerL   r1   r   r   r   r2   a   rA   zLexerPushModeAction.executec                 C   r@   r   r    r   rL   r!   r   r   r   r"   d   rA   zLexerPushModeAction.__hash__c                 C   rB   rC   )rD   rK   rL   r#   r   r   r   r%   g   rE   zLexerPushModeAction.__eq__c                 C   rF   )Nz	pushMode(rG   rH   rL   r!   r   r   r   r5   o   r-   zLexerPushModeAction.__str__rI   r   r   r+   r   rK   X       rK   c                       r'   )	LexerPopModeActionNc                    r)   r   )r*   r   r   r   r!   r+   r   r   r   {   r-   zLexerPopModeAction.__init__r.   c                 C   r/   r   )popModer1   r   r   r   r2      r3   zLexerPopModeAction.executec                 C   r4   )NrS   r   r!   r   r   r   r5      r6   zLexerPopModeAction.__str__r7   r   r   r+   r   rR   w   
    rR   c                       r'   )	LexerMoreActionNc                    r)   r   )r*   r   r   r   r!   r+   r   r   r      r-   zLexerMoreAction.__init__r.   c                 C   r/   r   )morer1   r   r   r   r2      r3   zLexerMoreAction.executec                 C   r4   )NrV   r   r!   r   r   r   r5      r6   zLexerMoreAction.__str__r7   r   r   r+   r   rU      rT   rU   c                       r;   )LexerModeActionrL   c                    r>   r   )r*   r   r   r   rL   rM   r+   r   r   r      r?   zLexerModeAction.__init__r.   c                 C   s   | | j  d S r   )rL   r1   r   r   r   r2      rA   zLexerModeAction.executec                 C   r@   r   rO   r!   r   r   r   r"      rA   zLexerModeAction.__hash__c                 C   rB   rC   )rD   rW   rL   r#   r   r   r   r%      rE   zLexerModeAction.__eq__c                 C   rF   )Nzmode(rG   rP   r!   r   r   r   r5      r-   zLexerModeAction.__str__rI   r   r   r+   r   rW      rQ   rW   c                       sH   e Zd ZdZdedef fddZdefddZd	d
 Zdd Z	  Z
S )LexerCustomAction)	ruleIndexactionIndexrY   rZ   c                    s$   t  tj || _|| _d| _d S NT)r*   r   r   r   rY   rZ   r   )r   rY   rZ   r+   r   r   r         
zLexerCustomAction.__init__r.   c                 C   s   | d | j| j d S r   )r   rY   rZ   r1   r   r   r   r2      s   zLexerCustomAction.executec                 C      t | j| j| jfS r   )r    r   rY   rZ   r!   r   r   r   r"         zLexerCustomAction.__hash__c                 C   2   | |u rdS t |tsdS | j|jko| j|jkS rC   )rD   rX   rY   rZ   r#   r   r   r   r%      
   
zLexerCustomAction.__eq__)r   r   r   r&   rJ   r   r9   r2   r"   r%   r:   r   r   r+   r   rX      s    
rX   c                       r;   )LexerChannelActionchannelc                    r>   r   )r*   r   r   r   rb   )r   rb   r+   r   r   r      r?   zLexerChannelAction.__init__r.   c                 C   s   | j |_d S r   )rb   _channelr1   r   r   r   r2      r3   zLexerChannelAction.executec                 C   r@   r   )r    r   rb   r!   r   r   r   r"      rA   zLexerChannelAction.__hash__c                 C   rB   rC   )rD   ra   rb   r#   r   r   r   r%      rE   zLexerChannelAction.__eq__c                 C   rF   )Nzchannel(rG   )rH   rb   r!   r   r   r   r5      r-   zLexerChannelAction.__str__rI   r   r   r+   r   ra      s    ra   c                       sH   e Zd ZdZdedef fddZdefddZd	d
 Z	dd Z
  ZS )LexerIndexedCustomAction)offsetr   re   r   c                    s$   t  |j || _|| _d| _d S r[   )r*   r   r   re   r   r   )r   re   r   r+   r   r   r     r\   z!LexerIndexedCustomAction.__init__r.   c                 C   s   | j | d S r   )r   r2   r1   r   r   r   r2     s   z LexerIndexedCustomAction.executec                 C   r]   r   )r    r   re   r   r!   r   r   r   r"   !  r^   z!LexerIndexedCustomAction.__hash__c                 C   r_   rC   )rD   rd   re   r   r#   r   r   r   r%   $  r`   zLexerIndexedCustomAction.__eq__)r   r   r   r&   rJ   r   r   r9   r2   r"   r%   r:   r   r   r+   r   rd     s    rd   )enumr   r9   r   objectr   r(   r8   r<   rK   rR   rU   rW   rX   ra   rd   r   r   r   r   <module>   s    ##$