Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/pygments/lexers/__pycache__/ |
Upload File : |
o ���azL � @ sf d Z ddlZddlmZmZmZmZ ddlmZm Z m Z mZmZm Z mZmZ dgZG dd� de�ZdS )z� pygments.lexers.factor ~~~~~~~~~~~~~~~~~~~~~~ Lexers for the Factor language. :copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. � N)� RegexLexer�bygroups�default�words)�Text�Comment�Keyword�Name�String�Number� Whitespace�Punctuation�FactorLexerc @ s� e Zd ZdZdZdgZdgZdgZej ej B Zeddd�Z ed dd�Zed dd�Zeddd�Zeddd�Zed dd�Zeddd�Zeddd�Zeddd�Zeddd�Zeddd�Zdejfed�gg def�deeeej�f�deeeej eej�f�deeeejeej �f�deeeej�f�deeeejeej�f�deeje�df�deee�f�deej!e�df�d eej!eej!�f�d!eej!eej!eej!�f�d"eej!eej!e�d#f�d$eej!eejeej!ee"eej� f�d%eej!eejeej�f�d&eej!eej�f�d'eeeej ee"eej �d(f�d)eeeej �d(f�d*eeeej �f�d+eeeej ee"eej �f�deeeejeej �f�d,eeeej eej �f�d-eeeej�f�d.eeeej �f�d/ed0f�d1eeeej�f�d2eee�d#f�d3eee�f�d4eee�f�d5eeeej �f�d6eej!ee#eejee"ee#e"e�f�d7eej!ee#eejeejee"ee#e"e� f�d8eej!e�f�d9e$f�d:e$f�d;ee$ee$�f�d<ee$j%ee$j%e�f�d=ef�d>ef�d?ef�d@ej&f�dAej&f�dBej&f�dCe'f�dDe'f�dEe'f�dFe'f�dGe'j(f�dHe'j)f�dIe'f�dJe'f�dKef�e eej*e�f�eeej*e�f�eeej*e�f�eeej*e�f�eeej*e�f�eeej*e�f�eeej*e�f�eeej*e�f�eeej*e�f�eeej*e�f�eeej*e�f�dLe#f�defdMeeje�dfdNeeje�dOfdPeeje�fdLej+fgdefdQeee�dOfdRee#eej+ee#ee#e�fdLej+fgdefdQeee�dOfdLej!fgdefdQeee�dOfdLej fgdefdQeee�dOfdLejfgdS�Z,dTS )Ur z^ Lexer for the `Factor <http://factorcode.org>`_ language. .. versionadded:: 1.4 �Factor�factorz*.factorz text/x-factor)oz-rot�2biz2bi@z2bi*�2curry�2dip�2drop�2dup�2keep�2nip�2over�2triz2tri@z2tri*�3bi�3curry�3dip�3drop�3dup�3keep�3tri�4dip�4drop�4dup�4keepz <wrapper>�=z>boolean�clone�?z?executez?if�and�assertzassert=zassert?�bizbi-curryz bi-curry@z bi-curry*zbi@zbi*�boa�booleanzboolean?zboth?�build�call� callstackzcallstack>arrayz callstack?�clearz(clone)�composezcompose?�curryzcurry?� datastack�die�dip�do�drop�dup�dupdzeither?zeq?zequal?�execute�hashcodez hashcode*zidentity-hashcodezidentity-tuplezidentity-tuple?�ifzif*�keep�loop�most�new�nip�not�null�object�or�over�pick�prepose�retainstack�rotzsame?�swap�swapd�throw�triz tri-curryz tri-curry@z tri-curry*ztri@ztri*�tupleztuple?�unlesszunless*�until�whenzwhen*�while�with�wrapperzwrapper?�xorz(\s+))�suffix)@�2cachez<enum>z>alistz?atz?of�assocz assoc-all?z assoc-any?zassoc-clone-likez assoc-combinez assoc-diffzassoc-diff!zassoc-differz assoc-eachzassoc-empty?zassoc-filterz assoc-filter!zassoc-filter-asz assoc-findzassoc-hashcodezassoc-intersectz assoc-likez assoc-mapzassoc-map-aszassoc-partitionzassoc-refinez assoc-sizezassoc-stackz assoc-subset?zassoc-unionzassoc-union!zassoc=z assoc>mapzassoc?�atzat+zat*�cachez change-atzclear-assocz delete-atz delete-at*�enumzenum?zextract-keyszinc-atzkey?�keysz map>assoczmaybe-set-atz new-assoc�ofzpush-atz rename-atzset-atz sift-keyszsift-values� substitute�unzipzvalue-atz value-at*zvalue?�values�zip)�2cleavez2cleave>quot�3cleavez3cleave>quot�4cleavez4cleave>quotz alist>quotzcall-effect�casez case-findz case>quot�cleavezcleave>quot�condz cond>quotzdeep-spread>quotzexecute-effectzlinear-case-quotzno-casezno-case?zno-condzno-cond?zrecursive-hashcodezshallow-spread>quot�spreadzto-fixed-pointzwrong-valuesz wrong-values?)c�-�/z/fz/iz/modz2/z2^�<z<=z<fp-nan>�>z>=z>bignumz>fixnumz>floatz>integerz(all-integers?)z(each-integer)z(find-integer)�*�+z?1+�abs�alignz all-integers?�bignumzbignum?zbit?�bitand�bitnot�bitorzbits>doublez bits>float�bitxor�complexzcomplex?�denominatorzdouble>bitszeach-integerzeven?zfind-integerzfind-last-integer�fixnumzfixnum?�floatz float>bitszfloat?zfp-bitwise=zfp-infinity?zfp-nan-payloadzfp-nan?zfp-qnan?zfp-signzfp-snan?zfp-special?zif-zerozimaginary-part�integerzinteger>fixnumzinteger>fixnum-strictzinteger?�log2zlog2-expects-positivezlog2-expects-positive?�mod�negzneg?z next-floatznext-power-of-2�numberznumber=znumber?� numeratorzodd?zout-of-fixnum-rangezout-of-fixnum-range?zpower-of-2?z prev-float�ratiozratio?�rationalz rational?�realz real-partzreal?�recip�rem�sgn�shift�sq�timeszu<zu<=zu>zu>=zunless-zeroz unordered?z when-zerozzero?)�� 1sequencez2all?�2each�2mapz2map-asz2map-reduce�2reduce� 2selector� 2sequence�3appendz 3append-as�3each�3mapz3map-as� 3sequence� 4sequencez<repetition>z <reversed>z<slice>z?firstz?lastz?nthz?secondz?set-nth� accumulatezaccumulate!z accumulate-aszall?zany?�appendzappend!z append-aszassert-sequencezassert-sequence=zassert-sequence?z binary-reducezbounds-checkz bounds-check?zbounds-errorz bounds-error?zbut-lastzbut-last-slicezcartesian-eachz cartesian-mapzcartesian-productz change-nthzcheck-slicezcheck-slice-errorz clone-likezcollapse-slice� collectorz collector-for�concatz concat-as�copy�count�cutz cut-slicezcut*z delete-allzdelete-slicezdrop-prefix�eachz each-fromz each-indexzempty?�exchange�filterzfilter!z filter-as�findz find-fromz find-indexzfind-index-fromz find-lastzfind-last-from�first�first2�first3�first4�flip�follow�fourth�glue�halves�harvest�headz head-slicezhead-slice*zhead*zhead?zif-empty� immutablezimmutable-sequencezimmutable-sequence?z immutable?�indexz index-from�indices�infimumz infimum-byz insert-nth� interleave�iotaz iota-tupleziota-tuple?�joinzjoin-as�lastz last-indexzlast-index-from�length�lengthen�like�longerzlonger?�longest�mapzmap!zmap-aszmap-findz map-find-lastz map-indexzmap-integersz map-reducezmap-sumz max-lengthz member-eq?zmember?z midpoint@z min-length�mismatch�moveznew-likez new-resizableznew-sequenceznon-negative-integer-expectedznon-negative-integer-expected?�nth�nthszpad-headzpad-tail�padding� partition�popzpop*�prefix�prependz prepend-as�producez produce-as�product�pushzpush-allzpush-eitherzpush-if�reducezreduce-index�removezremove!z remove-eqz remove-eq!z remove-nthzremove-nth!� repetitionzrepetition?z replace-slice� replicatezreplicate-as�restz rest-slice�reversezreverse!�reversedz reversed?�second�selectorzselector-for�sequencezsequence-hashcodez sequence=z sequence?z set-firstz set-fourthzset-lastz set-lengthzset-nthz set-secondz set-third�short�shorten�shorterzshorter?�shortest�sift�slicezslice-errorzslice-error?zslice?�snipz snip-slice�startzstart*�subseqzsubseq?rW zsuffix!�sumzsum-lengths�supremumzsupremum-by�surround�tailz tail-sliceztail-slice*ztail*ztail?�third�trimz trim-headztrim-head-slicez trim-slicez trim-tailztrim-tail-slice�unclipzunclip-lastzunclip-last-slicezunclip-slicezunless-emptyzvirtual-exemplarzvirtual-sequencezvirtual-sequence?zvirtual@z when-empty)z+@�changez change-global�counter�dec�getz get-global�global�inczinit-namespaces� initializez is-globalz make-assoc� namespace� namestack�off�on�setz set-globalz set-namestack�togglezwith-globalz with-scopez with-variablezwith-variables)�1array�2array�3array�4arrayz<array>z>array�arrayzarray?�pairzpair?zresize-array)Yz(each-stream-block-slice)z(each-stream-block)z(stream-contents-by-block)z(stream-contents-by-element)z$(stream-contents-by-length-or-block)z(stream-contents-by-length)z+byte+z+character+z bad-seek-typezbad-seek-type?�bl�contentsz each-blockzeach-block-sizezeach-block-slicez each-linezeach-morselzeach-stream-blockzeach-stream-block-slicezeach-stream-linezerror-stream�flushzinput-streamz input-stream?zinvalid-read-bufferzinvalid-read-buffer?�lines�nlz output-streamzoutput-stream?�print�readz read-intozread-partialzread-partial-intoz read-until�read1�readlnz seek-absolutezseek-absolute?zseek-endz seek-end?z seek-inputzseek-outputz seek-relativezseek-relative?z stream-blzstream-contentszstream-contents*zstream-copyzstream-copy*zstream-element-typezstream-flushz stream-lengthzstream-linesz stream-nlzstream-printzstream-readzstream-read-intozstream-read-partialzstream-read-partial-intozstream-read-partial-unsafezstream-read-unsafezstream-read-untilzstream-read1z stream-readlnzstream-seekzstream-seekable?zstream-tellzstream-writez stream-write1z tell-inputztell-outputzwith-error-streamzwith-error-stream*zwith-error>outputzwith-input-output+error-streamsz with-input-output+error-streams*zwith-input-streamzwith-input-stream*zwith-output-streamzwith-output-stream*zwith-output>errorzwith-output+error-streamzwith-output+error-stream*zwith-streamsz with-streams*�write�write1)�1stringz<string>z>stringz resize-string�stringzstring?)�1vectorz<vector>z>vectorz?push�vectorzvector?)(z<condition>z<continuation>z <restart>zattempt-allzattempt-all-errorzattempt-all-error?zcallback-error-hook�callcc0�callcc1�cleanupzcompute-restarts� conditionz condition?�continuationz continuation?�continuezcontinue-restartz continue-withzcurrent-continuation�errorzerror-continuationzerror-in-threadzerror-thread�ifccz ignore-errorszin-callback?zoriginal-error�recover�restartzrestart?�restarts�rethrowzrethrow-restarts�returnzreturn-continuationzthread-error-hookzthrow-continuezthrow-restartszwith-datastackzwith-returnz#!.*$�basez\s+z&((?:MACRO|MEMO|TYPED)?:[:]?)(\s+)(\S+)z(M:[:]?)(\s+)(\S+)(\s+)(\S+)z(C:)(\s+)(\S+)(\s+)(\S+)z(GENERIC:)(\s+)(\S+)z$(HOOK:|GENERIC#)(\s+)(\S+)(\s+)(\S+)z(\()(\s)�stackeffectz(;)(\s)z (USING:)(\s+)�vocabsz&(USE:|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fA-F\d])?(?:p\d([\d,]*\d)?)?\szANAN:\s+[a-fA-F\d](?:[a-fA-F\d,]*[a-fA-F\d])?(?:p\d([\d,]*\d)?)?\sz 0b[01]+\sz 0o[0-7]+\sz5(?:\d([\d,]*\d)?)?\+\d(?:[\d,]*\d)?/\d(?:[\d,]*\d)?\sz7(?:\-\d([\d,]*\d)?)?\-\d(?:[\d,]*\d)?/\d(?:[\d,]*\d)?\sz:(?:deprecated|final|foldable|flushable|inline|recursive)\sz\S+z (\()(\s+)z (\))(\s+)z#popz (--)(\s+)z(;)(\s+)z((\{)(\s+)(\S+)(\s+)([^}]+)(\s+)(\})(\s+))�rootr r r r r r N)-�__name__� __module__�__qualname__�__doc__�name�aliases� filenames� mimetypes�re� MULTILINE�UNICODE�flagsr �builtin_kernel�builtin_assocs�builtin_combinators�builtin_math�builtin_sequences�builtin_namespaces�builtin_arrays� builtin_io�builtin_strings�builtin_vectors�builtin_continuationsr �Preprocr r r r r �Function�Class� Namespacer r r �Char�Constantr �Bin�Oct�Builtin�Variable�tokens� r6 r6 �8/usr/lib/python3/dist-packages/pygments/lexers/factor.pyr s8 ����*�,����� �������� �������������������� ���#���&��*���-��/��1���4��6��8�9�:�=��?�@�A�B�C ���I ���S�V�W�X ��Z��^�_�`�c�f�g�j�k�l�m�n�o�p�q�t��x�y�z�{�|�}�~�� �� �� �� �� ���� ��� � �)r r �pygments.lexerr r r r �pygments.tokenr r r r r r r r �__all__r r6 r6 r6 r7 �<module> s (