HEX
Server: Apache/2.4.67 (Debian)
System: Linux vps-b2547eb4 6.1.0-41-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.158-1 (2025-11-09) x86_64
User: root (0)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/pygments/lexers/__pycache__/dylan.cpython-311.pyc
�

�E�c�(���dZddlZddlmZmZmZmZmZmZddl	m
Z
mZmZm
Z
mZmZmZmZmZmZgd�ZGd�de��ZGd�d	e��ZGd
�de��ZdS)z�
    pygments.lexers.dylan
    ~~~~~~~~~~~~~~~~~~~~~

    Lexers for the Dylan language.

    :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�N)�Lexer�
RegexLexer�bygroups�
do_insertions�default�line_re)
�Comment�Operator�Keyword�Name�String�Number�Punctuation�Generic�Literal�
Whitespace)�
DylanLexer�DylanConsoleLexer�
DylanLidLexerc��eZdZdZdZdZdgZgd�ZdgZe	j
Zhd�Zhd�Z
hd	�Zhd
�ZdZd�Zd
efdejfdeejeee��fed��gd
efdeeje��fdejdfdedfdejfdejfdejfdej fdej!fdej"fdezdzeej#eej$��fdeej#eej$��fdezej#fd e%fd!efd"e&fd#ej'd$fd%e(fed&ze(fd'ezd(zej)fd)ezd)zej*j+fd*ezej,feefgd+ejfdejd,fd-ejd.fd/ejfgdej'd.fd0ej'fgded.fd1ej-fd2efd3efd4efgd5�Z.d6S)7rz<
    For the Dylan language.

    .. versionadded:: 0.7
    �Dylanzhttp://www.opendylan.org/�dylan)z*.dylanz*.dylz*.intrztext/x-dylan>%�inline-only�
compiler-open�
each-subclass�compiler-sideways�open�slot�block�class�macro�domain�import�inline�method�module�sealed�thread�dynamic�exclude�generic�handler�keyword�library�primary�virtual�abstract�concrete�constant�function�instance�required�sideways�subclass�variable�	exception�	inherited�	interface�	singleton>�by�if�in�to�end�for�let�use�case�else�from�then�when�above�begin�below�local�until�while�create�define�elseif�export�rename�select�signal�unless�cleanup�finally�	otherwise�
afterwards>�<=�==�>=�~=�~==�*�&�+�-�<�=�>�^�|�~>��add!�any?�odd?�even?�fill!�sort!�zero?�empty?�every?�floor/�map-as�one-of�round/�add-new�logbit?�member?�remove!�add-new!�ceiling/�false-or�find-key�key-test�map-into�pop-last�reverse!�subtype?�	choose-by�	instance?�	integral?�	negative?�	positive?�	push-last�	truncate/�
add-method�
check-type�
type-union�aref-setter�do-handlers�find-method�head-setter�last-setter�next-method�object-hash�remove-key!�size-setter�tail-setter�as-lowercase�as-uppercase�first-setter�key-sequence�object-class�return-query�shallow-copy�third-setter�
as-lowercase!�
as-uppercase!�
copy-sequence�
remove-method�
restart-query�
second-setter�
type-for-copy�concatenate-as�element-setter�table-protocol�default-handler�return-allowed?�row-major-index�all-superclasses�merge-hash-codes�type-error-value�direct-subclasses�remove-duplicates�replace-elements!�slot-initialized?�applicable-method?�function-arguments�remove-duplicates!�return-description�direct-superclasses�replace-subsequence!�subsequence-position�function-specializers�function-return-values�condition-format-string�generic-function-methods�type-error-expected-type�sorted-applicable-methods�condition-format-arguments�forward-iteration-protocol�backward-iteration-protocol�#generic-function-mandatory-keywords�as�do�abs�add�ash�gcd�lcm�map�max�min�pop�aref�head�last�list�make�pair�push�rank�size�sort�tail�abort�apply�break�curry�error�first�floor�range�round�third�union�always�cerror�choose�logand�logior�lognot�logxor�modulo�rcurry�reduce�remove�secondrW�values�vector�ceiling�compose�conjoin�disjoin�element�limited�reduce1�reverse�identity�negative�truncate�	dimension�	remainderr=�
complement�
dimensions�
initialize�concatenate�intersectionz\\?[\w!&*<>|^$%@\-+~?/=]+c#�NK�tj||��D]�\}}}|turv|���}||jvr|tj|fV��>||jvr
|t|fV��T||jvr|tj|fV��o||j	vr
|t|fV���|||fV���dS)N)r�get_tokens_unprocessedr�lower�builtins�Builtin�keywordsr�	functions�	operatorsr
)�self�text�index�token�value�lowercase_values      �7/usr/lib/python3/dist-packages/pygments/lexers/dylan.pyr	z!DylanLexer.get_tokens_unprocessed^s�����#-�#D�T�4�#P�#P�	&�	&��E�5�%���}�}�"'�+�+�-�-��"�d�m�3�3����u�4�4�4�4��"�d�m�3�3���%�/�/�/�/��"�d�n�4�4����u�4�4�4�4��"�d�n�4�4���5�0�0�0�0�����%�%�%�%�%�	&�	&��\s+z//.*?\nz)([a-z0-9-]+)(:)([ \t]*)(.*(?:\n[ \t].+)*)�code�(//.*?)(\n)z/\*�comment�"�stringz/'(\\.|\\[0-7]{1,3}|\\x[a-f0-9]{1,2}|[^\\\'\n])'z#b[01]+z#o[0-7]+z0[-+]?(\d*\.\d+(e[-+]?\d+)?|\d+(\.\d*)?e[-+]?\d+)z[-+]?\d+z#x[0-9a-f]+z(\?z6)(:)(token|name|variable|expression|body|case-body|\*)z9(\?)(:)(token|name|variable|expression|body|case-body|\*)z\?z,(=>|::|#\(|#\[|##|\?\?|\?=|\?|[(){}\[\],.;])z:=z#[tf]z#"r-z#[a-z0-9-]+�:rfrhz\*z\$z[^*/]+z#pushz\*/z#popz[*/]z[^\\"]+z,\\([\\abfnrtv"\']|x[a-f0-9]{2,4}|[0-7]{1,3})z	[^\\"\n]+z\\\nz\\)�rootrrr-rN)/�__name__�
__module__�__qualname__�__doc__�name�url�aliases�	filenames�	mimetypes�re�
IGNORECASE�flagsrr
rr�
valid_namer	rr	�Singlerr�	Attributer
r
r�	Multiline�Charr�Bin�Oct�Float�Integer�Hex�Tagrrr�Symbolr�Class�Variable�Global�Constant�Escape�tokens�rrrrs����������D�
%�C��i�G�.�.�.�I�� �I��M�E�>�>�>�H����H����I�"�"�"�I�H1�J�&�&�&�*�Z� ����(�:������:�v�F�F�
H�
�G�F�O�O�
��Z� ��X�X�g�n�j�A�A�B��W�&�	�2��6�8�$�
?���M����$��&�*�%�A�&�,�O��&�.�)��V�Z�(��j�
 �$C�C�����8�T�\�:�:�
<�J�����8�T�\�:�:�
<�
�Z�
���*�=�k�J��H���w���F�M�9�-��W�%��#�
�w�'��:�
��
#�T�Z�0��Z�
�%�
'���)=�>��Z�
���/����EC
�J��)�*�
�W�&��0�
�W�&��/�
�g�'�(�	
��6�=�&�)�
���'�
�
�6�6�"�
<�f�m�L�
�6�"�
�f��
�F�O�
�yc�c�F�F�Frrc
��eZdZdZdZddgZddgZdgZej	Z
dd	efd
ee
je��fdeejeee��fgiZdS)
rzZ
    For Dylan LID (Library Interchange Definition) files.

    .. versionadded:: 1.6
    �DylanLIDz	dylan-lid�lidz*.lidz*.hdpztext/x-dylan-lidrrrz"(.*?)(:)([ \t]*)(.*(?:\n[ \t].+)*)N)r r!r"r#r$r&r'r(r)r*r+rrr	r-rr.r
