Your IP : 216.73.216.213


Current Path : /opt/alt/python37/lib/python3.7/site-packages/pygments/lexers/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib/python3.7/site-packages/pygments/lexers/__pycache__/matlab.cpython-37.pyc

B

ʽ�\�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-2019 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
    ZMatlabZmatlabz*.mztext/matlab)C�sin�sind�sinh�asin�asind�asinh�cos�cosd�cosh�acos�acosd�acosh�tan�tand�tanh�atan�atand�atan2�atanh�sec�secd�sech�asec�asecd�asech�csc�cscd�csch�acsc�acscd�acsch�cot�cotd�coth�acot�acotd�acoth�hypot�exp�expm1�log�log1p�log10�log2Zpow2�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�j�why�companZgallery�hadamard�hankel�hilb�invhilb�magic�pascal�rosser�toeplitz�vander�	wilkinsonz^!.*z%\{\s*\n�blockcommentz%.*$z^\s*function�deffunc)�break�case�catch�classdef�continue�else�elseifr�Z
enumerated�events�for�function�global�if�methods�	otherwiseZparfor�
persistent�
properties�returnZspmd�switch�try�whilez\b)�suffix�(�|z)\bz	\.\.\..*$z-|==|~=|<|>|<=|>=|&&|&|~|\|\|?z\.\*|\*|\+|\.\^|\.\\|\.\/|\/|\\z\[|\]|\(|\)|\{|\}|:|@|\.|,z=|:|;z(?<=[\w)\].])\'+z&(\d+\.\d*|\d*\.\d+)([eEf][+-]?[0-9]+)?z\d+[eEf][+-]?[0-9]+z\d+z(?<![\w)\].])\'�stringz[a-zA-Z_]\w*�.z[^\']*\'z#popz^\s*%\}z^.*\nz0(\s*)(?:(.+)(\s*)(=)(\s*))?(.+)(\()(.*)(\))(\s*)z(\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��G/opt/alt/python37/lib/python3.7/site-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�rsN






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
	csNtf|j�}d}g}�x
