U
    lufQ                     @   sf   d Z ddlmZmZmZmZmZ ddlmZm	Z	m
Z
mZmZmZmZmZmZ dgZG dd deZdS )z
    pygments.lexers.ampl
    ~~~~~~~~~~~~~~~~~~~~

    Lexers for the AMPL language.

    :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
    )
RegexLexerbygroupsusingthiswords)	TextCommentOperatorKeywordNameStringNumberPunctuation
Whitespace	AmplLexerc                   @   s  e Zd ZdZdZdZdgZdgZddefde	fd	e
jfd
e
jfedddejfdejfdejfdejfdefdeejeejfdeeje	ejfdeeje	ee	eje	ee	ej	fdeeje	eee	ejfeddddejfdefedddejfdejfdejfdejfdefgiZdS )r   z:
    For AMPL source code.

    .. versionadded:: 2.2
    ZAmplzhttp://ampl.com/Zamplz*.runrootz\nz\s+z#.*?\nz/[*](.|\n)*?[*]/);callZcdclosecommandsdatadeleteZdisplayZdropendenvironexitexpandincludeloadmodelZ	objectiveoptionZproblempurgequitZ	redeclarereloadremoveresetrestoreshellshowZ	solexpandZsolutionZsolveupdateZunloadZxrefZcoeffZcoefZcoverobjintervaldefaultfromtoZto_comeZnet_inZnet_outZdimenZ	dimensioncheckZcomplementswritefunctionpipeformatifZthenelseinwhilerepeatforz\b)suffixzF(integer|binary|symbolic|ordered|circular|reversed|INOUT|IN|OUT|LOCAL)z\".*?\"z\'.*?\'z[()\[\]{},;:]+zu\b(\w+)(\.)(astatus|init0|init|lb0|lb1|lb2|lb|lrc|lslack|rc|relax|slack|sstatus|status|ub0|ub1|ub2|ub|urc|uslack|val)zr(set|param|var|arc|minimize|maximize|subject to|s\.t\.|subj to|node|table|suffix|read table|write table)(\s+)(\w+)z0(param)(\s*)(:)(\s*)(\w+)(\s*)(:)(\s*)((\w|\s)+)z+(let|fix|unfix)(\s*)((?:\{.*\})?)(\s*)(\w+))<absacosacoshaliasasinasinhatanatan2atanhceilctimecosexpfloorloglog10maxminZ	precisionroundsinsinhsqrttantanhtimetruncBetaZCauchyZExponentialGammaZIrand224ZNormalZNormal01ZPoissonZUniformZ	Uniform01numZnum0ZicharcharlengthsubstrZsprintfmatchsubZgsubprintZprintfnextZnextwprevZprevwfirstlastordZord0ZcardarityZ
indexarity)prefixr8   z>(\+|\-|\*|/|\*\*|=|<=|>=|==|\||\^|<|>|\!|\.\.|:=|\&|\!=|<<|>>))orexistsforallandr4   notZwithinunionZdiff
differenceZsymdiffZinterZ	intersectintersectionZcrossZsetofZbyZlesssumprodproductdivmodz*(\d+\.(?!\.)\d*|\.(?!.)\d+)([eE][+-]?\d+)?z\d+([eE][+-]?\d+)?z[+-]?Infinityz(\w+|(\.(?!\.)))N) __name__
__module____qualname____doc__nameurlaliases	filenamesr   r   r   SingleZ	Multiliner   r
   ZReservedTyper   Doubler   r   r   VariableZDeclarationr   r   ZBuiltinr	   r   ZFloatZIntegertokens r}   r}   8/tmp/pip-unpacked-wheel-7eq1ciah/pygments/lexers/ampl.pyr      sz   

    	 	
N)rs   Zpygments.lexerr   r   r   r   r   Zpygments.tokenr   r   r	   r
   r   r   r   r   r   __all__r   r}   r}   r}   r~   <module>   s   
,