HEX
Server: Apache/2.4.67 (Debian)
System: Linux vps-b2547eb4 6.1.0-41-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.158-1 (2025-11-09) x86_64
User: root (0)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/pygments/lexers/__pycache__/modeling.cpython-311.pyc
�

�E�c�4����dZddlZddlmZmZmZmZmZddlm	Z	m
Z
mZmZm
Z
mZmZmZmZddlmZddlmZgd�ZGd�d	e��ZGd
�de��ZGd�d
e��ZGd�de��ZdS)z�
    pygments.lexers.modeling
    ~~~~~~~~~~~~~~~~~~~~~~~~

    Lexers for modeling languages.

    :copyright: Copyright 2006-2022 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�
Whitespace)�	HtmlLexer)�_stan_builtins)�
ModelicaLexer�	BugsLexer�	JagsLexer�	StanLexerc� �eZdZdZdZdZdgZdgZdgZe	j
e	jzZdZ
defd	ejfd
ejfged��dejd
fdefdefdejfdejfdejfdejfdejfdejdfdejfdejdfe
efg
ed��dejfdejdfe
ej dfe!d��ged��e
ej"dfe!d��gdejdfdej#fde$e%��fdejfgd �Z&d!S)"rz>
    For Modelica source code.

    .. versionadded:: 1.1
    �Modelicazhttp://www.modelica.org/�modelicaz*.moztext/x-modelicaz"(?:'(?:[^\\']|\\.)+'|[a-zA-Z_]\w*)z[\s\ufeff]+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)\bak(algorithm|annotation|break|connect|constant|constrainedby|der|discrete|each|else|elseif|elsewhen|encapsulated|enumeration|equation|exit|expandable|extends|external|firstTick|final|flow|for|if|import|impure|in|initial|inner|input|interval|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�url�aliases�	filenames�	mimetypes�re�DOTALL�	MULTILINE�flags�_namerr	�Single�	Multilinerr
�Doublerr
r�Float�Integerr�Builtinr�Reserved�Word�Constant�Classr�	Namespace�Escaperr�tokens���:/usr/lib/python3/dist-packages/pygments/lexers/modeling.pyrrs���������
�D�
$�C��l�G���I�"�#�I��I���$�E�1�E��T�"�
�W�^�,�
�7�,�-�
�
�G�L�!�!�
�6�=�(�+�
�{�+�
)�8�4�
-�v�|�<�
�V�^�$�
*�,0�<�

9�=��
�

���
�.�� '� 0�'�
;�
�� 0�1�
�'�*�,<�=�
�D�M�=
�B
�G�L�!�!�
#�W�%5�6�
%�w�'7��@�
�D�J��'��G�F�O�O�
�
�G�L�!�!�
�D�N�F�+��G�F�O�O�
��6�=�&�)�
!�6�=�1�
F�
�U�9�
�
�
�
�v�}�-�
�e9�9�F�F�Fr<rc��eZdZdZdZgd�ZdgZdZ	dZ	de	fgde
jfged	��ed
��de
eje	e��fdejfd
d�eez��zejfdefdefdefdefdefdefgd�Zd�ZdS)rzX
    Pygments Lexer for OpenBugs and WinBugs
    models.

    .. versionadded:: 1.6
    �BUGS)�bugs�winbugs�openbugs�*.bug)>�abs�arccos�arccosh�arcsin�arcsinh�arctan�arctanh�cloglog�cos�cosh�
