o
    0 i!i                     @   sB   d Z ddlmZmZmZmZ ddlmZ dgZG dd deZ	dS )z
    pygments.lexers.freefem
    ~~~~~~~~~~~~~~~~~~~~~~~

    Lexer for FreeFem++ language.

    :copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
    )CommentOperatorKeywordName)CppLexerFreeFemLexerc                   @   s~   e Zd ZdZdZdZdgZdgZdgZdZ	h dZ
h d	Zh d
Zh dZh dZh dZh dZdhZh dZdddZdS )r   z|
    For FreeFem++ source.

    This is an extension of the CppLexer, as the FreeFem Language is a superset
    of C++.
    Freefemzhttps://freefem.org/freefemz*.edpztext/x-freefemz2.4>   z^-1+^-*'z.*z./:/%>   ZvarfZNewMacroZfespacefuncrealmacroZmpiGroupZ	gslsplineZifstreamZEndMacromatrixintproblemZ
PsemaphoreZsolveZmesh3complexborderZPmmapZ
mpiRequestboolstringZdmatrixZofstreamZmeshZmpiComm>*   ZP4EdgeZP1EdgeZP1dcZBDM1ZRT1OrthoZP2BRZRT2OrthoZP23dZP13dZP4dcZRT1ZRT2ZP4ZP2bZP0EdgeZEdge03dZP3EdgeZEdge23dZRT0OrthoZP2MorleyZRT03dZP1bl3dZEdge13dZRT0ZP2ZFEQFZHCTZP1bZP1blZP2EdgeZP2dcZP2hZP2pncZP0ZP3dcZP03dZP1Z	BDM1OrthoZP1ncZP5EdgeZP3ZP1b3d>   Z
ENDIFMACROZIFMACROloadinclude>p   ZmpiLANDZmpisizeZ
nuTriangleZmpiCommWorldZcinZimZLINEZffindl2Zqf3pEZ
scientificZsparsesolverZlenEdgelabell1ZmpiPRODZndof	verbosityfindxZqf5pTZnbeZqfnbpEntZqf2pTZmpiAnySourcemeasureZ	noshowposappendNZ	qf1pTlumprfindregionZqf1pEZqfV1lumpZqf9pTZmpiLORZqf7pTZqf2pT4P1Zqf5pEZmpiMAXrebelengthnvZmpiMINZedgeOrientationZ	hTriangleZmpiLXORdefaultfalseZmpiUndefinedareaZARGVZGMRESZcoutZCholeskyversionadjZsearchMethodZ
noshowbaseZsetwZbordermeasureZendlynZqfV2trueminZshowbase	precisionpiZwhoinElementFILEZgoodZiminzmaxZimaxZlinftyZndofKZnTonEdgevolumeZCGZqf1pTsumZtellpZ	qf1pElumpfixedZInternalEdgeZBoundaryEdgeZqf4pEZLUZnuEdgeZqfV1Zqf2pEflushZmpiSUMZmpirankZmpiBXORZ
notaregionbinaryZdiagZqfV5mZUMFPACKZCroutZunusedZquantileZmpiBANDPZshowpos>  ZgslcdfrayleighPinvZgslsffermidiracm1ZgslrangaussianratiomethodZgslsffermidirac0ZgslsfbesselY0ZgslsflogsetZLinearGMRESZ	gslsfpochZgslrangaussiantailpdfZgslsfpowintZgslrancauchypdfZtetgreconstructionZ
gslranlevyZgslcdffdistPinverfZgslranugaussianZgslcdfcauchyQinvZgslcdffdistQinvZ	randreal2Zgslsfhyperg1F1intZpolarZtetgZgslsfbesselInZAffineGMRESZgslrangaussianfmodZgslsflndoublefactZint2dZsavesolZgslsfhyperg1F1Zgslrangumbel1swapZgslcdfrayleighQZ	readmesh3ZgslsfconicalP0roundZdxxatofZgslcdfgumbel1QinvZgslrantdistZgslsfellintEcompZgslsffermidiracintZgslsffermidiracinc0ZsavemeshZlrintZmpiWtimeZgslsfconicalPcylregZgslsfbesseli0scaledZ	adaptmeshZgslsferfZgslranexppowpdfZchangeZgslsfbesselJ1ZmpiAllgathervsortZtetgconvexhullZgslcdfweibullPZgslinterpcsplineperiodicZgslrangumbel1pdfZgslcdftdistPZgslranugaussianpdfZgslsfexpintEnZgslsfbesselI0Z	mpiReducelogr2   Zgslsfbesseli1scaledZgslsfexpintE2scaledZ	gslsferfcZgslrangumbel2floorerfcgetlineZisInfZgslsftransport3ZgslcdfexponentialPZgslcdfgammaPinvZgslranlognormalZgslsfdebye5coshZgslsffermidirac3halfZgslcdfweibullQinvZgslsfhyperg0F1ZgslcdfparetoQinvZgslranfdistabsZgslrangammaintZgslranweibullpdfZdfftZgslsflogerfcZgslsfexpintE1scaledZgslsflnfactargZdzyZgslsftransport5ZgslcdfparetoPZgslsfShiZgslsflog1plusxZgslsfbesselInuZSentZgslranlaplacepdfZgslcdfflatQZgslinterpsteffenZj0ZgslsfpsiintZgslcdfflatPinvZgslranexponentialZgslsfdawsonZreadmeshZ	randint32ZgslranbetapdfZgslsfbesselk0scaledZgslcdfgumbel1PZgslsfgammaincPasinZgslsflnpochZgslcdflaplaceQZgslcdflognormalQinvacoshZgslsfairyzeroAiderivZgslsfairyAiderivscaledZgslsfexprel2ZgslsfbesselYnZgslsfsinZgslsfgammastarZgslsflambertWm1ZcomplexEigenValueZgslsflegendreQ1ZgslsfellintKcompZgslsfzetaintZgslranparetopdfZgslsfbessely2ZgslsfexpintEiZgslcdfpoissonQZRecvZgslsfbesselklscaledZtriangulateZgslsfbesselInscaledZ	buildmeshZgslcdflognormalPZgslsfbesselInuscaledZgslsflogabsZgslcdfparetoQZconvect	broadcastZgslcdfgumbel1QZdzzatanZgslcdfparetoPinvZ
mpiBarrierZgslcdfbetaQinvZgslsfbesselJnuZgslsfexprelnZlroundZdxyZgslsfatanintZgslranpoissonpdfdistZdyzZWaitZmpiAlltoallZgslsfbesselJ0ZgslsfexpintEiscaledZfminZgslsfbesselj0Zgslsftransport4ZmpiAlltoallvZmovemeshZgslranchisqZgslcdflaplacePZ	gslsfpsinZgslrangaussianpdfZgslsfpsi1intZgslsfclauseny1ZgslcdfgaussianPZgslranlogisticZgslsfbesselJnZgslranexponentialpdfZ
movemesh23ZgslcdfgaussianQZgslcdfgeometricQZgslsfairyBiscaledZgslcdfchisqPinvZ
gslsfexpm1Zgslsfgegenpoly3ZgslsfbesselKnlgammaZgslranchisqpdfZgslsfpochrelZgslrangaussianzigguratZsquaresinhZgslcdflognormalQZgslsfgegenpolynZgslranrayleightailZmpiWaitZgslsfairyAiderivZgslsfhyperg2F0ZgslranlaplaceZ
mpiGathervasinhZrintZ
gslranbetaZseekgZmpiAllReducesystemZgslsfSiZgslsfCiZgslsfairyBiderivscaledZgslsfbesselI0scaledZgslsfdebye2ZgslinterppolynomialZgslcdfugaussianQinvZgslranugaussiantailZint3dZgslsffermidirachalfZmmg3dZ	invdiffnpZgslcdflogisticPinvZbuildlayersZtellgZgslsflnsinhZgslsflaguerre1Zjnlog10ZfreeyamsZgslranlogarithmicpdfZgslsfexpmultZgslcdfbetaPZgslcdffdistQceilZgslcdfflatPZ	gslsferfQZBFGSZdiffposclockZgslsfconicalPmhalfZgslsfgegenpoly1execZgslsfgammainvZgetARGVZgslsfetaZ	randreal3ZmpiSizeZgslsfbesselK1Z	gslsfpsi1ZgslcdfugaussianPpowZgslrangammamtmeanZgslsfbesselj1ZgslsfbesseljlZgslsfdoublefactZgslsfairyzeroAiZint1dZgslcdfchisqQinvZgslranugaussianratiomethodZgslsfexprelchiZgslsfbesselI1ZgslcdfgammaQinvZgslcdfugaussianQZgslsffermidirac2ZgslsfbesselYnuZgslcdfnegativebinomialPZgslrangammaZgslsfairyBiZgslsflog1plusxmxZgslranugaussiantailpdfZgslsfanglerestrictposZgslcdfgumbel1PinvZgslsfconicalP1ZrandinitZgslcdfchisqQZgslcdfexponentialPinvZgslsfbesselilscaledZgslsfbessellnKnuZgslsflegendreH3d0Zgslsfexpint3ZgslcdfexponentialQZgslsfhypergUZgslranerlangZgslsfdebye4dZgslcdfgumbel2PinvZgslcdfpascalQonZIsendZgslsfhypergUintZgslsfgammaincQZgslsfdebye6ZAffineCGZmpiRankZ	emptymeshZgslrangaussiantailZdyyZgslsflngammaZgslcdftdistQinvZgslsfanglerestrictsymmZplotZgslcdflaplacePinvZgslranbernoullipdfZgslsfbesselI1scaledZWriteZ	gslsferfZZgslcdflognormalPinvZgslcdfexponentialQinvZdiffnpZgslcdflogisticQexitZgslcdfgeometricPrandomZsrandomZ	mpiGathercopysignZStringificationZgslsfairyzeroBiZgslrangammapdfZintalledgesZ	gslsfsinc	processorZgslrangumbel2pdfZgslcdfweibullQZgslsfairyAir6   Zgslsfbessely0Zgslsftransport2ZgslsfexpintEnscaledZgslsfbesselK1scaledZjumpZ
gslsfhypotZgslcdfgaussianQinvZ	dimKrylovZgslsfbesselj2ZmpiScattervZNLCGZgslranbinomialpdftruncZgslranparetoZgslcdfbinomialQZgslcdfnegativebinomialQZgslsfbesselzeroJ1ZdyZgslsflnbetasignr;   ZgslranlandauZgslcdfexppowQZgslsfmultiplyZgslranrayleighZgslsfetaintZgslsflegendresphPlmZgslrancauchyZgslsflegendreH3dZgslcdfcauchyPimagZgslcdfgammaQZgslsfbesselzeroJ0ZgslsflegendrearraysizeZtetgtransfoZgslcdfweibullPinvZgslsfellintRCZgslsfbesselylZsignbitZy0ZgslcdfbetaPinvZ
gslranflatZgslranrayleighpdfZintallfacesZgmshloadZ	gmshload3ZgslinterpcsplineZgslcdfexppowPZgslranpascalpdfddZ	splitCommZgslcdfbetaQZgslsfbesselKnuscaledZgslsfdebye3ZgslranflatpdfZcheckmovemeshZgslcdfbinomialPZ	randint31Z	gslsffactZgslsfgegenpoly2ZprocessorblockZ
gslsfgammaZgslsflaguerrenZgslsfexpZ
EigenValueZgslrannegativebinomialpdfZgslcdffdistPZgslsffermidirac1ZgslsfbesselzeroJnuZgslcdfcauchyPinvZgslsfhydrogenicR1ZgslsflegendreQ0ZgslcdfugaussianPinvZReadatanhZgslsfbesselK0scaledZgslranrayleightailpdfZgslsfzetam1ZgslsflegendreQlZ
mpiScatterZgslsflegendrePlZgslsflegendrePlmZ
mpiWaitAnyZmshmetZgslrantdistpdfZgslcdfgumbel2QinvZgslinterplinearZcubeZfmaxZgslsfellintFZgslsfgammaincZgslsflnchoosetanhZgslsfellintDcompZj1ZgslsfcosZ
gslsfhzetaZgslsfhazardZgslcdfcauchyQZgslsfpsiZ
projectionZgslcdfgumbel2QZgslsfbesselKnuZIrecvsqrtZgslsflegendreP3ZgslranerlangpdfZ	dumptableZgslcdfpascalPZgslsfbesselY1ZgslcdfrayleighPZtgammaZPostZgslcdflogisticQinvNaNZgslranlandaupdfZgslsflncoshZgslcdfrayleighQinvZisNaNZdzZgslsftaylorcoeffZgslcdfgammaPZgslcdftdistPinvexpacosZdxZgslsflaguerre2Zgslsfsynchrotron1ZgslsflambertW0assertZ	gslsfbetaZisolineZgslsfChiZgslsfellintEZsavevtkZ
srandomdevZgslcdfchisqPZgslsfbesseli2scaledZgslsfexpintE2Zgslsfzetam1intZfdimZynZgslrangammaknuthZgslinterpakimaZgslcdfgumbel2PZgslsffermidiracmhalfZ	gslsfzetaZgslranexppowZgslranlogisticpdfZgslcdflogisticPZgslcdftdistQZgslinterpakimaperiodicZ
invdiffposZdyxZgslsfellintPcompZgslsfexpintE1ZgslsfchooseZgslsflegendreP2ZgslsfconicalPsphregZgslsfairyzeroBiderivtanZgslrangeometricpdfZgslsflegendreP1ZgslcdfflatQinvZ	randreal1ZconjZmpiWtickZgslsfbesselk1scaledZgslsfdebye1ZdzxZgslsfbesselKnscaledatoiZinvdiffZgslcdflaplaceQinvZmeditZgslranweibullZgslsfconicalPhalfZgslcdfpoissonPcosZgslranlognormalpdfZ	splitmeshZgslsfairyBiderivZmpiAllgatherZcmaesZgslsfpsi1piyatan2Zgslsfsynchrotron2ZgslsfairyAiscaledZLinearCGZgslsflaguerre3ZgslsflegendreH3d1sinZgslsfbesselK0ZgslsfbetaincZgslcdfgaussianPinvZdxzZgslsfbessely1Z	randres53ZgslranfdistpdfZgslsfbesselk2scaledZinterpolateZ
gslsfdilog>   ZdatanamesigmaZivalueZpsZsparamsZlevelsetopZtolpivotsymsaveZ	gradationbwZWindowIndexZU2VcZ
reffacemidZinquireZ	floatmeshZnboffacetclsplitZqfeZtgvZptmergeZbbZmaxitr   boundaryZfregionZpreconZvarrowZmemoryZreftriZncvZnormalizationA1syminitZ	labeldownZ	maxsubdivfileZdatafilenameZ
reffacelowswitchwidthrF   modeZsplitpbedgeZIsMetricr)   closeZ	reffaceupZsizeofvolumeZ	factorizedimZlabelupfillZfloatsolZreftetZ
ridgeangleZqftZloptionsZstrategyZdistmaxomegaZrenumvZthetamaxZabserrorZvisoZnbofregionsZ
composanteZlparamsZlabelmidZtolZperiodicZnbiterAZnbsmoothtZ	facemergeZmetricZinsideZzboundZhsvratioZdisplacementZnevZqfVZB1ZtolpivotZtransfowaitabsoluteflagsZnbisoZqforderZcoefZ	smoothingZflabelZ	rescalingZgreyorderZisoZmemZnbjacobyoptimizeZsolverZhminZorientationZnbarrowZkeepbackverticesZfixedborderZnomeshgenerationZanisopowerZfacetcloptionsoptionZvepsZepsZwithsurfacemeshstopZaspectratioBbinZbeginendZ	nbofholesvalueZcmmZnbvxerrZ	rawvectorwhichZholelistZhmaxcutoffprevZvectorZdoptionsZdparamsrefnumZmeditffZerrgZsplitin2ZnbregulZ
regionlistZ
fixeborder>   asmZtypeidthisdoubleZstatic_assertmutableusingZgradZthread_localZnoexceptZ	constexprdiv	namespacetypenametemplatedecltypeZalignofZrestrictrootc                 c   s    t | ||D ]q\}}}|| jv r|t|fV  q|| jv r&|tj|fV  q|| jv r3|tj	|fV  q|| j
v r@|tj|fV  q|| jv rM|tj|fV  q|| jv rZ|tj|fV  q|| jv rg|tj|fV  q|| jv rs|t|fV  q|||fV  qd S )N)r   get_tokens_unprocessed	operatorsr   typesr   Typefespacesr   Classpreprocessorr   PreprockeywordsReserved	functionsFunction
parametersPseudosuppress_highlight)selftextstackindextokenr    r   c/home/app/PaddleOCR-VL-test/.venv_paddleocr/lib/python3.10/site-packages/pygments/lexers/freefem.pyr   j  s(   







z#FreeFemLexer.get_tokens_unprocessedN)r   )__name__
__module____qualname____doc__nameurlaliases	filenames	mimetypesZversion_addedr   r   r   r   r   r   r   
deprecatedr   r   r   r   r   r   r      s.    t     N)
r   Zpygments.tokenr   r   r   r   Zpygments.lexers.c_cppr   __all__r   r   r   r   r   <module>   s
    