t�|�D]�}|��}|�d�rn|�t|�dtj	|dd�fgf�||dd�7}q"|�d�r�|�t|�dtj	|dd�fgf�||dd�7}q"|�d�r�t|�}dtj
|f}|�||gf�q"|�rxt||�|��D]
}	|	Vq�Wd}g}|�
�tj|fVq"W|�rJx t||�|��D]}	|	V�q:WdS)N�z>> r�z>>�z???)r�options�line_re�finditer�group�
startswith�append�lenrZPrompt�	Tracebackr�get_tokens_unprocessed�startZOutput)
�selfr�ZmlexerZcurcodeZ
insertionsr��line�idx�token�itemr�r�r�r��s8





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
    ZOctaveZoctavez*.mztext/octave(=ZaddlistenerZaddpathZaddproperty�all�and�any�argnames�argvZassignin�atexitZautoloadZavailable_graphics_toolkitsZ
beep_on_errorZbitandZbitmaxZbitorZbitshiftZbitxorr��cellZcellstr�char�classZclc�columnsZcommand_line_pathZcompletion_append_charZcompletion_matchesrIZconfirm_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�exitrv�falseZfclearZfcloseZfcntlZfdispZfeofZferrorZfevalZfflushZfgetlZfgetsZ
fieldnamesZfile_in_loadpathZfile_in_pathZ
filemarkerZfilesepZfind_dir_in_pathZfixed_point_format�fnmatchZfopen�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_program�inline�inputZintmaxZintminr�Zis_absolute_filenameZisargoutZisboolZiscellZ	iscellstrZischarZ	iscomplexr�ZisfieldZisfloatZisglobalZishandleZisieeeZisindexZ	isintegerZ	islogicalZismatrix�ismethodZisnull�	isnumericZisobjectrNZis_rooted_relative_filenameZissortedZisstructZ	isvarnameZkbhitZkeyboard�killZlasterrZ	lasterrorZlastwarnZldivide�ler�linkrzZlogical�lstat�ltZmake_absolute_filenameZmakeinfo_programZmax_recursion_depth�merger�Z	mfilenameZminusZ	mislocked�mkdir�mkfifo�mkstempZmldivideZmlockZmouse_wheel_zoomZmpowerZmrdivideZmtimesZmunlockZnarginZnargoutZnative_float_formatr��neZnfieldsZnnzZnorm�notr�ZnzmaxZoctave_config_infoZoctave_core_file_limitZoctave_core_file_nameZoctave_core_file_optionsru�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�quitrpZrdivideZreaddir�readlinkZread_readline_init_filer�r�Zrehash�renameZrepelemsZre_read_readline_init_file�resetr��resizeZrestoredefaultpathZrethrow�rmdirZrmfieldZrmpathZrowsZsave_header_format_stringZsave_precisionZsaving_historyZscanf�setZsetenvZ	shell_cmdZsighup_dumps_octave_coreZsigterm_dumps_octave_coreZsilent_functionsZsingler~Z
size_equalZsizemax�sizeof�sleep�sourceZsparse_auto_mutateZsplit_long_rowsZsprintfr�Zsscanf�stat�stderr�stdin�stdoutZstrcmpZstrcmpiZstring_fill_charZstrncmpZstrncmpi�structZstruct_levels_to_printZstrvcatZsubsasgnZsubsref�sumZsumsqZ
superiortoZsuppress_verbose_help_message�symlink�systemZticZtilde_expand�timesZtmpfile�tmpnamZtocZtoupperZ	transpose�trueZtypeinfo�umaskZuminus�unameZundo_string_escapes�unlinkZuplus�upper�usageZusleepZvecZ	vectorizeZvertcat�waitpidZwarningZwarrantyZwhos_line_formatZ	yes_or_nortr�ZInfr�ZNaN)�close�loadZwhoZwhos(hr}Zaccumdimr r9r3Z	addtodateZallchildZancestorZanovaZarch_fitZarch_rndZ	arch_testZareaZarma_rndZarrayfun�ascii�asctimer-r�assertr&Zautoreg_matrixZautumnZaxesZaxisZbarZbarhZbartlettZ
bartlett_testZbeepZbetacdfZbetainvZbetapdfZbetarndZbicgstabZbicubic�binaryZbinocdfZbinoinvZbinopdfZbinorndZbitcmpZbitgetZbitsetZblackmanZblanksr�ZboneZboxZbrighten�calendar�castZ
cauchy_cdfZ
cauchy_invZ
cauchy_pdfZ
cauchy_rndZcaxisZcelldisp�centerZcgsZchisquare_test_homogeneityZchisquare_test_independencer�ZclaZclabelZclf�clockZcloglogZclosereqZcolonZcolorbarZcolormapZcolpermZcometZcommon_sizeZcommutation_matrixr�Zcompare_versionsZcompassZcomputerZcondZcondestZcontourZcontourcZcontourfZcontrast�convZconvhullZcoolZcopper�copyfileZcorZcorrcoefZcor_testrr6ZcovrOrhr0ZcstrcatZcsvreadZcsvwrite�ctimeZcumtrapzZcurlZcutZcylinder�dateZdatenumZdatestrZdatetickZdatevecZdblquadZdealZdeblankZdeconvZdelaunayZ	delaunayn�deleteZdemoZdetrendZdiffparaZdiffuse�dirZdiscrete_cdfZdiscrete_invZdiscrete_pdfZdiscrete_rndZdisplayZ
divergenceZdlmwrite�dosZdsearchZdsearchnZduplication_matrixZdurbinlevinsonZ	ellipsoidZ
empirical_cdfZ
empirical_invZ
empirical_pdfZ
empirical_rndZeomdayZerrorbarZetimeZ	etreeplotZexampleZexpcdfZexpinvZexpmZexppdfZexprndZ	ezcontourZ
ezcontourfZezmeshZezmeshcZezplotZezpolarZezsurfZezsurfcrjrsZfailZfcdfZfeatherZfftconvZfftfiltZfftshiftZfigureZ
fileattribZ	fileparts�fill�findallZfindobjZfindstrZfinv�flagr�r�r�ZfpdfZfplotZ	fractdiffZfreqzZ
freqz_plotZfrndZfsolveZf_test_regression�ftpZfullfileZfzeroZgamcdfZgaminvZgampdfZgamrndZgcaZgcbfZgcboZgcfZ
genvarnameZgeocdfZgeoinvZgeopdfZgeorndZgetfieldZginputZglpkZglsZgplotZgradientZgraphics_toolkitZgrayZgridZgriddataZ	griddatanZgtextZgunzip�gzipr�Zhammingr�ZhanningZhggroupZhiddenr�ZhistZhistcZholdZhotZhotelling_testZhoushZhsvZhurstZhygecdfZhygeinvZhygepdfZhygerndZidivideZ	ifftshiftZimageZimagescZimfinfoZimreadZimshowZimwrite�index�infoZ	inpolygonZ	inputnameZinterpftZinterpnZ	intersectr�ZiqrZisaZ
isdefinite�isdirZis_duplicate_entryr�r�ZisfigureZishermitianZ
ishghandleZis_leap_yearZisletterZismacZismemberZispcrkZispropr�ZissquareZ	isstrpropZissymmetricZisunixZis_valid_file_idr�ZjetZkendallZkolmogorov_smirnov_cdfZkolmogorov_smirnov_testZkruskal_wallis_testZkrylovZkurtosisZlaplace_cdfZlaplace_invZlaplace_pdfZlaplace_rndZlegendrg�licenser�ZlinkpropZlist_primesZ	loadaudioZloadobjZlogistic_cdfZlogistic_invZlogistic_pdfZlogistic_rndZlogitZloglogZ	loglogerrZlogmZlogncdfZlogninvZlognpdfZlognrndr{ZlookforZ
ls_commandZ	lsqnonnegr�ZmahalanobisZmanovaZ
matlabrootZmcnemar_testZmeanZmeansqZmedianZmenuZmeshZmeshcr|ZmeshzZmexextZmgetZmkpp�modeZmomentZmovefileZmpolesZmputZ
namelengthmaxZnargchkZ
nargoutchkZnbincdfZnbininvZnbinpdfZnbinrndrrr�Znewplot�newsZnonzerosZnormcdfZnormestZnorminvZnormpdfZnormrnd�nowrFZnullZoceanZolsZ
onenormestZoptimgetZoptimsetZorderfieldsZorientZorth�packZparetoZparseparamsr��patchZpathdefZpcgZpchipZpcolorZpcrZpeaksZperiodogramZperlrqZpieZpinkZplanerotZ	playaudioZplotZ
plotmatrixZplotyyZpoisscdfZpoissinvZpoisspdfZpoissrndZpolarZpolyZ
polyaffineZpolyareaZ	polyderivZpolyfitZpolygcdZpolyintZpolyoutZ
polyreduceZpolyvalZpolyvalmZpostpadZpowersetZppderZppintZppjumpsZppplotZppvalZ	pqpnonnegZprepadrl�printZprint_usageZprismZprobitZqpZqqplotZquadccZquadgkZquadlZquadvZquiverZqzhessZrainbowZrandi�rangeZrankZranksrorCrBrD�recordZrectangle_lwZrectangle_swZrectintZrefreshZrefreshdataZregexptranslaterwZresidueZribbon�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#�tarZtcdf�tempdir�tempname�testr�ZtextreadZtextscanZtinv�titler�Ztpdf�traceZtrapzZ
treelayoutZtreeplotZtriangle_lwZtriangle_swr�ZtrimeshZ
triplequadZtriplotZtrisurfr�ZtrndZtsearchnZt_testZt_test_regression�typeZunidcdfZunidinvZunidpdfZunidrndZunifcdfZunifinvZunifpdfZunifrnd�union�unique�unixZunmkpp�unpackZuntabifyZuntarrMZunzipZu_testZvalidatestringr��varZvar_testZvech�ver�version�viewZvoronoiZvoronoinZwaitforbuttonpressZwavreadZwavwriteZwblcdfZwblinvZwblpdfZwblrnd�weekdayZ
welch_test�whatZwhiteZwhitebgZwienrndZ
wilcoxon_testr�ZwinterZxlabelZxlimZylabelZ
yulewalker�zipZzlabelZz_test)�rWZamdZbalancerZr[rXr\rYZbitpackr��builtinZccolamdZcellfunZ
cellslicesZcholZ
choldeleteZ
cholinsertZcholinvZ	cholshiftZ
cholupdateZcolamdZcollocZ	convhullnZconvnZcsymamdZcummaxZcumminZdaspkZ
daspk_optionsZdasrtZ
dasrt_optionsZdasslZ
dassl_optionsZdbclearZdbdownZdbstackZdbstatusZdbstopZdbtypeZdbupZdbwhereZdetZdlmreadZdmpermriZeigZeigsZendgrentZendpwent�etreeZfftZfftnZfftw�filterr��fullrmZgetgrent�getgrgid�getgrnamZgetpwent�getpwnam�getpwuidZ	getrusageZgivens�gmtimeZgnuplot_binaryZhessZifftZifftn�invZisdebugmodeZissparseZkron�	localtime�lookupZlsodeZ
lsode_optionsZluZluincZluupdateZmatrix_type�max�min�mktimeZpinvZqrZqrdeleteZqrinsertZqrshiftZqrupdateZquadZquad_optionsZqzrxZrandeZrandgryZrandpZrandpermZrcondZregexpZregexpiZ	regexprepZschurZsetgrentZsetpwent�sortZspallocZsparseZspparmsZsprankZsqrtmZstrfind�strftime�strptimeZstrrepZsvdZ
svd_driverZsylZsymamdZsymbfactZsymrcm�timeZtsearchZtypecastZurlreadZurlwrite)MrGrr!r8r:r2r4rH�argr,r.rrr%r(r]r^r_ZbincoeffZcbrtrRrJrrr5r7r/r1r`rarbrcr<ZfiniterPrQ�fmodrdrerfrK�isalnum�isalpha�isasciiZiscntrl�isdigitr�Zisgraphr��islowerZisnar�ZisprintZispunct�isspace�isupperZisxdigitrn�lgammar>�lowerrTrLrUrSZroundbr)r+rVrrrEr"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[%#].*$z^\s*functionr�))�__FILE__�__LINE__r�r�r�r�r��dor�r�r��
end_try_catch�end_unwind_protect�endclassdef�	endevents�endfor�endfunction�endif�
endmethods�
endproperties�	endswitch�endwhiler�r�r�r	r�r�r�r�r�r�r�r2�staticr�r��until�unwind_protect�unwind_protect_cleanupr�z\b)r�z
-=|!=|!|/=|--z-|==|~=|<|>|<=|>=|&&|&|~|\|\|?z$\*=|\+=|\^=|\/=|\\=|\*\*|\+\+|\.\*\*z\.\*|\*|\+|\.\^|\.\\|\.\/|\/|\\z[\[\](){}:@.,]z=|:|;z"[^"]*"z&(\d+\.\d*|\d*\.\d+)([eEf][+-]?[0-9]+)?z\d+[eEf][+-]?[0-9]+z\d+z(?<=[\w)\].])\'+z(?<![\w)\].])\'r�z[a-zA-Z_]\w*r�z[^']*'z#popz0(\s*)(?:(.+)(\s*)(=)(\s*))?(.+)(\()(.*)(\))(\s*)z(\s*)([a-zA-Z_]\w*))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�sRY



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//.*?$z^\s*functionr�))r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r	r�r�r�r�r�r�r�r2r�r�r�r�r�r�r�z\b)r�z-|==|~=|<|>|<=|>=|&&|&|~|\|\|?z\.\*|\*|\+|\.\^|\.\\|\.\/|\/|\\z[\[\](){}@.,=:;]z"[^"]*"z(?<=[\w)\].])\'+z(?<![\w)\].])\'r�z&(\d+\.\d*|\d*\.\d+)([eEf][+-]?[0-9]+)?z\d+[eEf][+-]?[0-9]+z\d+z[a-zA-Z_]\w*r�z[^']*'z#popz0(\s*)(?:(.+)(\s*)(=)(\s*))?(.+)(\()(.*)(\))(\s*)z(\s*)([a-zA-Z_]\w*))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�rVsB





)r�r�Zpygments.lexerrrrrrZpygments.tokenrrr	r
rrr
rrrZpygments.lexersr�__all__r�compiler�rrrr�r�r�r��<module>
s0x
6