+
    TBis5                         R t ^ RIt^ RIHtHtHtHtHt ^ RIH	t	H
t
HtHtHtHtHtHtHt ^ RIHt ^ RIHt . ROt ! R
 R]4      t ! R R]4      t ! R R]4      t ! R R	]4      tR# )z
pygments.lexers.modeling
~~~~~~~~~~~~~~~~~~~~~~~~

Lexers for modeling languages.

:copyright: Copyright 2006-2025 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                      ] tR t^tRtRtRtR.tR.tR.t	Rt
]P                  ]P                  ,          tRtR	R
]3R]P$                  3R]P&                  3.R]! R	4      R]P,                  R3R]3R]3R]P4                  3R]P6                  3R]P:                  3R]P>                  3R]P@                  3R]P>                  R3R]PB                  3R]P>                  R3]]3.R]! R	4      R]P>                  3R]P>                  R3]]PD                  R3]#! R4      .R]! R	4      ]]PH                  R3]#! R4      .RR]P,                  R3R]PJ                  3R ]&! ]'4      3R!]P,                  3./t(R"t)R## )$r   z
For Modelica source code.
Modelicazhttp://www.modelica.org/modelicaz*.moztext/x-modelicaz1.1z"(?:'(?:[^\\']|\\.)+'|[a-zA-Z_]\w*)
whitespacez[\s\ufeff]+z//[^\n]*\n?z	/\*.*?\*/root"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)\bzwithin\bzpackage-prefixz(function|record)\bz(if|for|when|while)\bz#popz\\[\'"?\\abfnrtv]z6(?i)<\s*html\s*>([^\\"]|\\.)+?(<\s*/\s*html\s*>|(?="))z<|\\?[^"\\<]+ N)*__name__
__module____qualname____firstlineno____doc__nameurlaliases	filenames	mimetypesversion_addedreDOTALL	MULTILINEflags_namer   r   Single	Multiliner   r   Doubler   r	   r   FloatIntegerr   Builtinr
   ReservedWordConstantClassr   	NamespaceEscaper   r   tokens__static_attributes__r       =/usr/lib/python3.14/site-packages/pygments/lexers/modeling.pyr   r      s    D
$ClGI"#IMII$E1E 	T"W^^,7,,-

 	L!6==(+{+)84-v||<V^^$
* ,0<<
9=  . ' 0 0'; 0 01'**,<=DM=
@ 	L!#W%5%56%w'7'7@DJJ'FO
 	L!DNNF+FO

 	6==&)!6==1F9v}}-
e9Fr=   c                   h  a  ] tR t^bt o RtRt. ROtR.tRtRt	Rt
 Rt RR]3.RR	]P                  3.R
]! R4      ]! R4      R]! ]P$                  ]]4      3R]P(                  3RP+                  RP-                  ]
],           4      4      ]P0                  3R]3R]3R]3R]3R]3R]3./tR tRtV tR# )r   z1
Pygments Lexer for OpenBugs and WinBugs
models.
BUGS*.bugz4https://www.mrc-bsu.cam.ac.uk/software/bugs/openbugs1.6r   \s+comments#.*$r   z(model)(\s+)(\{)(for|in)(?![\w.])({})(?=\s*\()|z[A-Za-z][\w.]*&[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?\[|\]|\(|\)|:|,|;<-|~z	\+|-|\*|/[{}]c                b    \         P                  ! R V \         P                  4      '       d   R# R# )z^\s*model\s*{gffffff?        r*   searchMtexts   &r>   analyse_textBugsLexer.analyse_text   s     99%tRTT22r=   r   N)bugswinbugsopenbugs)>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probitzreplicate.postzreplicate.priorroundsinsinhsolutionsqrtsteptantanhtruncinprod
interp.lininverselogdetmeanz
eigen.valsodeprodzp.valueMrankrankedzreplicate.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)r   r    r!   r"   r#   r$   r&   r'   r%   r)   
_FUNCTIONS_DISTRIBUTIONSr   r   r/   r   r   r
   r9   r   r5   formatjoinr   r4   r   r	   r;   rT   r<   __classdictcell____classdict__s   @r>   r   r   b   s    
 D-G	I
