HEX
Server: Apache
System: Linux srv1.prosuiteplus.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: prosuiteplus (1001)
PHP: 8.3.20
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/pygments/lexers/__pycache__/dylan.cpython-38.pyc
U

G�
\�(�@s�dZddlZddlmZmZmZmZmZddlm	Z	m
Z
mZmZm
Z
mZmZmZmZmZdddgZGdd�de�ZGd	d�de�ZGd
d�de�ZdS)z�
    pygments.lexers.dylan
    ~~~~~~~~~~~~~~~~~~~~~

    Lexers for the Dylan language.

    :copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�N)�Lexer�
RegexLexer�bygroups�
do_insertions�default)
�Text�Comment�Operator�Keyword�Name�String�Number�Punctuation�Generic�Literal�
DylanLexer�DylanConsoleLexer�
DylanLidLexerc@s�eZdZdZdZdgZdddgZdgZej	Z
ed�Zed	�Z
ed
�Zed�ZdZd
d�Zdefdejfdeejeee�fed�gdefdejfdejdfdedfdejfdejfdejfdej fdej!fdej"fdedeej#eej$�fdeej#eej$�fd eej#fd!e%fd"efd#e&fd$ej'd%fd&e(fed'e(fd(ed)ej)fd*ed*ej*j+fd+eej,feefgd,ejfdejd-fd.ejd/fd0ejfgdej'd/fd1ej'fgded/fd2ej-fd3efd4efd5efgd6�Z.d7S)8rz[
    For the `Dylan <http://www.opendylan.org/>`_ language.

    .. versionadded:: 0.7
    ZDylanZdylanz*.dylanz*.dylz*.intrztext/x-dylan)%�subclassZabstract�blockZconcreteZconstant�classz
compiler-openzcompiler-sidewaysZdomainZdynamicz
each-subclassZ	exceptionZexcludeZfunctionZgenericZhandlerZ	inheritedZinlinezinline-only�instanceZ	interface�import�keywordZlibraryZmacro�method�module�openZprimaryZrequiredZsealedZsideways�	singletonZslot�threadZvariableZvirtual)ZaboveZ
afterwardsZbeginZbelowZbyZcaseZcleanupZcreateZdefine�elseZelseif�endZexport�finally�for�from�if�inZletZlocalZ	otherwise�renameZselect�signalZthen�toZunlessZuntilZuseZwhen�while)�~�+�-�*�|�^�=z==z~=z~==�<z<=�>z>=�&r.)��abort�abs�addzadd!z
add-methodzadd-newzadd-new!zall-superclasses�alwayszany?zapplicable-method?ZapplyZarefzaref-setter�aszas-lowercasez
as-lowercase!zas-uppercasez
as-uppercase!Zashzbackward-iteration-protocol�breakZceilingzceiling/Zcerrorz
check-typeZchoosez	choose-byZ
complementZcomposeZconcatenatezconcatenate-aszcondition-format-argumentszcondition-format-stringZconjoinz
copy-sequenceZcurryzdefault-handlerZ	dimensionZ
dimensionszdirect-subclasseszdirect-superclassesZdisjoinZdozdo-handlers�elementzelement-setterzempty?�errorzeven?zevery?zfalse-orzfill!zfind-keyzfind-method�firstzfirst-setterZfloorzfloor/zforward-iteration-protocolzfunction-argumentszfunction-return-valueszfunction-specializersZgcdz#generic-function-mandatory-keywordszgeneric-function-methods�headzhead-setterZidentityZ
initializez	instance?z	integral?�intersectionzkey-sequencezkey-testZlastzlast-setterZlcmZlimited�listZlogandzlogbit?ZlogiorZlognotZlogxorZmake�mapzmap-aszmap-into�maxzmember?zmerge-hash-codes�minZmodulo�negativez	negative?znext-methodzobject-classzobject-hashzodd?zone-ofZpair�popzpop-lastz	positive?�pushz	push-last�rangeZrankZrcurry�reduceZreduce1Z	remainder�removezremove!zremove-duplicateszremove-duplicates!zremove-key!z
remove-methodzreplace-elements!zreplace-subsequence!z
restart-queryzreturn-allowed?zreturn-descriptionzreturn-query�reversezreverse!�roundzround/zrow-major-index�secondz
second-setterzshallow-copyr'r�sizezsize-setterzslot-initialized?�sortzsort!zsorted-applicable-methodszsubsequence-positionzsubtype?ztable-protocol�tailztail-setterZthirdzthird-setter�truncatez	truncate/ztype-error-expected-typeztype-error-valuez
type-for-copyz
type-union�union�valuesZvectorzzero?z\\?[\w!&*<>|^$%@\-+~?/=]+ccs�t�||�D]�\}}}|tkr�|��}||jkr@|tj|fVq||jkrX|t|fVq||jkrr|tj|fVq||j	kr�|t
|fVq|||fVqdS)N)r�get_tokens_unprocessedr�lower�builtins�Builtin�keywordsr
�	functions�	operatorsr	)�self�text�index�token�valueZlowercase_value�r^�7/usr/lib/python3/dist-packages/pygments/lexers/dylan.pyrR]s 



z!DylanLexer.get_tokens_unprocessed�\s+�//.*?\nz)([a-z0-9-]+)(:)([ \t]*)(.*(?:\n[ \t].+)*)�codez/\*�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#"rz#[a-z0-9-]+�:r1r2z\*z\$z[^*/]z#pushz\*/z#popz[*/]z[^\\"]+z,\\([\\abfnrtv"\']|x[a-f0-9]{2,4}|[0-7]{1,3})z	[^\\"\n]+z\\\nz\\)�rootrbrcrreN)/�__name__�
__module__�__qualname__�__doc__�name�aliases�	filenames�	mimetypes�re�
IGNORECASE�flags�setrTrVrXrWZ
valid_namerRrr�Singlerr�	Attributer	rrZ	MultilineZCharr
ZBinZOctZFloatZIntegerZHexZTagrUrrZSymbolr
ZClassZVariableZGlobalZConstantZEscape�tokensr^r^r^r_rs|
	$��

��

�E

�
���c	@sXeZdZdZdZddgZddgZdgZej	Z
dd	efd
ej
fdeejeee�fgiZdS)
rzZ
    For Dylan LID (Library Interchange Definition) files.

    .. versionadded:: 1.6
    ZDylanLIDz	dylan-lidZlidz*.lidz*.hdpztext/x-dylan-lidrgr`raz"(.*?)(:)([ \t]*)(.*(?:\n[ \t].+)*)N)rhrirjrkrlrmrnrorprqrrrrrtrrrur	rrvr^r^r^r_r�s���c@sDeZdZdZdZddgZdgZdgZe�	d�Z
e�	d�Zd	d
�ZdS)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.*?
z\?| c
	cs�tf|j�}d}g}|j�|�D]�}|��}|j�|�}|dk	r~|��}|�t	|�dt
j|d|�fgf�|||d�7}q |r�t||�
|��D]
}	|	Vq�d}g}|��t
j|fVq |r�t||�
|��D]
}	|	Vq�dS)N�r)rZoptions�_line_re�finditer�group�
_prompt_re�matchr �append�lenrZPromptrrR�startZOutput)
rYrZZdylexerZcurcodeZ
insertionsr|�line�mr �itemr^r^r_rR	s2
���z(DylanConsoleLexer.get_tokens_unprocessedN)
rhrirjrkrlrmrnrorp�compilerxr{rRr^r^r^r_r�s

)rkrpZpygments.lexerrrrrrZpygments.tokenrrr	r
rrr
rrr�__all__rrrr^r^r^r_�<module>s
0
A