3

V'íc…1ã@sbdZddlmZmZmZmZddlmZmZm	Z	m
Z
mZmZm
Z
mZmZdgZGdd„deƒZdS)z¾
    pygments.lexers.praat
    ~~~~~~~~~~~~~~~~~~~~~

    Lexer for Praat

    :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
é)Ú
RegexLexerÚwordsÚbygroupsÚinclude)	ÚNameÚTextÚCommentÚKeywordÚStringÚPunctuationÚNumberÚOperatorÚ
WhitespaceÚ
PraatLexerc@seZdZdZdZdZdgZdddgZd´ZdµZ	d¶Z
d·Zd¸Zd¹Z
dºZd»Zdgeeejƒfdhejfdiejfdjefdkedlfdmednfdoejdnfedpƒeedqdrefdseeeeƒdtfdueeeƒdvfdweeeejƒfedxƒed”ƒdyed8feedzdrejdvfd{ed|fd}efgd~efedƒd€ed¼fdƒed½fd…edfgdjefd†eejeejeƒdfd‡ejd¾fgd…efdˆeejeƒdfd‰eejeƒdfgee	dŠdrejd‹feedŒdrejd‹fee
ddrejd‹fgdjefdƒed¿fdŽedÀfgdeeeƒfdeeeeƒdfdjefdyed8fd‘efedpƒedxƒed’ƒed”ƒd“efd”efgd•edfedxƒed’ƒed”ƒdyed8fd–efgd•edfd—efgedƒd˜ejfeed™dšejdfd›ejfdœedfged’ƒed”ƒeed›drej j!fee
ddrej j!feedqdždŸeejejƒd fd¡efd¢ed„fedƒgd£e"fd¤e"j#fgd¥ej$fgd¦eeeƒfd•edfd…efedƒd§efd¨efgd¦eeeƒfdyedfedƒd§efd©efgdgeeejƒfdjefdªeeeeeeƒd”fd«eeeƒdvfd¬eeeeƒdvfd­eeeeeeeeƒfd®eeeej ƒfd¯eeee"eƒfd°eeeƒdvfd±edfg
d²œZ%d³S(Árz7
    For Praat scripts.

    .. versionadded:: 2.1
    ZPraatzhttp://www.praat.orgZpraatz*.praatz*.procz*.pscÚifÚthenÚelseÚelsifÚelifÚendifÚfiÚforÚfromÚtoÚendforÚendprocÚwhileÚendwhileÚrepeatÚuntilÚselectÚplusÚminusÚdemoÚassertÚ	stopwatchÚnocheckÚnowarnÚ
noprogressÚeditorÚ	endeditorÚ	clearinfoÚbackslashTrigraphsToUnicodeÚchooseDirectoryÚchooseReadFileÚchooseWriteFileÚdateÚdemoKeyÚdoÚenvironmentÚextractLineÚextractWordÚfixedÚinfoÚleftÚmidÚpercentÚreadFileÚreplaceÚ
replace_regexÚrightÚselectedÚstringÚunicodeToBackslashTrigraphsÚabsÚ
appendFileÚappendFileLineÚ
appendInfoÚappendInfoLineÚarccosÚarccoshÚarcsinÚarcsinhÚarctanÚarctan2ÚarctanhÚbarkToHertzÚ
beginPauseÚbeginSendPraatÚbesselIÚbesselKÚbetaÚbeta2Ú	binomialPÚ	binomialQÚbooleanÚceilingÚ
chiSquarePÚ
chiSquareQÚchoiceÚcommentÚcosÚcoshÚcreateDirectoryÚ
deleteFileÚdemoClickedÚ
demoClickedInÚdemoCommandKeyPressedÚdemoExtraControlKeyPressedÚ	demoInputÚdemoKeyPressedÚdemoOptionKeyPressedÚdemoShiftKeyPressedÚdemoShowÚdemoWaitForInputÚdemoWindowTitleÚdemoXÚdemoYÚdifferenceLimensToPhonÚendPauseÚendSendPraatÚendsWithÚerbÚ
erbToHertzÚerfÚerfcÚ
exitScriptÚexpÚ
extractNumberÚfileReadableÚfisherPÚfisherQÚfloorÚgaussPÚgaussQÚhertzToBarkÚ
hertzToErbÚ
hertzToMelÚhertzToSemitonesÚimaxÚiminÚincompleteBetaÚincompleteGammaPÚindexÚindex_regexÚintegerÚinvBinomialPÚinvBinomialQÚ
invChiSquareQÚ
invFisherQÚ	invGaussQÚ
invSigmoidÚinvStudentQÚlengthÚlnÚlnBetaÚlnGammaÚlog10Úlog2ÚmaxÚ
melToHertzÚminÚminusObjectÚnaturalÚnumberÚnumberOfColumnsÚnumberOfRowsÚnumberOfSelectedÚobjectsAreIdenticalÚoptionÚ
optionMenuÚpauseScriptÚphonToDifferenceLimensÚ
plusObjectÚpositiveÚrandomBinomialÚrandomGaussÚ
randomIntegerÚ
randomPoissonÚ
randomUniformÚrealÚremoveObjectÚrindexÚrindex_regexÚroundÚ	runScriptÚ	runSystemÚrunSystem_nocheckÚselectObjectÚsemitonesToHertzÚsentenceÚsentencetextÚsigmoidÚsinÚsincÚsincpiÚsinhÚsoundPressureToPhonÚsqrtÚ
startsWithÚstudentPÚstudentQÚtanÚtanhÚtextÚvariableExistsÚwordÚ	writeFileÚ
writeFileLineÚ	writeInfoÚ
writeInfoLineÚlinearÚzeroÚ
ActivationÚAffineTransformÚ
AmplitudeTierÚArtÚArtwordÚAutosegmentÚ
BarkFilterÚBarkSpectrogramÚCCAÚ
CategoriesÚCepstrogramÚCepstrumÚ	CepstrumcÚChebyshevSeriesÚClassificationTableÚCochleagramÚ
CollectionÚComplexSpectrogramÚ
ConfigurationÚ	ConfusionÚContingencyTableÚCorpusÚCorrelationÚ
CovarianceÚCrossCorrelationTableÚCrossCorrelationTablesÚDTWÚDataModelerÚDiagonalizerÚDiscriminantÚ
DissimilarityÚDistanceÚ
DistributionsÚDurationTierÚEEGÚERPÚERPTierÚEditCostsTableÚEditDistanceTableÚEigenÚ
ExcitationÚExcitationsÚ
ExperimentMFCÚFFNetÚFeatureWeightsÚFileInMemoryÚ
FilesInMemoryÚFormantÚ
FormantFilterÚFormantGridÚFormantModelerÚFormantPointÚFormantTierÚGaussianMixtureÚHMMÚHMM_ObservationÚHMM_ObservationSequenceÚ	HMM_StateÚHMM_StateSequenceÚHarmonicityÚISplineÚIndexÚ	IntensityÚ
IntensityTierÚIntervalTierÚKNNÚ	KlattGridÚ
KlattTableÚLFCCÚLPCÚLabelÚLegendreSeriesÚLinearRegressionÚLogisticRegressionÚ	LongSoundÚLtasÚMFCCÚMSplineÚManPagesÚManipulationÚMatrixÚ	MelFilterÚMelSpectrogramÚMixingMatrixÚMovieÚNetworkÚObjectÚ	OTGrammarÚ	OTHistoryÚOTMultiÚPCAÚPairDistributionÚ
ParamCurveÚPatternÚPermutationÚPhotoÚPitchÚPitchModelerÚ	PitchTierÚPointProcessÚPolygonÚ
PolynomialÚPowerCepstrogramÚ
PowerCepstrumÚ
ProcrustesÚ	RealPointÚRealTierÚ
ResultsMFCÚRootsÚSPINETÚSSCPÚSVDÚSalienceÚ
ScalarProductÚ
SimilarityÚSimpleStringÚSortedSetOfStringÚSoundÚSpeakerÚSpectrogramÚSpectrumÚSpectrumTierÚSpeechSynthesizerÚSpellingCheckerÚStringsÚStringsIndexÚTableÚTableOfRealÚTextGridÚTextIntervalÚ	TextPointÚTextTierÚTierÚ
TransitionÚ
VocalTractÚVocalTractTierÚWeightÚWordListÚ	macintoshÚwindowsÚunixÚpraatVersionÚpiÚeÚ	undefinedÚtabÚshellDirectoryÚ
homeDirectoryÚpreferencesDirectoryÚnewlineÚtemporaryDirectoryÚdefaultDirectoryÚncolÚnrowÚxminÚyminÚxmaxÚymaxÚnxÚnyÚdxÚdyz(\s+)(#.*?$)z^#.*?$z;[^\n]*z\s+z
\bprocedure\bÚprocedure_definitionz\bcall\bÚprocedure_callú@Ú
function_callz\b)Úsuffixz(\bform\b)(\s+)([^\n]+)Úold_formzn(print(?:line|tab)?|echo|exit|asserterror|pause|send(?:praat|socket)|include|execute|system(?:_nocheck)?)(\s+)Ústring_unquotedz(goto|label)(\s+)(\w+)Ú
variable_nameú"z(?=\s+\S+\n)z\b[A-Z]Úcommandz
(\.{3}|[)(,])z( ?[\w()-]+ ?)Ústring_interpolatedz\.{3}ú#popÚ
old_argumentsú:Ú
comma_listz\sz([\w.]+)(?:(:)|(?:(\s*)(\()))z([\w.]+)z([\w.]+)(\s*?[(:])z([\w.]+)([^\n]*)z
\$(?=\s*[:(])Úfunctionz#(?=\s*[:(])z(?=\s*[:(])z\s*\(z(\s*\n\s*)(\.{3})z(\s*)(?:([)\]])|(\n))z\b(if|then|else|fi|endif)\bÚoperatorz[()]ú,z\nz[^\n]z\b\d+(\.\d*)?([eE][-+]?\d+)?%?z([a-z][a-zA-Z0-9_]*|\d+)z\.)Úprefixz\$z\[z"(?=[^a-zA-Z0-9_."\'$#\[:(]|\s|^|$)z(_))rrsÚobject_referencez\.?_?[a-z][\w.]*(\$|#)?z[\[\]]z!([+\/*<>=!-]=?|[&*|][&*|]?|\^|<>)z'(?<![\w.])(and|or|not|div|mod)(?![\w.])z8\'[_a-z][^\[\]\'":]*(\[([\d,]+|"[\w,]+")\])?(:[0-9]+)?\'z(\n\s*)(\.{3})ú'z[^'\n]+z	[^\'"\n]+z+(optionmenu|choice)([ \t]+)(\S+)(:)([ \t]+)z(option|button)([ \t]+)z(sentence|text)([ \t]+)(\S+)z2(word)([ \t]+)(\S+)([ \t]*)(\S+)?(?:([ \t]+)(.*))?z((boolean)(\s+\S+\s*)(0|1|"?(?:yes|no)"?)zY(real|natural|positive|integer)([ \t]+\S+[ \t]*)([+-]?)(\d+(?:\.\d*)?(?:[eE][-+]?\d+)?%?)z(comment)(\s+)z\bendform\b)Úrootrxrprorrr~r}r{rœr‚rvrryrur@rtN)rrrrrrrrrrrrrrrrr r!r"r#r$r%r&r'r(r)r*r+)r,r-r.r/r0r1r2r3r4r5r6r7r8r9r:r;r<r=r>r?r@rA)rBrCrDrErFrGrHrIrJrKrLrMrNrOrPrQrRrSrTrUrVrWrXrYrZr[r\r]r^r_r`rarbrcrdrerfrgrhrirjrkrlrmrnr2r)rorprqrrrsrtrurvrwrxryrzr{r|r}r~rr€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¡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À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Þ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ÿrrrrrrrrrr	r
rrr
rrrrrrrrrrrrrrrrrrr r!r"r#r$r%r&r'r(r)r*r+r,r-r.r/r0r1r2r3r4r5r6r7r8r9r:r;r<r=r>r?r@rArBrCrDrErFrGrHrIrJrKrLrMrNrOrPrQrRrSrTrUrV)rWrXrYrZr[r\r])rZr^r_r`rarbrcrd)
rerfrgrhrirjrkrlrmrn)rzr{)rzr})rzr{)rzr})rzr})&Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚnameÚurlÚaliasesÚ	filenamesÚkeywordsZfunctions_stringZfunctions_numericZfunctions_arrayZobjectsZvariables_numericZvariables_stringZobject_attributesrrrÚSingler	rZFunctionrrr
rZClassrrrZBuiltinÚVariableÚGlobalr
ÚWordZInterpolÚtokens©r“r“ú9/tmp/pip-build-gk9425m9/Pygments/pygments/lexers/praat.pyrsh















N)rˆZpygments.lexerrrrrZpygments.tokenrrrr	r
rrr
rÚ__all__rr“r“r“r”Ú<module>	s,