o
a4 @ sf d Z ddlmZmZmZmZmZ ddlmZm Z m
Z
mZmZm
Z
mZmZmZ dgZG dd deZdS )z
pygments.lexers.ampl
~~~~~~~~~~~~~~~~~~~~
Lexers for the AMPL language.
:copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
)
RegexLexerbygroupsusingthiswords) TextCommentOperatorKeywordNameStringNumberPunctuation
Whitespace AmplLexerc @ s e Zd ZdZdZdgZdgZddefdefde j
fd e jfed
dde
jfd
e
jfdejfdej
fdefdeejee
jfdee
jeejfdee
jeeeejeeeej fdee
jeeeeejfeddddejfdefeddde
jfdejfdejfdejfdefgiZdS )r zP
For `AMPL `_ source code.
.. versionadded:: 2.2
Amplamplz*.runrootz\nz\s+z#.*?\nz/[*](.|\n)*?[*]/);callcdclosecommandsdatadeletedisplaydropendenvironexitexpandincludeloadmodel objectiveoptionproblempurgequit redeclarereloadremoveresetrestoreshellshow solexpandsolutionsolveupdateunloadxrefcoeffcoefcoverobjintervaldefaultfromtoto_comenet_innet_outdimen dimensioncheckcomplementswritefunctionpipeformatifthenelseinwhilerepeatforz\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+))<absacosacoshaliasasinasinhatanatan2atanhceilctimecosexpfloorloglog10maxmin precisionroundsinsinhsqrttantanhtimetruncBetaCauchyExponentialGammaIrand224NormalNormal01PoissonUniform Uniform01numnum0icharcharlengthsubstrsprintfmatchsubgsubprintprintfnextnextwprevprevwfirstlastordord0cardarity
indexarity)prefixrO z>(\+|\-|\*|/|\*\*|=|<=|>=|==|\||\^|<|>|\!|\.\.|:=|\&|\!=|<<|>>))orexistsforallandrK notwithinuniondiff
differencesymdiffinter intersectintersectioncrosssetofbylesssumprodproductdivmodz*(\d+\.(?!\.)\d*|\.(?!.)\d+)([eE][+-]?\d+)?z\d+([eE][+-]?\d+)?z
[+-]?Infinityz(\w+|(\.(?!\.)))N)__name__
__module____qualname____doc__namealiases filenamesr r r Single Multiliner r
ReservedTyper Doubler r r VariableDeclarationr r Builtinr r
FloatIntegertokens r r 6/usr/lib/python3/dist-packages/pygments/lexers/ampl.pyr sl
N)r pygments.lexerr r r r r pygments.tokenr r r r
r r r
r r __all__r r r r r s
,