
    E#i?                     B    S r SSKr " S S\5      rS r " S S\5      rg)z?General tools which don't depend on other parts of Parsimonious    Nc                       \ rS rSrSrS rSrg)
StrAndRepr   z;Mix-in which gives the class the same __repr__ and __str__.c                 "    U R                  5       $ N)__str__selfs    e/home/james-whalen/.local/lib/python3.13/site-packages/ccxt/static_dependencies/parsimonious/utils.py__repr__StrAndRepr.__repr__	   s    ||~     N)__name__
__module____qualname____firstlineno____doc__r   __static_attributes__r   r   r   r   r      s
    Er   r   c                 .    [         R                  " U 5      $ )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                   0    \ rS rSrSrS/rS rS rS rSr	g)	Token   a3  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                     Xl         g r   r   )r
   r   s     r   __init__Token.__init__!   s    	r   c                 $    SU R                   < S3$ )Nz<Token "z">r    r	   s    r   r   Token.__str__$   s    "&))--r   c                 4    U R                   UR                   :H  $ r   r    )r
   others     r   __eq__Token.__eq__'   s    yyEJJ&&r   r    N)
r   r   r   r   r   	__slots__r!   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   