HEX
Server: Apache
System: Linux srv1.prosuiteplus.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: prosuiteplus (1001)
PHP: 8.3.20
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/pygments/lexers/__pycache__/matlab.cpython-38.pyc
U

�a`�q�@s�dZddlZddlmZmZmZmZmZddlm	Z	m
Z
mZmZm
Z
mZmZmZmZmZddlmZdddd	gZGd
d�de�Ze�d�ZGdd�de�ZGd
d�de�ZGdd	�d	e�ZdS)z�
    pygments.lexers.matlab
    ~~~~~~~~~~~~~~~~~~~~~~

    Lexers for Matlab and related languages.

    :copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�N)�Lexer�
RegexLexer�bygroups�words�
do_insertions)
�Text�Comment�Operator�Keyword�Name�String�Number�Punctuation�Generic�
Whitespace)�_scilab_builtins�MatlabLexer�MatlabSessionLexer�OctaveLexer�ScilabLexerc@s6eZdZdZdZdgZdgZdgZdZdZ	dZ
d	ejfd
e
jdfde
fd
edfeddd�efdd�ee	e
�dejfde
fdefdefdefdefdefdejfdejfdejfdedfd efd!efgd"ed#fgd$e
jd#fd%e
jfd!e
jfgd&eeeeeeejeeee�
d#fd'eeej�d#fgd(�Zd)d*�Zd+S),rz=
    For Matlab source code.

    .. versionadded:: 0.10
    ZMatlabZmatlab�*.mztext/matlab)C�sin�sind�sinh�asin�asind�asinh�cos�cosd�cosh�acos�acosd�acosh�tan�tand�tanh�atan�atandZatan2�atanh�sec�secd�sech�asec�asecd�asech�csc�cscd�csch�acsc�acscd�acsch�cot�cotd�coth�acot�acotd�acoth�hypot�expZexpm1�logZlog1pZlog10Zlog2Zpow2�realpow�reallog�realsqrt�sqrt�nthrootZnextpow2�abs�angle�complex�conj�imag�real�unwrap�isreal�cplxpair�fix�floor�ceil�round�mod�rem�sign)'�airy�besselj�bessely�besselh�besseli�besselk�beta�betainc�betalnZellipjZellipke�erf�erfc�erfcx�erfinvZexpint�gamma�gammainc�gammalnZpsi�legendre�cross�dot�factor�isprime�primes�gcd�lcm�rat�rats�perms�nchoosek�	factorialZcart2sphZcart2polZpol2cartZsph2cartZhsv2rgbZrgb2hsv)C�zeros�ones�eye�repmat�rand�randn�linspace�logspaceZ	freqspace�meshgrid�
accumarray�size�length�ndims�numel�disp�isempty�isequal�isequalwithequalnans�cat�reshape�diag�blkdiag�tril�triu�fliplr�flipud�flipdimZrot90�find�endZsub2indZind2sub�bsxfun�ndgrid�permute�ipermute�shiftdim�	circshift�squeeze�isscalar�isvectorZans�eps�realmax�realmin�pi�i�inf�nan�isnan�isinf�isfinite�jZwhy�companZgallery�hadamard�hankel�hilb�invhilb�magic�pascal�rosser�toeplitz�vander�	wilkinsonz^!.*z%\{\s*\n�blockcommentz%.*$�^\s*function�deffunc)�break�case�catch�classdef�continue�else�elseifr�Z
enumerated�events�for�function�global�if�methods�	otherwiseZparfor�
persistent�
properties�returnZspmd�switch�try�while�\b��suffix�(�|z)\bz	\.\.\..*$�-|==|~=|<|>|<=|>=|&&|&|~|\|\|?�\.\*|\*|\+|\.\^|\.\\|\.\/|\/|\\z\[|\]|\(|\)|\{|\}|:|@|\.|,�=|:|;�(?<=[\w)\].])\'+�&(\d+\.\d*|\d*\.\d+)([eEf][+-]?[0-9]+)?�\d+[eEf][+-]?[0-9]+�\d+�(?<![\w)\].])\'�string�[a-zA-Z_]\w*�.z[^\']*\'�#popz^\s*%\}z^.*\n�1(\s*)(?:(\S+)(\s*)(=)(\s*))?(.+)(\()(.*)(\))(\s*)�(\s*)([a-zA-Z_]\w*))�rootr�r�r�cCs,t�d|tj�rdSt�d|tj�r(dSdS)Nz^\s*%g�������?z^!\w+)�re�match�M)�text�r��8/usr/lib/python3/dist-packages/pygments/lexers/matlab.py�analyse_text�szMatlabLexer.analyse_textN)�__name__�
__module__�__qualname__�__doc__�name�aliases�	filenames�	mimetypesZelfunZspecfunZelmatrZOtherrZ	Multiliner
r�joinr�Builtinr	rr
�Float�Integerrrr�Function�tokensr�r�r�r�r�rsh
���+�
�
����=z.*?
c@s"eZdZdZdZdgZdd�ZdS)rz�
    For Matlab sessions.  Modeled after PythonConsoleLexer.
    Contributed by Ken Schutte <kschutte@csail.mit.edu>.

    .. versionadded:: 0.10
    zMatlab sessionZ
matlabsessionc
	cs@tf|j�}d}g}t�|�D]�}|��}|�d�rj|�t|�dtj	|dd�fgf�||dd�7}q|�d�r�|�t|�dtj	|dd�fgf�||dd�7}q|�d�r�t|�}dtj
|f}|�||gf�q|�rt||�|��D]
}	|	Vq�d}g}|�
�tj|fVq|�r<t||�|��D]}	|	V�q.dS)N�z>> r�z>>�z???)rZoptions�line_re�finditer�group�
startswith�append�lenrZPrompt�	Tracebackr�get_tokens_unprocessed�startZOutput)
�selfr�ZmlexerZcurcodeZ
insertionsr��line�idx�token�itemr�r�r�r��sD

�

�
��z)MatlabSessionLexer.get_tokens_unprocessedN)r�r�r�r�r�r�r�r�r�r�r�r�sc@s*eZdZdZdZdgZdgZdgZdZdZ	dZ
d	Zd
ZdZ
defd
edfeddd�efeee	e
eedd�ejfee
dd�ejfdefdefdefdefdefdefdefdejfdejfdejfdefdedfdefd efgd!ed"fgd#eeeeeeejeeee�
d"fd$eeej�d"fgd%�Zd&S)'rz@
    For GNU Octave source code.

    .. versionadded:: 1.5
    ZOctaveZoctaverztext/octave(=ZaddlistenerZaddpathZaddproperty�all�and�anyZargnames�argvZassignin�atexitZautoloadZavailable_graphics_toolkitsZ
beep_on_errorZbitandZbitmaxZbitorZbitshiftZbitxorr�ZcellZcellstr�char�classZclc�columnsZcommand_line_pathZcompletion_append_charZcompletion_matchesrEZconfirm_recursive_rmdirZcputimeZcrash_dumps_octave_coreZ
ctransposeZcumprodZcumsumZdebug_on_errorZdebug_on_interruptZdebug_on_warningZdefault_save_optionsZdellistenerr�Zdiffr~Zdoc_cache_fileZdo_string_escapesZdoubleZdrawnow�eZecho_executing_commandsr��eq�errnoZ
errno_list�error�evalZevalin�execZexist�exitrrZfalseZfclearZfcloseZfcntlZfdispZfeofZferrorZfevalZfflushZfgetlZfgetsZ
fieldnamesZfile_in_loadpathZfile_in_pathZ
filemarkerZfilesepZfind_dir_in_pathZfixed_point_formatZfnmatchZfopen�forkZformulaZfprintfZfputsZfreadZfreportZfrewindZfscanfZfseekZfskiplZftellZ	functionsZfwrite�geZgenpath�get�getegid�getenv�geteuid�getgid�getpgrp�getpid�getppid�getuid�glob�gtZgui_modeZhistory_controlZhistory_fileZhistory_sizeZhistory_timestamp_format_string�homeZhorzcatr;ZifelseZignore_function_time_stampZ
inferiortoZ	info_fileZinfo_programZinline�inputZintmaxZintminr�Zis_absolute_filenameZisargoutZisboolZiscellZ	iscellstrZischarZ	iscomplexrZisfieldZisfloatZisglobalZishandleZisieeeZisindexZ	isintegerZ	islogicalZismatrixZismethodZisnull�	isnumericZisobjectrJZis_rooted_relative_filenameZissortedZisstructZ	isvarnameZkbhitZkeyboard�killZlasterrZ	lasterrorZlastwarnZldivide�ler{�linkrvZlogical�lstat�ltZmake_absolute_filenameZmakeinfo_programZmax_recursion_depth�merger�Z	mfilenameZminusZ	mislocked�mkdir�mkfifoZmkstempZmldivideZmlockZmouse_wheel_zoomZmpowerZmrdivideZmtimesZmunlockZnarginZnargoutZnative_float_formatr|�neZnfieldsZnnzZnorm�notr}ZnzmaxZoctave_config_infoZoctave_core_file_limitZoctave_core_file_nameZoctave_core_file_optionsrq�orZoutput_max_field_widthZoutput_precisionZpage_output_immediatelyZpage_screen_output�path�pathsep�pauseZpcloser�r��pipeZplus�popenZpowerZprint_empty_dimensionsZprintfZprint_struct_array_contentsZprodZprogram_invocation_nameZprogram_name�putenvZputs�pwd�quitrlZrdivideZreaddir�readlinkZread_readline_init_filer�r�Zrehash�renameZrepelemsZre_read_readline_init_file�resetr�ZresizeZrestoredefaultpathZrethrow�rmdirZrmfieldZrmpathZrowsZsave_header_format_stringZsave_precisionZsaving_historyZscanf�setZsetenvZ	shell_cmdZsighup_dumps_octave_coreZsigterm_dumps_octave_coreZsilent_functionsZsinglerzZ
size_equalZsizemaxZsizeof�sleep�sourceZsparse_auto_mutateZsplit_long_rowsZsprintfr�Zsscanf�stat�stderr�stdin�stdoutZstrcmpZstrcmpiZstring_fill_charZstrncmpZstrncmpiZstructZstruct_levels_to_printZstrvcatZsubsasgnZsubsref�sumZsumsqZ
superiortoZsuppress_verbose_help_message�symlink�systemZticZtilde_expand�timesZtmpfileZtmpnamZtocZtoupperZ	transpose�trueZtypeinfo�umaskZuminus�unameZundo_string_escapes�unlinkZuplus�upperZusageZusleepZvecZ	vectorizeZvertcat�waitpidZwarningZwarrantyZwhos_line_formatZ	yes_or_norpr�ZInfr�ZNaN)�close�loadZwhoZwhos(hryZaccumdimr!r9r3Z	addtodateZallchildZancestorZanovaZarch_fitZarch_rndZ	arch_testZareaZarma_rndZarrayfun�ascii�asctimer-r�assertr'Zautoreg_matrixZautumnZaxesZaxisZbarZbarhZbartlettZ
bartlett_testZbeepZbetacdfZbetainvZbetapdfZbetarndZbicgstabZbicubic�binaryZbinocdfZbinoinvZbinopdfZbinorndZbitcmpZbitgetZbitsetZblackmanZblanksr�ZboneZboxZbrightenZcalendar�castZ
cauchy_cdfZ
cauchy_invZ
cauchy_pdfZ
cauchy_rndZcaxisZcelldisp�centerZcgsZchisquare_test_homogeneityZchisquare_test_independencer�ZclaZclabelZclfZclockZcloglogZclosereqZcolonZcolorbarZcolormapZcolpermZcometZcommon_sizeZcommutation_matrixr�Zcompare_versionsZcompassZcomputerZcondZcondestZcontourZcontourcZcontourfZcontrastZconvZconvhullZcoolZcopperZcopyfileZcorZcorrcoefZcor_testrr6ZcovrKrdr0ZcstrcatZcsvreadZcsvwrite�ctimeZcumtrapzZcurlZcutZcylinder�dateZdatenumZdatestrZdatetickZdatevecZdblquadZdealZdeblankZdeconvZdelaunayZ	delaunayn�deleteZdemoZdetrendZdiffparaZdiffuse�dirZdiscrete_cdfZdiscrete_invZdiscrete_pdfZdiscrete_rndZdisplayZ
divergenceZdlmwriteZdosZdsearchZdsearchnZduplication_matrixZdurbinlevinsonZ	ellipsoidZ
empirical_cdfZ
empirical_invZ
empirical_pdfZ
empirical_rndZeomdayZerrorbarZetimeZ	etreeplotZexampleZexpcdfZexpinvZexpmZexppdfZexprndZ	ezcontourZ
ezcontourfZezmeshZezmeshcZezplotZezpolarZezsurfZezsurfcrfroZfailZfcdfZfeatherZfftconvZfftfiltZfftshiftZfigureZ
fileattribZ	filepartsZfill�findallZfindobjZfindstrZfinv�flagr�r�r�ZfpdfZfplotZ	fractdiffZfreqzZ
freqz_plotZfrndZfsolveZf_test_regressionZftpZfullfileZfzeroZgamcdfZgaminvZgampdfZgamrndZgcaZgcbfZgcboZgcfZ
genvarnameZgeocdfZgeoinvZgeopdfZgeorndZgetfieldZginputZglpkZglsZgplotZgradientZgraphics_toolkitZgrayZgridZgriddataZ	griddatanZgtextZgunzipZgzipr�Zhammingr�ZhanningZhggroupZhiddenr�ZhistZhistcZholdZhotZhotelling_testZhoushZhsvZhurstZhygecdfZhygeinvZhygepdfZhygerndZidivideZ	ifftshiftZimageZimagescZimfinfoZimreadZimshowZimwrite�index�infoZ	inpolygonZ	inputnameZinterpftZinterpnZ	intersectr�ZiqrZisaZ
isdefinite�isdirZis_duplicate_entryr�r�ZisfigureZishermitianZ
ishghandleZis_leap_yearZisletterZismacZismemberZispcrgZispropr�ZissquareZ	isstrpropZissymmetricZisunixZis_valid_file_idr�ZjetZkendallZkolmogorov_smirnov_cdfZkolmogorov_smirnov_testZkruskal_wallis_testZkrylovZkurtosisZlaplace_cdfZlaplace_invZlaplace_pdfZlaplace_rndZlegendrc�licenser�ZlinkpropZlist_primesZ	loadaudioZloadobjZlogistic_cdfZlogistic_invZlogistic_pdfZlogistic_rndZlogitZloglogZ	loglogerrZlogmZlogncdfZlogninvZlognpdfZlognrndrwZlookforZ
ls_commandZ	lsqnonnegr�ZmahalanobisZmanovaZ
matlabrootZmcnemar_testZmeanZmeansqZmedianZmenuZmeshZmeshcrxZmeshzZmexextZmgetZmkpp�modeZmomentZmovefileZmpolesZmputZ
namelengthmaxZnargchkZ
nargoutchkZnbincdfZnbininvZnbinpdfZnbinrndrnr�ZnewplotZnewsZnonzerosZnormcdfZnormestZnorminvZnormpdfZnormrndZnowrBZnullZoceanZolsZ
onenormestZoptimgetZoptimsetZorderfieldsZorientZorthZpackZparetoZparseparamsr�ZpatchZpathdefZpcgZpchipZpcolorZpcrZpeaksZperiodogramZperlrmZpieZpinkZplanerotZ	playaudioZplotZ
plotmatrixZplotyyZpoisscdfZpoissinvZpoisspdfZpoissrndZpolarZpolyZ
polyaffineZpolyareaZ	polyderivZpolyfitZpolygcdZpolyintZpolyoutZ
polyreduceZpolyvalZpolyvalmZpostpadZpowersetZppderZppintZppjumpsZppplotZppvalZ	pqpnonnegZprepadrh�printZprint_usageZprismZprobitZqpZqqplotZquadccZquadgkZquadlZquadvZquiverZqzhessZrainbowZrandi�rangeZrankZranksrkr?r>r@�recordZrectangle_lwZrectangle_swZrectintZrefreshZrefreshdataZregexptranslatersZresidueZribbon�rindex�rootsZroser�ZrotdimZrref�runZ	run_countZrundemosZrun_testZruntestsZsaveasZ	saveaudioZsaveobjZsavepathZscatterr*ZsemilogxZsemilogxerrZsemilogyZsemilogyerrZsetaudioZsetdiffZsetfieldZsetxorZshading�shiftr�Z	sign_testZsincrZsinetoneZsinewaveZskewness�sliceZsombreroZsortrowsZ	spaugmentZ	spconvertZspdiagsZspearmanZspectral_adfZspectral_xdfZspecularZspeedZspencerZspeyeZspfunZsphereZspinmapZsplineZsponesZsprandZsprandnZ	sprandsymZspringZspstatsZspyZsqpZstairsZ
statisticsZstdZ
stdnormal_cdfZ
stdnormal_invZ
stdnormal_pdfZ
stdnormal_rndZstemZstftZstrcatZstrchrZstrjustZstrmatchZstrreadZstrsplitZstrtokZstrtrimZstrtruncZ	structfunZ
studentizeZsubplotZ	subsindexZsubspaceZsubstrZ	substructZsummerZsurfZsurfaceZsurfcZsurflZsurfnormZsvdsZ	swapbytesZsylvester_matrixZsymvarZ	synthesis�tabler$ZtarZtcdfZtempdirZtempnameZtestr�ZtextreadZtextscanZtinv�titler�ZtpdfZtraceZtrapzZ
treelayoutZtreeplotZtriangle_lwZtriangle_swr�ZtrimeshZ
triplequadZtriplotZtrisurfr�ZtrndZtsearchnZt_testZt_test_regression�typeZunidcdfZunidinvZunidpdfZunidrndZunifcdfZunifinvZunifpdfZunifrnd�union�uniqueZunixZunmkppZunpackZuntabifyZuntarrIZunzipZu_testZvalidatestringr��varZvar_testZvechZver�versionZviewZvoronoiZvoronoinZwaitforbuttonpressZwavreadZwavwriteZwblcdfZwblinvZwblpdfZwblrndZweekdayZ
welch_testZwhatZwhiteZwhitebgZwienrndZ
wilcoxon_testr�ZwinterZxlabelZxlimZylabelZ
yulewalker�zipZzlabelZz_test)�rSZamdZbalancerVrWrTrXrUZbitpackr�ZbuiltinZccolamdZcellfunZ
cellslicesZcholZ
choldeleteZ
cholinsertZcholinvZ	cholshiftZ
cholupdateZcolamdZcollocZ	convhullnZconvnZcsymamdZcummaxZcumminZdaspkZ
daspk_optionsZdasrtZ
dasrt_optionsZdasslZ
dassl_optionsZdbclearZdbdownZdbstackZdbstatusZdbstopZdbtypeZdbupZdbwhereZdetZdlmreadZdmpermreZeigZeigsZendgrentZendpwentZetreeZfftZfftnZfftw�filterr�ZfullriZgetgrentZgetgrgidZgetgrnamZgetpwent�getpwnam�getpwuidZ	getrusageZgivens�gmtimeZgnuplot_binaryZhessZifftZifftn�invZisdebugmodeZissparseZkron�	localtime�lookupZlsodeZ
lsode_optionsZluZluincZluupdateZmatrix_type�max�min�mktimeZpinvZqrZqrdeleteZqrinsertZqrshiftZqrupdateZquadZquad_optionsZqzrtZrandeZrandgruZrandpZrandpermZrcondZregexpZregexpiZ	regexprepZschurZsetgrentZsetpwent�sortZspallocZsparseZspparmsZsprankZsqrtmZstrfind�strftime�strptimeZstrrepZsvdZ
svd_driverZsylZsymamdZsymbfactZsymrcm�timeZtsearchZtypecastZurlreadZurlwrite)MrCr r"r8r:r2r4rD�argr,r.rrr&r(rYrZr[ZbincoeffZcbrtrNrFrrr5r7r/r1r\r]r^r_r<ZfiniterLrMZfmodr`rarbrG�isalnum�isalpha�isasciiZiscntrl�isdigitr�Zisgraphr��islowerZisnar�ZisprintZispunct�isspace�isupperZisxdigitrjZlgammar=�lowerrPrHrQrOZroundbr)r+rRrrrAr#r%Ztoascii�tolower�xor)ZEDITORZ	EXEC_PATH�IZ
IMAGE_PATHZNAZOCTAVE_HOMEZOCTAVE_VERSIONZPAGERZPAGER_FLAGS�SEEK_CUR�SEEK_END�SEEK_SETZSIG�S_ISBLK�S_ISCHR�S_ISDIR�S_ISFIFO�S_ISLNK�S_ISREG�S_ISSOCKZ	WCONTINUE�	WCOREDUMP�WEXITSTATUS�WIFCONTINUED�	WIFEXITED�WIFSIGNALED�
WIFSTOPPED�WNOHANG�WSTOPSIG�WTERMSIG�	WUNTRACEDz[%#].*$r�r��)Z__FILE__Z__LINE__r�r�r�r�r�Zdor�r�r�Z
end_try_catchZend_unwind_protectZendclassdefZ	endeventsZendforZendfunctionZendifZ
endmethodsZ
endpropertiesZ	endswitchZendwhiler�r�r�rr�r�r�r�r�r�r�r3Zstaticr�r�ZuntilZunwind_protectZunwind_protect_cleanupr�r�r�z
-=|!=|!|/=|--r�z$\*=|\+=|\^=|\/=|\\=|\*\*|\+\+|\.\*\*r�z[\[\](){}:@.,]r��"[^"]*"r�r�r�r�r�r�r�r��[^']*'r�r�r��r�r�r�N)r�r�r�r�r�r�r�r�Z
builtin_kwZ
command_kwZfunction_kwZloadable_kwZ
mapping_kwZbuiltin_constsrr
rrr��Constantr	rrr
r�r�rrrr�r�r�r�r�r�r�spZ
��	���1�
����c@seZdZdZdZdgZdddgZdgZdej	fd	e
d
feddd
�e
feej
ejejdd
�ejfeejdd
�ejfdefdefdefdefdefdedfdejfdejfdejfdefdefgdedfdedfgdeeeeeeejeeee�
dfdeeej�dfgd�ZdS) rz<
    For Scilab source code.

    .. versionadded:: 1.5
    ZScilabZscilabz*.sciz*.scez*.tstztext/scilabz//.*?$r�r�r�r�r�r�r�z[\[\](){}@.,=:;]r�r�r�r�r�r�r�r�r�r�r�r�r�r�N)r�r�r�r�r�r�r�r�r�Singler
rrZfunctions_kwZcommands_kwZ	macros_kwrr�Zvariables_kwr�r	rrr
r�r�rrrr�r�r�r�r�r�rVsf
��	�����*�
����)r�r�Zpygments.lexerrrrrrZpygments.tokenrrr	r
rrr
rrrZpygments.lexersr�__all__r�compiler�rrrr�r�r�r��<module>s
0x
6