HOME


Mini Shell 1.0
DIR: /usr/lib/python3/dist-packages/pygments/lexers/__pycache__/
Upload File :
Current File : //usr/lib/python3/dist-packages/pygments/lexers/__pycache__/modeling.cpython-312.pyc
�

|�e�4����dZddlZddlmZmZmZmZmZddlm	Z	m
Z
mZmZm
Z
mZmZmZmZddlmZddlmZgd�ZGd�d	e�ZGd
�de�ZGd�d
e�ZGd�de�Zy)z�
    pygments.lexers.modeling
    ~~~~~~~~~~~~~~~~~~~~~~~~

    Lexers for modeling languages.

    :copyright: Copyright 2006-2023 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	je	jzZdZ
defd	ej fd
ej"fged�dej(d
fdefdefdej0fdej2fdej6fdej:fdej<fdej:dfdej>fdej:dfe
efg
ed�dej:fdej:dfe
ej@dfe!d�ged�e
ejDdfe!d�gdej(dfdejFfde$e%�fdej(fgd �Z&y!)"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�I����$�E�1�E��T�"�
�W�^�^�,�
�7�,�,�-�
�
�L�!�
�6�=�=�(�+�
�{�+�
)�8�4�
-�v�|�|�<�
�V�^�^�$�
*�,0�<�<�

9�=��
�
�

���
�
�.�� '� 0� 0�'�
;�
�� 0� 0�1�
�'�*�*�,<�=�
�D�M�=
�B
�L�!�
#�W�%5�%5�6�
%�w�'7�'7��@�
�D�J�J��'��F�O�
�
�L�!�
�D�N�N�F�+��F�O�
��6�=�=�&�)�
!�6�=�=�1�
F�
�9�
�
�
�v�}�}�-�
�e9�Fr<rc�(�eZdZdZdZgd�ZdgZdZ	dZ	de	fgde
jfged	�ed
�de
eje	e�fdej"fd
dj%eez�zej(fdefdefdefdefdefdefgd�Zd�Zy)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�P�tjd|tj�ryy)Nz
^\s*model\s*{gffffff�?��r)�search�M��texts r=�analyse_textzBugsLexer.analyse_text�s��
�9�9�%�t�R�T�T�2��r<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�n�%�
�
�J���L�!�
 �
�g�'�'��{�
;�
=�"�7�#3�#3�4�
��y�y��n�4�5�6�
�\�\�
���%�
6��?�
!�;�/��h��
�8�$�
�k�"�3
�#�F�Jr<rc��eZdZdZdZdgZddgZdZed�dD��Z	d	Z
d
efgdefgde
jfd
e
jfged�ed�deej&ee�fdej*fdej,fddj/ee	ze
z�zej0fed�defdefdefdefdefgd�Zd�Zy)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|z���y�w)z[dpq]%sNr;)�.0�xs  r=�	<genexpr>zJagsLexer.<genexpr>�s����Q�Q�9�q�=�Q�s�)�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�rMtjd|tj�rytjd|tj�ryyy)Nz^\s*model\s*\{z
^\s*data\s*\{g�������?z^\s*varg333333�?rr�r�s r=r�zJagsLexer.analyse_textsL��
�9�9�&��b�d�d�3��y�y�)�4����6�����:�t�R�T�T�2���r<N)r r!r"r#r$r&r'r��tupler��_OTHER_DISTRIBUTIONSrrr	r/r.rrrr8r�Declarationr4r�r3rr
r:r�r;r<r=rr�sO����D��h�G��'�"�I�	�J��Q�P�Q�Q�N�
*���T�N�
�
!�$�'�
��w�0�0�1�
�g�n�n�%�	
�
�J���L�!�
%�
�g�'�'��{�
;�
=�
�g�1�1�2�
!�7�#3�#3�4���	�	�*�,:�+;�,@�+A�!B�B��\�\�
�

�G��
6��?�
!�;�/�
�h��
6��A�
�k�"�3
�)�F�V	r<rc��eZdZdZdZdgZdgZdefgdejfdejfgdefed	�ed
�ddjd
�zeej ee�fdefddjej&�zefdefddjej(�zej*fdeeeeee�fdeeeeee�fdefddjej0�zej4fddjej6�zeeeej4�fdej4j8fddjej:�zej<fdej>fde jBfde jBfde jBfde jBfde jBfde jDfdefdefd efd!efd"efgd#�Z#d$�Z$y%)&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�P�tjd|tj�ryy)Nz^\s*parameters\s*\{g�?r�r�r�s r=r�zStanLexer.analyse_textms��
�9�9�+�T�2�4�4�8��r<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=rrs6����D��h�G��
�I��T�N�
��w�0�0�1�
�7�>�>�*�
��� ��J���L�!�
�
�Y�Y�<�=�=��g�'�'��{�
;�	
=��g�&�
����>�#:�#:�;�
;�W�E�
�G�$�
����>�#7�#7�8�
8�'�,�,�G�@�
�h�
�G�Z��
M�
O�
'�
�k�:�w�
�K�
P�
R��K�(�
�����)A�)A� B�
B�D�L�L�Q�
%�����1M�1M�(N�
N���:�t�|�|�<�
>� ����!4�!4�5�
����>�#:�#:�;�
;�W�=M�=M�N�
%�t�}�}�5�
4�f�l�l�C�
+�V�\�\�:�
����&�
3�V�\�\�B�
*�F�L�L�9�
����'�
�t�$�
,�h�7�
K�X�V�
�k�"�
�K� �o8
�B�F�Hr<r)r#r)�pygments.lexerrrrrr�pygments.tokenrr	r
rrr
rrr�pygments.lexers.htmlr�pygments.lexersr�__all__rrrrr;r<r=�<module>r�sl���
�H�H�$�$�$�+�*�
B��I�J�I�X]�
�]�@U�
�U�pV�
�Vr<