cumulative�cut�density�deviance�equals�expr�gammap�ilogit�icloglog�integral�log�logfact�loggam�logit�max�min�phizpost.p.value�powz
prior.p.value�probitzreplicate.postzreplicate.prior�round�sin�sinh�solution�sqrt�step�tan�tanh�trunc�inprod�
interp.lin�inverse�logdet�meanz
eigen.vals�ode�prodzp.valueM�rank�rankedzreplicate.postM�sd�sort�sum�D�I�F�T�C)�dbern�dbin�dcat�dnegbin�dpois�dhyper�dbeta�dchisqr�ddexp�dexp�dflat�dgamma�dgev�df�dggamma�dgpar�dloglik�dlnorm�dlogis�dnorm�dpar�dt�dunif�dweib�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	\+|-|\*|/�[{}]�rr�rc�J�tjd|tj��rdSdS)Nz
^\s*model\s*{gffffff�?��r)�search�M��texts r=�analyse_textzBugsLexer.analyse_text�s%��
�9�%�t�R�T�2�2�	��3��3r<N)r r!r"r#r$r&r'�
_FUNCTIONS�_DISTRIBUTIONSrr	r.rrrr8rr4�joinrr3rr
r:r�r;r<r=rrcs.���������D�-�-�-�G��	�I�!�J��&�N���T�N�
�
�g�n�%�
�
�G�J����G�L�!�!�
 �
�X�g�'��{�
;�
;�
=�"�7�#3�4�
��y�y��n�4�5�5�6�
�\�
���%�
6��?�
!�;�/��h��
�8�$�
�k�"�3
�#�#�F�J����r<rc�~�eZdZdZdZdgZddgZdZed�dD����Z	d	Z
d
efgdefgde
jfd
e
jfged��ed��deejee��fdejfdejfdd�ee	ze
z��zejfed��defdefdefdefdefgd�Zd�ZdS)rz=
    Pygments Lexer for JAGS.

    .. versionadded:: 1.6
    �JAGS�jagsz*.jagrC)2rDrErFrGrHrIrJrLrMrKrR�exprV�ifelserUrXrYrZr[r^r_r`rarbrcrerfrgrhrirjrkrmr\rnr]rprursrlrqrt�t�acos�acosh�asin�asinh�atanryrwc#� K�|]	}d|zV��
dS)z[dpq]%sNr;)�.0�xs  r=�	<genexpr>zJagsLexer.<genexpr>�s>����Q�Q�Q�9�q�=�Q�Q�Q�Q�Q�Qr<)�bern�beta�dchiqsqrr�r�r��gammaz	gen.gamma�logis�lnorm�negbin�nchisqr�norm�par�pois�weib)r�r��dbetabinr{r|r}r�r�r�r�r�r��dbinom�dchisq�dnbinom�dweibull�ddirichr�z[a-zA-Z][\w.]*\b�
(?s)/\*.*?\*/r�r�rz(model|data)(\s+)(\{)zvar(?![\w.])r�r�r��namesr�r�r�z&\+|-|\*|\/|\|\|[&]{2}|[<>=]=?|\^|%.*?%r�)rr�r�rc���tjd|tj��rFtjd|tj��rdStjd|tj��rdSdSdS)Nz^\s*model\s*\{z
^\s*data\s*\{g�������?z^\s*varg333333�?rr�r�s r=r�zJagsLexer.analyse_texts`��
�9�&��b�d�3�3�	��y�)�4���6�6�
��s���:�t�R�T�2�2�
��s��s��1r<N)r r!r"r#r$r&r'r��tupler��_OTHER_DISTRIBUTIONSrrr	r/r.rrrr8r�Declarationr4r�r3rr
r:r�r;r<r=rr�s����������D��h�G��'�"�I�	�J��U�Q�Q�P�Q�Q�Q�Q�Q�N�
*���T�N�
�
!�$�'�
��w�0�1�
�g�n�%�	
�
�G�J����G�L�!�!�
%�
�X�g�'��{�
;�
;�
=�
�g�1�2�
!�7�#3�4���	�	�*�,:�+;�,@�+A�!B�!B�B��\�
�

