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__/modeling.cpython-38.pyc
U

`a�[!2�@s�dZddlZddlmZmZmZmZmZddlm	Z	m
Z
mZmZm
Z
mZmZmZddlmZddlmZddd	d
gZGdd�de�ZGdd�de�ZGd
d	�d	e�ZGdd
�d
e�ZdS)z�
    pygments.lexers.modeling
    ~~~~~~~~~~~~~~~~~~~~~~~~

    Lexers for modeling languages.

    :copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�N)�
RegexLexer�include�bygroups�using�default)�Text�Comment�Operator�Keyword�Name�String�Number�Punctuation)�	HtmlLexer)�_stan_builtins�
ModelicaLexer�	BugsLexer�	JagsLexer�	StanLexerc@s$eZdZdZdZdgZdgZdgZej	ej
BZdZde
fdejfd	ejfged
�dejdfd
efdefdejfdejfdejfdejfdejfdejdfdejfdejdfeefg
ed
�dejfdejdfeejdfe d�ged
�eej!dfe d�gdejdfdej"fde#e$�fdejfgd�Z%d S)!rz\
    For `Modelica <http://www.modelica.org/>`_ source code.

    .. versionadded:: 1.1
    ZModelicaZmodelicaz*.moztext/x-modelicaz"(?:'(?:[^\\']|\\.)+'|[a-zA-Z_]\w*)u[\s]+z//[^\n]*\n?z	/\*.*?\*/�
whitespace�"�stringz
[()\[\]{},;]+z\.?[*^/+-]|\.|<>|[<>:=]=?z\d+(\.?\d*[eE][-+]?\d+|\.\d*)z\d+al(abs|acos|actualStream|array|asin|assert|AssertionLevel|atan|atan2|backSample|Boolean|cardinality|cat|ceil|change|Clock|Connections|cos|cosh|cross|delay|diagonal|div|edge|exp|ExternalObject|fill|floor|getInstanceName|hold|homotopy|identity|inStream|integer|Integer|interval|inverse|isPresent|linspace|log|log10|matrix|max|min|mod|ndims|noClock|noEvent|ones|outerProduct|pre|previous|product|Real|reinit|rem|rooted|sample|scalar|semiLinear|shiftSample|sign|sin|sinh|size|skew|smooth|spatialDistribution|sqrt|StateSelect|String|subSample|sum|superSample|symmetric|tan|tanh|terminal|terminate|time|transpose|vector|zeros)\baX(algorithm|annotation|break|connect|constant|constrainedby|der|discrete|each|else|elseif|elsewhen|encapsulated|enumeration|equation|exit|expandable|extends|external|final|flow|for|if|import|impure|in|initial|inner|input|loop|nondiscrete|outer|output|parameter|partial|protected|public|pure|redeclare|replaceable|return|stream|then|when|while)\bz(and|not|or)\bzI(block|class|connector|end|function|model|operator|package|record|type)\b�classz(false|true)\bzwithin\b�package-prefixz(function|record)\bz(if|for|when|while)\bz#popz\\[\'"?\\abfnrtv]z6(?i)<\s*html\s*>([^\\"]|\\.)+?(<\s*/\s*html\s*>|(?="))z
<|\\?[^"\\<]+)r�rootrrrN)&�__name__�
__module__�__qualname__�__doc__�name�aliases�	filenamesZ	mimetypes�re�DOTALL�	MULTILINE�flags�_namerr�Single�	Multilinerr�Doublerr	r
�Float�Integerr�Builtinr
�ReservedZWordZConstantZClassr�	NamespaceZEscaperr�tokens�r0r0�:/usr/lib/python3/dist-packages/pygments/lexers/modeling.pyrsd�

���
�!

�
�
���c@s�eZdZdZdZdddgZdgZdZdZd	e	fgd
e
jfged�ed�d
e
eje	e�fdejfdd�ee�ejfdefdefdefdefdefdefgd�Zdd�ZdS)rzv
    Pygments Lexer for `OpenBugs <http://www.openbugs.net/>`_ and WinBugs
    models.

    .. versionadded:: 1.6
    ZBUGSZbugsZwinbugsZopenbugs�*.bug)>�abs�arccos�arccosh�arcsin�arcsinh�arctan�arctanh�cloglog�cos�coshZ