@CM!J&N 	TN
 	gnn%
 	JL! g''{;= "7#3#34$$TYYzN/J%KL\\ %6?!;/ h8$k"1
"FH r=   c                     a  ] tR t^t o RtRtR.tRR.tRtRt	Rt
];QJ d    . R R 4       F  NK  	  5M! R R 4       4      tR tR	R
]3.RR]3.RR]P"                  3R]P$                  3.R]! R4      ]! R	4      R]! ]P,                  ]]4      3R]P0                  3R]P2                  3RP5                  RP7                  ]
],           ],           4      4      ]P8                  3]! R4      R]3R]3R]3R]3R]3./tR t Rt!V t"R# )!r   z
Pygments Lexer for JAGS.
JAGSjagsz*.jagrA   z https://mcmc-jags.sourceforge.iorB   c              #  ,   "   T F
  pR V 2x  K  	  R# 5i)z[dpq]Nr   ).0xs   & r>   	<genexpr>JagsLexer.<genexpr>   s$      QP ,-U1#;Ps   r   rC   namesz[a-zA-Z][\w.]*\brD   (?s)/\*.*?\*/rE   r   z(model|data)(\s+)(\{)zvar(?![\w.])rF   rG   rH   rI   rJ   rK   z&\+|-|\*|\/|\|\|[&]{2}|[<>=]=?|\^|%.*?%rL   c                   \         P                  ! R V \         P                  4      '       d_   \         P                  ! RV \         P                  4      '       d   R# \         P                  ! RV \         P                  4      '       d   R# R# ^ # )z^\s*model\s*\{z^\s*data\s*\{g?z^\s*varg333333?rO   rR   s   &r>   rT   JagsLexer.analyse_text  sU    99&bdd33yy)466:tRTT22r=   r   N)2rY   rZ   r[   r\   r]   r^   r_   ra   rb   r`   rg   exprk   ifelserj   rm   rn   ro   rp   rs   rt   ru   rv   rw   rx   rz   r{   r|   r}   r~   r   r   r   rq   r   rr   r   r   r   r   r   r   tacosacoshasinasinhatanr   r   )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ddirich)#r   r    r!   r"   r#   r$   r&   r'   r%   r)   r   tupler   _OTHER_DISTRIBUTIONSr   r   r   r0   r/   r   r   r
   r9   r   Declarationr5   r   r   r4   r   r	   r;   rT   r<   r   r   s   @r>   r   r      s     DhG'"I
,CM	J U QPQUU QPQ QN
* 	TN
 	 $'
 	w001gnn%	
 	JL!%g''{;=g112!7#3#34 $$TYYz,:0;,@0A &B C \\
 G6?!;/h6Ak"3
)FV	 	r=   c            !       j  a  ] tR tRt o RtRtR.tR.tRtRt	RR	]
3.R
R]P                  3R]P                  3.RR]3]! R
4      ]! R4      RP!                  RP#                  R)4      4      ]! ]P(                  ]
]4      3R]3RP!                  RP#                  ]P.                  4      4      ]3R]3RP!                  RP#                  ]P0                  4      4      ]P2                  3R]! ]]]]]4      3R]! ]]]]]4      3R]3RP!                  RP#                  ]P8                  4      4      ]P<                  3RP!                  RP#                  ]P>                  4      4      ]! ]]]P<                  4      3R]P<                  P@                  3RP!                  RP#                  ]PB                  4      4      ]PD                  3R]PF                  3R]$PJ                  3R]$PJ                  3R]$PJ                  3R]$PJ                  3R]$PJ                  3R ]$PL                  3R!]3R"]3R#]3R$]3R%]3./t'R& t(R't)V t*R(# )*r   i  zPygments 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>`__.
Stanstanz*.stanzhttps://mc-stan.orgrB   r   rC   rD   r   z	(//|#).*$r   z"[^"]*"z({})(\s*)(\{{)rH   ztarget\s*\+=z({})\bz
T(?=\s*\[)z/(<)(\s*)(upper|lower|offset|multiplier)(\s*)(=)z(,)(\s*)(upper)(\s*)(=)z
[;,\[\]()]rG   z(~)(\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;\+|-|\.?\*|\.?/|\\|'|\.?\^|!=?|<=?|>=?|\|\||&&|%|\?|:|%/%|!rL   z\|c                b    \         P                  ! R V \         P                  4      '       d   R# R# )z^\s*parameters\s*\{g      ?rN   rO   rR   s   &r>   rT   StanLexer.analyse_textj  s     99+T24488r=   r   N)	functionsdataztransformed\s+?data
parametersztransformed\s+parametersmodelzgenerated\s+quantities)+r   r    r!   r"   r#   r$   r&   r'   r%   r)   r   r   r0   r/   r   r   r   r   r   r
   r9   r   r   KEYWORDSTYPESTyper	   r   	FUNCTIONSr   r4   DISTRIBUTIONSPseudoRESERVEDr5   Functionr   r2   r3   r;   rT   r<   r   r   s   @r>   r   r     st     DhG
I
CM 	TN
 	w0017>>*

 	 JL!%%dii 1< '= > g''{;=
 g&dii(?(?@A7KG$dii(<(<=>M @h
GZMO'k:w
KPR K($$SXXn.F.F%GH$,,W%,,SXXn6R6R-ST:t||<>  !4!45dii(?(?@A7CSCST%t}}54fllC+V\\:&3V\\B*FLL9't$,h7KXVk"K m7
AFF r=   )r   r   r   r   )r#   r*   pygments.lexerr   r   r   r   r   pygments.tokenr   r   r	   r
   r   r   r   r   r   pygments.lexers.htmlr   pygments.lexersr   __all__r   r   r   r   r   r=   r>   <module>r      sl    
 H H$ $ $ + *
BHJ HV\
 \~U
 UpU
 Ur=   