�G�G���
6��?�
!�;�/�
�h��
6��A�
�k�"�3
�)�)�F�V	�	�	�	�	r<rc�>�eZdZdZdZdgZdgZdefgdej	fdej
fgdefed	��ed
��dd�
d
��zeejee��fdefdd�
ej��zefdefdd�
ej��zejfdeeeeee��fdeeeeee��fdefdd�
ej��zejfdd�
ej��zeeeej��fdejjfdd�
ej��zejfdejfde j!fde j!fde j!fde j!fde j!fde j"fdefdefd efd!efd"efgd#�Z#d$�Z$d%S)&ra Pygments Lexer for Stan models.

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

    .. versionadded:: 1.6
    �Stan�stanz*.stanr�r�z	(//|#).*$z"[^"]*"r�rz
(%s)(\s*)(\{)r�)�	functions�dataztransformed\s+?data�
parametersztransformed\s+parameters�modelzgenerated\s+quantitiesztarget\s*\+=z(%s)\bz
T(?=\s*\[)z/(<)(\s*)(upper|lower|offset|multiplier)(\s*)(=)z(,)(\s*)(upper)(\s*)(=)z
[;,\[\]()]r�z(~)(\s*)(%s)(?=\s*\()z[A-Za-z]\w*__\bz[A-Za-z]\w*(?=\s*\()]z$[0-9]+(\.[0-9]*)?([eE][+-]?[0-9]+)?iz\.[0-9]+([eE][+-]?[0-9]+)?iz[0-9]+iz#[0-9]+(\.[0-9]*)?([eE][+-]?[0-9]+)?z\.[0-9]+([eE][+-]?[0-9]+)?z[0-9]+z
[A-Za-z]\w*\bz<-|(?:\+|-|\.?/|\.?\*|=)?=|~z;\+|-|\.?\*|\.?/|\\|'|\.?\^|!=?|<=?|>=?|\|\||&&|%|\?|:|%/%|!r�z\|r�c�J�tjd|tj��rdSdS)Nz^\s*parameters\s*\{g�?r�r�r�s r=r�zStanLexer.analyse_textms%��
�9�+�T�2�4�8�8�	��3��3r<N)%r r!r"r#r$r&r'rr	r/r.r
rr�rrr8rr�KEYWORDS�TYPES�Typer
r�	FUNCTIONSrr3�
DISTRIBUTIONS�Pseudo�RESERVEDr4�Functionrr1r2r:r�r;r<r=rrs\���������D��h�G��
�I��T�N�
��w�0�1�
�7�>�*�
��� ��G�J����G�L�!�!�
�
�Y�Y�<�=�=�=��X�g�'��{�
;�
;�	
=��g�&�
����>�#:�;�;�
;�W�E�
�G�$�
����>�#7�8�8�
8�'�,�G�@�
�X�h�
�G�Z��
M�
M�
O�
'�
�X�k�:�w�
�K�
P�
P�
R��K�(�
�����)A� B� B�
B�D�L�Q�
%�����1M�(N�(N�
N����:�t�|�<�<�
>� ���!4�5�
����>�#:�;�;�
;�W�=M�N�
%�t�}�5�
4�f�l�C�
+�V�\�:�
���&�
3�V�\�B�
*�F�L�9�
���'�
�t�$�
,�h�7�
K�X�V�
�k�"�
�K� �o8
�B�B�F�H����r<r)r#r)�pygments.lexerrrrrr�pygments.tokenrr	r
rrr
rrr�pygments.lexers.htmlr�pygments.lexersr�__all__rrrrr;r<r=�<module>r�s�����
�	�	�	�H�H�H�H�H�H�H�H�H�H�H�H�H�H�$�$�$�$�$�$�$�$�$�$�$�$�$�$�$�$�$�$�$�$�$�$�+�*�*�*�*�*�*�*�*�*�*�*�
B�
B�
B��I�I�I�I�I�J�I�I�I�X]�]�]�]�]�
�]�]�]�@U�U�U�U�U�
�U�U�U�pV�V�V�V�V�
�V�V�V�V�Vr<