cumulativeZcutZdensityZdeviance�equals�exprZgammap�ilogit�icloglogZintegral�log�logfact�loggam�logit�max�min�phizpost.p.value�powz
prior.p.value�probitzreplicate.postzreplicate.prior�round�sin�sinhZsolution�sqrt�step�tan�tanh�trunc�inprod�
interp.lin�inverse�logdet�meanz
eigen.valsZode�prodzp.valueM�rankZrankedzreplicate.postM�sd�sort�sum�D�I�F�T�C)�dbern�dbin�dcatZdnegbinZdpois�dhyperZdbetaZdchisqr�ddexp�dexpZdflatZdgammaZdgev�dfZdggammaZdgparZdloglikZdlnormZdlogisZdnormZdpar�dt�dunifZdweib�dmulti�ddirch�dmnorm�dmt�dwish�\s+�#.*$�commentsrz(model)(\s+)(\{)�(for|in)(?![\w.])�
(%s)(?=\s*\()�|z[A-Za-z][\w.]*�&[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?�\[|\]|\(|\)|:|,|;�<-|~z	\+|-|\*|/�[{}]�rrqrcCst�d|tj�rdSdSdS)Nz
^\s*model\s*{gffffff�?��r"�search�M��textr0r0r1�analyse_text�szBugsLexer.analyse_textN)rrrrrr r!�
_FUNCTIONS�_DISTRIBUTIONSrrr'rrr
r.rr-�joinrr,r
r	r/r�r0r0r0r1rcs<
�������%c@s�eZdZdZdZdgZddgZdZedd�d	D��Z	d
Z
defgdefgd
e
jfde
jfged�ed�deejee�fdejfdejfdd�ee	e
�ejfed�defdefdefdefdefgd�Zdd�ZdS) rz=
    Pygments Lexer for JAGS.

    .. versionadded:: 1.6
    ZJAGSZjagsz*.jagr2)2r3r4r5r6r7r8r9r;r<r:r=Zexpr@Zifelser?rArBrCrDrGrHrIrJrKrLrMrNrOrPrQrRrSrUrErVrFrWr[rYrTrXrZ�tZacosZacoshZasinZasinhZatanr_r]ccs|]}d|VqdS)z[dpq]%sNr0)�.0�xr0r0r1�	<genexpr>�szJagsLexer.<genexpr>)ZbernZbetaZdchiqsqrrerfrgZgammaz	gen.gammaZlogisZlnormZnegbinZnchisqrZnormZparZpoisZweib)rhriZdbetabinrarbrcrdrkrlrnrmrjZdbinomZdchisqZdnbinomZdweibullZddirichroz[a-zA-Z][\w.]*\b�
(?s)/\*.*?\*/rprqrz(model|data)(\s+)(\{)zvar(?![\w.])rrrsrt�namesrurvrwz&\+|-|\*|\/|\|\|[&]{2}|[<>=]=?|\^|%.*?%rx)rr�rqrcCsFt�d|tj�r>t�d|tj�r$dSt�d|tj�r8dSdSndSdS)Nz^\s*model\s*\{z
^\s*data\s*\{g�������?z^\s*varg333333�?rr{r~r0r0r1r�szJagsLexer.analyse_textN)rrrrrr r!r��tupler�Z_OTHER_DISTRIBUTIONSrrrr(r'rrr
r.rZDeclarationr-r�r,r
r	r/r�r0r0r0r1r�sN����������+c@seZdZdZdZdgZdgZdefgdej	fdej
fgdefed	�ed
�dd�
d
�eejee�fdd�
ej�efdefdd�
ej�ejfdefdd�
ejej�ejfdejjfdd�
ej�ejfdejfdefdejfdejfdej fde!fde!fdefgd�Z"dd�Z#dS)raPygments Lexer for Stan models.

    The Stan modeling language is specified in the *Stan Modeling Language
    User's Guide and Reference Manual, v2.8.0*,
    `pdf <https://github.com/stan-dev/stan/releases/download/v2.8.8/stan-reference-2.8.0.pdf>`__.

    .. versionadded:: 1.6
    ZStanZstanz*.stanror�z	(//|#).*$z"[^"]*"rqrz
(%s)(\s*)(\{)rt)Z	functions�dataztransformed\s+?dataZ
parametersztransformed\s+parametersZmodelzgenerated\s+quantitiesz(%s)\bz
T(?=\s*\[)z[;:,\[\]()]rsz[A-Za-z]\w*__\bz[A-Za-z]\w*(?=\s*\()]z
[A-Za-z]\w*\bz-?[0-9]+(\.[0-9]+)?[eE]-?[0-9]+z-?[0-9]*\.[0-9]*z-?[0-9]+rwz/\+|-|\.?\*|\.?/|\\|'|\^|==?|!=?|<=?|>=?|\|\||&&rxrycCst�d|tj�rdSdSdS)Nz^\s*parameters\s*\{g�?rzr{r~r0r0r1r�bszStanLexer.analyse_textN)$rrrrrr r!rrr(r'rrr�rr
r.rrZKEYWORDSZTYPESZTypeZ	FUNCTIONSZ
DISTRIBUTIONSrr,ZPseudoZRESERVEDr-ZFunctionr
r*r+r	r/r�r0r0r0r1rsR	�������
��9)rr"Zpygments.lexerrrrrrZpygments.tokenrrr	r
rrr
rZpygments.lexers.htmlrZpygments.lexersr�__all__rrrrr0r0r0r1�<module>s
(K`X