
    ":h?                     B    d Z ddlZ G d de      Zd Z G d de      Zy)z?General tools which don't depend on other parts of Parsimonious    Nc                       e Zd ZdZd Zy)
StrAndReprz;Mix-in which gives the class the same __repr__ and __str__.c                 "    | j                         S N)__str__selfs    e/var/www/html/turnos/venv/lib/python3.12/site-packages/ccxt/static_dependencies/parsimonious/utils.py__repr__zStrAndRepr.__repr__	   s    ||~    N)__name__
__module____qualname____doc__r    r   r
   r   r      s
    Er   r   c                 ,    t        j                  |       S )zPiggyback on Python's string support so we can have backslash escaping
    and niceties like 
, 	, etc. string.decode('string_escape') would have
    been a lower-level possibility.

    )astliteral_eval)strings    r
   evaluate_stringr      s     F##r   c                   (    e Zd ZdZdgZd Zd Zd Zy)TokenaG  A class to represent tokens, for use with TokenGrammars

    You will likely want to subclass this to hold additional information, like
    the characters that you lexed to create this token. Alternately, feel free
    to create your own class from scratch. The only contract is that tokens
    must have a ``type`` attr.

    typec                     || _         y r   r   )r	   r   s     r
   __init__zToken.__init__!   s	    	r   c                 "    d| j                   dS )Nz<Token "z">r   r   s    r
   r   zToken.__str__$   s    "&))--r   c                 4    | j                   |j                   k(  S r   r   )r	   others     r
   __eq__zToken.__eq__'   s    yyEJJ&&r   N)r   r   r   r   	__slots__r   r   r    r   r   r
   r   r      s     I.'r   r   )r   r   objectr   r   r   r   r   r
   <module>r#      s(    E 
 $'J 'r   