i7is5dZddlZddlmZmZmZmZmZddlm Z m Z m Z m Z m Z mZmZmZmZddlmZddlmZgdZGdd eZGd d eZGd d eZGddeZy)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) RegexLexerincludebygroupsusingdefault) TextCommentOperatorKeywordNameStringNumber Punctuation Whitespace) HtmlLexer)_stan_builtins) ModelicaLexer BugsLexer JagsLexer StanLexerceZdZdZdZdZdgZdgZdgZdZ e je jzZ dZd efd ej"fd ej$fged d ej*dfdefdefdej2fdej4fdej8fdej<fdej>fdej<dfdej@fdej<dfeefg ed dej<fdej<dfeejBdfe"dged eejFdfe"dgd ej*dfdejHfde%e&fd ej*fgd!Z'y")#rz# For Modelica source code. Modelicazhttp://www.modelica.org/modelicaz*.moztext/x-modelicaz1.1z"(?:'(?:[^\\']|\\.)+'|[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)\bclassz(false|true)\bzwithin\bpackage-prefixz(function|record)\bz(if|for|when|while)\bz#popz\\[\'"?\\abfnrtv]z6(?i)<\s*html\s*>([^\\"]|\\.)+?(<\s*/\s*html\s*>|(?="))z <|\\?[^"\\<]+)rrootrrrN)(__name__ __module__ __qualname____doc__nameurlaliases filenames mimetypes version_addedreDOTALL MULTILINEflags_namerr Single Multilinerr Doublerr rFloatIntegerr Builtinr ReservedWordConstantClassr NamespaceEscaperrtokensa/mnt/ssd/data/python-lab/ChefSystem/venv/lib/python3.12/site-packages/pygments/lexers/modeling.pyrrs D $ClGI"#IM II $E 1ET " W^^ , 7,, - L ! 6==( + { + )8 4 -v|| < V^^ $ *,0<< 9=      . ' 0 0' ;  0 0 1 '**,< = DM= B L ! #W%5%5 6 %w'7'7 @ DJJ ' FO   L ! DNNF + FO 6==& ) !6== 1 F 9   v}} -  e9Fr=rcHeZdZdZdZgdZdgZdZdZdZ dZ d e fgd e jfged ed d eej"e efdej&fdj)dj+e e zej.fdefdefdefdefdefdefg dZdZy)rz= Pygments Lexer for OpenBugs and WinBugs models. BUGS)bugswinbugsopenbugs*.bugz4https://www.mrc-bsu.cam.ac.uk/software/bugs/openbugs1.6)>absarccosarccosharcsinarcsinharctanarctanhcloglogcoscosh cumulativecutdensitydevianceequalsexprgammapilogiticloglogintegralloglogfactloggamlogitmaxminphiz post.p.valuepowz prior.p.valueprobitzreplicate.postzreplicate.priorroundsinsinhsolutionsqrtsteptantanhtruncinprod interp.lininverselogdetmeanz eigen.valsodeprodzp.valueMrankrankedzreplicate.postMsdsortsumDIFTC)dberndbindcatdnegbindpoisdhyperdbetadchisqrddexpdexpdflatdgammadgevdfdggammadgpardloglikdlnormdlogisdnormdpardtdunifdweibdmultiddirchdmnormdmtdwish\s+#.*$commentsrz(model)(\s+)(\{)(for|in)(?![\w.]) ({})(?=\s*\()|z[A-Za-z][\w.]*&[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?\[|\]|\(|\)|:|,|;<-|~z \+|-|\*|/[{}]rrrcPtjd|tjryy)Nz ^\s*model\s*{gffffff?r*searchMtexts r> analyse_textzBugsLexer.analyse_texts 99%tRTT 2r=N)r r!r"r#r$r&r'r%r) _FUNCTIONS_DISTRIBUTIONSrr r/rrr r9rr5formatjoinr r4rr r;rr<r=r>rrbs D-G I @CM!J &N TN gnn % J  L ! g''{ ; ="7#3#3 4  $ $TYYzN/J%K L \\  % 6 ? !; /h  8 $ k "1 "FHr=rceZdZdZdZdgZddgZdZdZdZ e d d DZ d Z d e fgd efgdej fdej"fgededdeej*e efdej.fdej0fdj3dj5e e ze zej6feddefdefdefdefdefg dZdZy) rz" Pygments Lexer for JAGS. JAGSjagsz*.jagrDz https://mcmc-jags.sourceforge.iorE)2rFrGrHrIrJrKrLrNrOrMrTexprXifelserWrZr[r\r]r`rarbrcrdrergrhrirjrkrlrmror^rpr_rrrwrurnrsrvtacosacoshasinasinhatanr{ryc#&K|] }d| yw)z[dpq]Nr<).0xs r> zJagsLexer.sQ1U1#;Qs)bernbetadchiqsqrrrrgammaz gen.gammalogislnormnegbinnchisqrnormparpoisweib)rrdbetabinr}r~rrrrrrrdbinomdchisqdnbinomdweibullddirichrz[a-zA-Z][\w.]*\b (?s)/\*.*?\*/rrrz(model|data)(\s+)(\{)z var(?![\w.])rrrnamesrrrz&\+|-|\*|\/|\|\|[&]{2}|[<>=]=?|\^|%.*?%r)rrrrctjd|tjrMtjd|tjrytjd|tjryyy)Nz^\s*model\s*\{z ^\s*data\s*\{g?z^\s*varg333333?rrrs r>rzJagsLexer.analyse_text sL 99&bdd 3yy)46:tRTT2r=N) r r!r"r#r$r&r'r%r)rtupler_OTHER_DISTRIBUTIONSrr r r0r/rrr r9r Declarationr5rrr4rr r;rr<r=r>rrs_ DhG'"I ,CM JQPQQN *TN !$ ' w00 1 gnn %   J  L ! % g''{ ; = g11 2 !7#3#3 4 $ $TYYz,:0;,@0A&BC\\  G  6 ? !; / h  6 A k "3 )FV r=rcReZdZdZdZdgZdgZdZdZde fgde jfd e jfgd e fed ed d jdj!deej&e efdefdjdj!ej,efdefdjdj!ej.ej0fdeeeeeefdeeeeeefdefdjdj!ej6ej:fdjdj!ej<eeeej:fdej:j>fdjdj!ej@ejBfdejDfde#jHfde#jHfde#jHfde#jHfde#jHfde#jJfd efd!efd"efd#efd$efgd%Z&d&Z'y')(raPygments 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 `__. Stanstanz*.stanzhttps://mc-stan.orgrErrz (//|#).*$z"[^"]*"rrz({})(\s*)(\{{)r) functionsdataztransformed\s+?data parametersztransformed\s+parametersmodelzgenerated\s+quantitiesz target\s*\+=z({})\bz T(?=\s*\[)z/(<)(\s*)(upper|lower|offset|multiplier)(\s*)(=)z(,)(\s*)(upper)(\s*)(=)z [;,\[\]()]rz(~)(\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;\+|-|\.?\*|\.?/|\\|'|\.?\^|!=?|<=?|>=?|\|\||&&|%|\?|:|%/%|!rz\|rcPtjd|tjryy)Nz^\s*parameters\s*\{g?rrrs r>rzStanLexer.analyse_textjs 99+T244 8r=N)(r r!r"r#r$r&r'r%r)rr r0r/r rrrrr r9rrKEYWORDSTYPESTyper r FUNCTIONSr r4 DISTRIBUTIONSPseudoRESERVEDr5Functionrr2r3r;rr<r=r>rrsc DhG I CMTN w00 1 7>> *  J  L !  % %dii1<'=>g''{ ; = g &   dii(?(?@ A7 K G $   dii(<(<= > M@ h GZ M O ' k:w K P RK (  $ $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 m7 AFFr=r)r#r*pygments.lexerrrrrrpygments.tokenrr r r r r rrrpygments.lexers.htmlrpygments.lexersr__all__rrrrr<r=r>rsl HH$$$+* BHJHV\ \~U UpU Ur=