Your IP : 216.73.216.213


Current Path : /opt/alt/python37/lib/python3.7/site-packages/pygments/lexers/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib/python3.7/site-packages/pygments/lexers/__pycache__/dylan.cpython-37.pyc

B

Ƚ�\�(�@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-2019 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-sideways�domainZdynamicz
each-subclass�	exception�exclude�functionZgeneric�handlerZ	inherited�inlinezinline-only�instanceZ	interface�import�keywordZlibrary�macro�method�module�openZprimary�requiredZsealedZsideways�	singletonZslot�thread�variableZvirtual)ZaboveZ
afterwardsZbeginZbelowZbyZcase�cleanup�createZdefine�elseZelseif�endZexport�finally�for�from�if�inZlet�localZ	otherwise�rename�select�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-type�choosez	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-setter�floorzfloor/zforward-iteration-protocolzfunction-argumentszfunction-return-valueszfunction-specializers�gcdz#generic-function-mandatory-keywordszgeneric-function-methods�headzhead-setterZidentityZ
initializez	instance?z	integral?�intersectionzkey-sequencezkey-test�lastzlast-setterZlcmZlimited�listZlogandzlogbit?ZlogiorZlognotZlogxorZmake�mapzmap-aszmap-into�maxzmember?zmerge-hash-codes�minZmodulo�negativez	negative?znext-methodzobject-classzobject-hashzodd?zone-of�pair�popzpop-lastz	positive?�pushz	push-last�rangeZrankZrcurry�reduceZreduce1�	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-copyr4r%�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�x�t�||�D]�\}}}|tkr�|��}||jkrB|tj|fVq||jkrZ|t|fVq||jkrt|tj|fVq||j	kr�|t
|fVq|||fVqWdS)N)r�get_tokens_unprocessedr�lower�builtins�Builtin�keywordsr
�	functions�	operatorsr	)�self�text�index�token�valueZlowercase_value�rq�F/opt/alt/python37/lib/python3.7/site-packages/pygments/lexers/dylan.pyre]s 



z!DylanLexer.get_tokens_unprocessedz\s+z//.*?\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-]+�:r>r?z\*z\$z[^*/]z#pushz\*/z#popz[*/]z[^\\"]+z,\\([\\abfnrtv"\']|x[a-f0-9]{2,4}|[0-7]{1,3})z	[^\\"\n]+z\\\nz\\)�rootrsrtrrvN)/�__name__�
__module__�__qualname__�__doc__�name�aliases�	filenames�	mimetypes�re�
IGNORECASE�flags�setrgrirkrjZ
valid_namererr�Singlerr�	Attributer	rrZ	MultilineZCharr
�Bin�OctZFloatZIntegerZHexZTagrhrrZSymbolr
ZClass�VariableZGlobalZConstantZEscape�tokensrqrqrqrrrsr
#








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-lidrxz\s+z//.*?\nz"(.*?)(:)([ \t]*)(.*(?:\n[ \t].+)*)N)ryrzr{r|r}r~rr�r�r�r�rrr�rrr�r	rr�rqrqrqrrr�sc@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}x�|j�|�D]�}|��}|j�|�}|dk	r�|��}|�t	|�dt
j|d|�fgf�|||d�7}q"|r�xt||�
|��D]
}	|	Vq�Wd}g}|��t
j|fVq"W|r�xt||�
|��D]
}	|	Vq�WdS)N�r)r�options�_line_re�finditer�group�
_prompt_re�matchr+�append�lenrZPromptrre�startZOutput)
rlrmZdylexerZcurcodeZ
insertionsr��line�mr+�itemrqrqrrre	s,

z(DylanConsoleLexer.get_tokens_unprocessedN)
ryrzr{r|r}r~rr�r��compiler�r�rerqrqrqrrr�s

)r|r�Zpygments.lexerrrrrrZpygments.tokenrrr	r
rrr
rrr�__all__rrrrqrqrqrr�<module>
s0
A