r
r=r>rrrr�s����������D��E�"�G��'�"�I�#�$�I��M�E�	�
�Z� ��X�X�g�n�j�A�A�B�3�
�X�d�n�h�
�F�
C�
C�
E�

��F�F�Frrc�P�eZdZdZdZddgZdgZdgZej	d��Z
d�Zd	S)
rz�
    For Dylan interactive console output like:

    .. sourcecode:: dylan-console

        ? let a = 1;
        => 1
        ? a
        => 1

    This is based on a copy of the RubyConsoleLexer.

    .. versionadded:: 1.6
    z
Dylan sessionz
dylan-consolez
dylan-replz*.dylan-consoleztext/x-dylan-consolez\?| c	#�xK�tdi|j��}d}g}tj|��D]�}|���}|j�|��}|�\|���}|�t|��dtj|d|�fgf��|||d�z
}��|r-t||�
|����Ed{V��d}g}|���tj|fV���|r+t||�
|����Ed{V��dSdS)N�rr>)r�optionsr�finditer�group�
_prompt_re�matchrB�append�lenr�Promptrr	�start�Output)	rr�dylexer�curcode�
insertionsrI�line�mrBs	         rr	z(DylanConsoleLexer.get_tokens_unprocessed	s������,�,�t�|�,�,�����
��%�d�+�+�	:�	:�E��;�;�=�=�D���%�%�d�+�+�A��}��e�e�g�g���!�!�3�w�<�<�%&����T�c�T�
�$C�#D�#F�G�G�G��4����:�%����$�,�Z�-4�-K�-K�G�-T�-T� V� V�V�V�V�V�V�V�V� �G�!#�J��k�k�m�m�W�^�T�9�9�9�9�9��	N�$�Z�%,�%C�%C�G�%L�%L�N�N�
N�
N�
N�
N�
N�
N�
N�
N�
N�	N�	NrN)r r!r"r#r$r&r'r(r)�compilerHr	r>rrrr�sd������
�
��D���-�G�"�#�I�'�(�I����G�$�$�J�N�N�N�N�Nrr)r#r)�pygments.lexerrrrrrr�pygments.tokenr	r
rrr
rrrrr�__all__rrrr>rr�<module>rXs�����
�	�	�	�����������������6�6�6�6�6�6�6�6�6�6�6�6�6�6�6�6�6�6�6�6�6�6�6�6�?�
>�
>��~�~�~�~�~��~�~�~�B�����J����:,N�,N�,N�,N�,N��,N�,N�,N�,N�,Nr