https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/pygments/lexers/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/pygments/lexers/__pycache__/modeling.cpython-310.pyc
o

���aH4�@s�dZddlZddlmZmZmZmZmZddlm	Z	m
Z
mZmZm
Z
mZmZmZmZddlmZddlmZgd�ZGdd	�d	e�ZGd
d�de�ZGdd
�d
e�ZGdd�de�ZdS)z�
    pygments.lexers.modeling
    ~~~~~~~~~~~~~~~~~~~~~~~~

    Lexers for modeling languages.

    :copyright: Copyright 2006-2021 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@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
    �Modelica�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�aliases�	filenames�	mimetypes�re�DOTALL�	MULTILINE�flags�_namerr�Single�	Multilinerr�Doublerr	r
�Float�Integerr�Builtinr
�Reserved�Word�Constant�Classr�	Namespace�Escaperr�tokens�r8r8�:/usr/lib/python3/dist-packages/pygments/lexers/modeling.pyrsd�

���
�!

�
�
��
�rc@s�eZdZdZdZgd�ZdgZdZ	dZ	de	fgde
jfged	�ed
�de
eje	e�fdejfd
d�ee�ejfdefdefdefdefdefdefgd�Zdd�ZdS)rzv
    Pygments Lexer for `OpenBugs <http://www.openbugs.net/>`_ 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�rcC�t�d|tj�r
dSdS)Nz
^\s*model\s*{gffffff�?��r&�search�M��textr8r8r9�analyse_text��zBugsLexer.analyse_textN)rrr r!r"r#r$�
_FUNCTIONS�_DISTRIBUTIONSrrr+rrr
r5rr1�joinrr0r
r	r7r�r8r8r8r9rbsB
�������%rc@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
    �JAGS�jagsz*.jagr>)2r?r@rArBrCrDrErGrHrFrM�exprQ�ifelserPrSrTrUrVrYrZr[r\r]r^r`rarbrcrdrerfrhrWrirXrkrprnrgrlro�t�acos�acosh�asin�asinh�atanrtrrccs�|]}d|VqdS)z[dpq]%sNr8)�.0�xr8r8r9�	<genexpr>�s�zJagsLexer.<genexpr>)�bern�beta�dchiqsqrr~rr��gammaz	gen.gamma�logis�lnorm�negbin�nchisqr�norm�par�pois�weib)r�r��dbetabinrvrwrxr{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�rcCs@t�d|tj�rt�d|tj�rdSt�d|tj�rdSdSdS)Nz^\s*model\s*\{z
^\s*data\s*\{g�������?z^\s*varg333333�?rr�r�r8r8r9r�szJagsLexer.analyse_textN)rrr r!r"r#r$r��tupler��_OTHER_DISTRIBUTIONSrrrr,r+rrr
r5r�Declarationr1r�r0r
r	r7r�r8r8r8r9r�sP����������+rc@s^eZdZdZdZdgZdgZdefgdej	fdej
fgdefed	�ed
�dd�
d
�eejee�fdefdd�
ej�efdefdd�
ej�ejfdeeeeee�fdeeeeee�fdefdd�
ej�ejfdd�
ej�eeeej�fdejjfdd�
ej�ejfdejfdefde j!fde j!fde j"fdefdefdefdefgd �Z#d!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)(\s*)(=)z(,)(\s*)(upper)(\s*)(=)z
[;,\[\]()]r�z(~)(\s*)(%s)(?=\s*\()z[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]+([eE][+-]?[0-9]+)?z[0-9]+z<-|(?:\+|-|\.?/|\.?\*|=)?=|~z2\+|-|\.?\*|\.?/|\\|'|\^|!=?|<=?|>=?|\|\||&&|%|\?|:r�z\|r�cCr�)Nz^\s*parameters\s*\{g�?r�r�r�r8r8r9r�ir�zStanLexer.analyse_textN)%rrr r!r"r#r$rrr,r+rrr�rr
r5rr�KEYWORDS�TYPES�Typer	r�	FUNCTIONSrr0�
DISTRIBUTIONS�Pseudo�RESERVEDr1�Functionr
r.r/r7r�r8r8r8r9rs^	�������
��Ar)r!r&�pygments.lexerrrrrr�pygments.tokenrrr	r
rrr
rr�pygments.lexers.htmlr�pygments.lexersr�__all__rrrrr8r8r8r9�<module>s
,K`X

https://t.me/RX1948 - 2025