3
.ßL]ÈE  ã               @   s^   d Z ddlZddlmZmZmZmZ ddlmZm	Z	m
Z
mZmZmZ dgZG dd„ deƒZdS )zÐ
    pygments.lexers.factor
    ~~~~~~~~~~~~~~~~~~~~~~

    Lexers for the Factor language.

    :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
é    N)Ú
RegexLexerÚbygroupsÚdefaultÚwords)ÚTextÚCommentÚKeywordÚNameÚStringÚNumberÚFactorLexerc            ë   @   s(  e Zd ZdZdZdgZdgZdgZej	ej
B Ze�ddudv�Ze�ddudv�Ze�ddudv�Ze�ddudv�Ze�ddudv�Ze�ddudv�Ze�ddudv�Ze�ddudv�Ze�ddudv�Ze�ddudv�Ze�ddudv�Z�dÑejfe�dÒƒg�dÓef�dÔeeeejƒf�dÕeeeej eejƒf�dÖeeeejeej ƒf�d×eeeejƒf�dØeeeejeejƒf�dÙej�dÚf�dÛef�dÜeej!eƒ�dÝf�dÞeej!eej!ƒf�dßeej!eej!eej!ƒf�dàeej!eej!eƒ�dáf�dâeej!eejeej!eejƒf�dãeej!eejeejƒf�däeej!eejƒf�dåeeeej eej ƒ�dæf�dçeeeej ƒ�dæf�dèeeeej ƒf�déeeeej eej ƒf�dÖeeeejeej ƒf�dêeeeej eej ƒf�dëeeeejƒf�dìeeeej ƒf�díe�dîf�dïeeeejƒf�dðe�dáf�dñef�dòef�dóeeeej ƒf�dôeej!eejeƒf�dõeej!eejeejeƒf�döej!f�d÷e"f�døe"f�dùe"f�dúe"j#f�dûef�düef�dýef�dþej$f�dÿej$f�d ej$f�de%f�de%f�de%f�de%f�de%j&f�de%j'f�de%f�de%f�d	efeej(feej(feej(feej(feej(feej(feej(feej(feej(feej(feej(f�d
efg?�dÓef�dej�dÚf�dej�df�dejf�d
ej)fg�dÓef�dÛe�df�deeej)eƒf�d
ej)fg�dÓef�dÛe�df�d
ej!fg�dÓef�dÛe�df�d
ej fg�dÓef�dÛe�df�d
ejfg�dœZ*�dS (  r   z^
    Lexer for the `Factor <http://factorcode.org>`_ language.

    .. versionadded:: 1.4
    ZFactorZfactorz*.factorztext/x-factorú-rotÚ2biú2bi@ú2bi*Ú2curryÚ2dipÚ2dropÚ2dupÚ2keepÚ2nipÚ2overÚ2triú2tri@ú2tri*Ú3biÚ3curryÚ3dipÚ3dropÚ3dupÚ3keepÚ3triÚ4dipÚ4dropÚ4dupÚ4keepú	<wrapper>ú=ú>booleanÚcloneú?ú?executeú?ifÚandÚassertúassert=úassert?Úbiúbi-curryú	bi-curry@ú	bi-curry*úbi@úbi*ÚboaÚbooleanúboolean?úboth?ÚbuildÚcallÚ	callstackúcallstack>arrayú
callstack?Úclearú(clone)Úcomposeúcompose?Úcurryúcurry?Ú	datastackÚdieÚdipÚdoÚdropÚdupÚdupdúeither?úeq?úequal?ÚexecuteÚhashcodeú	hashcode*úidentity-hashcodeúidentity-tupleúidentity-tuple?Úifúif*ÚkeepÚloopÚmostÚnewÚnipÚnotÚnullÚobjectÚorÚoverÚpickÚpreposeÚretainstackÚrotúsame?ÚswapÚswapdÚthrowÚtriú	tri-curryú
tri-curry@ú
tri-curry*útri@útri*Útupleútuple?Úunlessúunless*ÚuntilÚwhenúwhen*ÚwhileÚwithÚwrapperúwrapper?Úxorz\s)ÚsuffixÚ2cacheú<enum>ú>alistú?atú?ofÚassocú
assoc-all?ú
assoc-any?úassoc-clone-likeúassoc-combineú
assoc-diffúassoc-diff!úassoc-differú
assoc-eachúassoc-empty?úassoc-filterúassoc-filter!úassoc-filter-asú
assoc-findúassoc-hashcodeúassoc-intersectú
assoc-likeú	assoc-mapúassoc-map-asúassoc-partitionúassoc-refineú
assoc-sizeúassoc-stackúassoc-subset?úassoc-unionúassoc-union!úassoc=ú	assoc>mapúassoc?Úatúat+úat*Úcacheú	change-atúclear-assocú	delete-atú
delete-at*Úenumúenum?úextract-keysúinc-atúkey?Úkeysú	map>assocúmaybe-set-atú	new-assocÚofúpush-atú	rename-atúset-atú	sift-keysúsift-valuesÚ
substituteÚunzipúvalue-atú	value-at*úvalue?ÚvaluesÚzipÚ2cleaveú2cleave>quotÚ3cleaveú3cleave>quotÚ4cleaveú4cleave>quotú
alist>quotúcall-effectÚcaseú	case-findú	case>quotÚcleaveúcleave>quotÚcondú	cond>quotúdeep-spread>quotúexecute-effectúlinear-case-quotúno-caseúno-case?úno-condúno-cond?úrecursive-hashcodeúshallow-spread>quotÚspreadúto-fixed-pointúwrong-valuesúwrong-values?ú-ú/ú/fú/iú/modú2/ú2^ú<ú<=ú<fp-nan>ú>ú>=ú>bignumú>fixnumú>floatú>integerú(all-integers?)ú(each-integer)ú(find-integer)Ú*ú+ú?1+ÚabsÚalignúall-integers?Úbignumúbignum?úbit?ÚbitandÚbitnotÚbitorúbits>doubleú
bits>floatÚbitxorÚcomplexúcomplex?Údenominatorúdouble>bitsúeach-integerúeven?úfind-integerúfind-last-integerÚfixnumúfixnum?Úfloatú
float>bitsúfloat?úfp-bitwise=úfp-infinity?úfp-nan-payloadúfp-nan?úfp-qnan?úfp-signúfp-snan?úfp-special?úif-zeroúimaginary-partÚintegerúinteger>fixnumúinteger>fixnum-strictúinteger?Úlog2úlog2-expects-positiveúlog2-expects-positive?ÚmodÚnegúneg?ú
next-floatúnext-power-of-2Únumberúnumber=únumber?Ú	numeratorúodd?úout-of-fixnum-rangeúout-of-fixnum-range?úpower-of-2?ú
prev-floatÚratioúratio?Úrationalú	rational?Úrealú	real-partúreal?ÚrecipÚremÚsgnÚshiftÚsqÚtimesúu<úu<=úu>úu>=úunless-zeroú
unordered?ú	when-zeroúzero?Ú	1sequenceú2all?Ú2eachÚ2mapú2map-asú2map-reduceÚ2reduceÚ	2selectorÚ	2sequenceÚ3appendú
3append-asÚ3eachÚ3mapú3map-asÚ	3sequenceÚ	4sequenceú<repetition>ú
<reversed>ú<slice>ú?firstú?lastú?nthú?secondú?set-nthÚ
accumulateúaccumulate!úaccumulate-asúall?úany?Úappendúappend!ú	append-asúassert-sequenceúassert-sequence=úassert-sequence?úbinary-reduceúbounds-checkúbounds-check?úbounds-errorúbounds-error?úbut-lastúbut-last-sliceúcartesian-eachúcartesian-mapúcartesian-productú
change-nthúcheck-sliceúcheck-slice-errorú
clone-likeúcollapse-sliceÚ	collectorúcollector-forÚconcatú	concat-asÚcopyÚcountÚcutú	cut-sliceúcut*ú
delete-allúdelete-sliceúdrop-prefixÚeachú	each-fromú
each-indexúempty?ÚexchangeÚfilterúfilter!ú	filter-asÚfindú	find-fromú
find-indexúfind-index-fromú	find-lastúfind-last-fromÚfirstÚfirst2Úfirst3Úfirst4ÚflipÚfollowÚfourthÚglueÚhalvesÚharvestÚheadú
head-sliceúhead-slice*úhead*úhead?úif-emptyÚ	immutableúimmutable-sequenceúimmutable-sequence?ú
immutable?Úindexú
index-fromÚindicesÚinfimumú
infimum-byú
insert-nthÚ
interleaveÚiotaú
iota-tupleúiota-tuple?Újoinújoin-asÚlastú
last-indexúlast-index-fromÚlengthÚlengthenÚlikeÚlongerúlonger?ÚlongestÚmapúmap!úmap-asúmap-findúmap-find-lastú	map-indexúmap-integersú
map-reduceúmap-sumú
max-lengthú
member-eq?úmember?ú	midpoint@ú
min-lengthÚmismatchÚmoveúnew-likeúnew-resizableúnew-sequenceúnon-negative-integer-expectedúnon-negative-integer-expected?ÚnthÚnthsúpad-headúpad-tailÚpaddingÚ	partitionÚpopúpop*ÚprefixÚprependú
prepend-asÚproduceú
produce-asÚproductÚpushúpush-allúpush-eitherúpush-ifÚreduceúreduce-indexÚremoveúremove!ú	remove-eqú
remove-eq!ú
remove-nthúremove-nth!Ú
repetitionúrepetition?úreplace-sliceÚ	replicateúreplicate-asÚrestú
rest-sliceÚreverseúreverse!Úreversedú	reversed?ÚsecondÚselectorúselector-forÚsequenceúsequence-hashcodeú	sequence=ú	sequence?ú	set-firstú
set-fourthúset-lastú
set-lengthúset-nthú
set-secondú	set-thirdÚshortÚshortenÚshorterúshorter?ÚshortestÚsiftÚsliceúslice-errorúslice-error?úslice?Úsnipú
snip-sliceÚstartústart*Úsubseqúsubseq?r|   úsuffix!Úsumúsum-lengthsÚsupremumúsupremum-byÚsurroundÚtailú
tail-sliceútail-slice*útail*útail?ÚthirdÚtrimú	trim-headútrim-head-sliceú
trim-sliceú	trim-tailútrim-tail-sliceÚunclipúunclip-lastúunclip-last-sliceúunclip-sliceúunless-emptyúvirtual-exemplarúvirtual-sequenceúvirtual-sequence?úvirtual@ú
when-emptyú+@Úchangeúchange-globalÚcounterÚdecÚgetú
get-globalÚglobalÚincúinit-namespacesÚ
initializeú	is-globalú
make-assocÚ	namespaceÚ	namestackÚoffÚonÚsetú
set-globalúset-namestackÚtoggleúwith-globalú
with-scopeúwith-variableúwith-variablesÚ1arrayÚ2arrayÚ3arrayÚ4arrayú<array>ú>arrayÚarrayúarray?Úpairúpair?úresize-arrayú(each-stream-block-slice)ú(each-stream-block)ú(stream-contents-by-block)ú(stream-contents-by-element)ú$(stream-contents-by-length-or-block)ú(stream-contents-by-length)ú+byte+ú+character+úbad-seek-typeúbad-seek-type?ÚblÚcontentsú
each-blockúeach-block-sizeúeach-block-sliceú	each-lineúeach-morselúeach-stream-blockúeach-stream-block-sliceúeach-stream-lineúerror-streamÚflushúinput-streamúinput-stream?úinvalid-read-bufferúinvalid-read-buffer?ÚlinesÚnlúoutput-streamúoutput-stream?ÚprintÚreadú	read-intoúread-partialúread-partial-intoú
read-untilÚread1Úreadlnúseek-absoluteúseek-absolute?úseek-endú	seek-end?ú
seek-inputúseek-outputúseek-relativeúseek-relative?ú	stream-blústream-contentsústream-contents*ústream-copyústream-copy*ústream-element-typeústream-flushústream-lengthústream-linesú	stream-nlústream-printústream-readústream-read-intoústream-read-partialústream-read-partial-intoústream-read-partial-unsafeústream-read-unsafeústream-read-untilústream-read1ústream-readlnústream-seekústream-seekable?ústream-tellústream-writeústream-write1ú
tell-inputútell-outputúwith-error-streamúwith-error-stream*úwith-error>outputúwith-input-output+error-streamsú with-input-output+error-streams*úwith-input-streamúwith-input-stream*úwith-output-streamúwith-output-stream*úwith-output>errorúwith-output+error-streamúwith-output+error-stream*úwith-streamsúwith-streams*ÚwriteÚwrite1Ú1stringú<string>ú>stringúresize-stringÚstringústring?Ú1vectorú<vector>ú>vectorú?pushÚvectorúvector?ú<condition>ú<continuation>ú	<restart>úattempt-allúattempt-all-errorúattempt-all-error?úcallback-error-hookÚcallcc0Úcallcc1Úcleanupúcompute-restartsÚ	conditionú
condition?Úcontinuationúcontinuation?Úcontinueúcontinue-restartúcontinue-withúcurrent-continuationÚerrorúerror-continuationúerror-in-threadúerror-threadÚifccúignore-errorsúin-callback?úoriginal-errorÚrecoverÚrestartúrestart?ÚrestartsÚrethrowúrethrow-restartsÚreturnúreturn-continuationúthread-error-hookúthrow-continueúthrow-restartsúwith-datastackúwith-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;\sz(USING:)(\s+)Úvocabsz&(USE:|UNUSE:|IN:|QUALIFIED:)(\s+)(\S+)z%(QUALIFIED-WITH:)(\s+)(\S+)(\s+)(\S+)z#(FROM:|EXCLUDE:)(\s+)(\S+)(\s+=>\s)r   z,(RENAME:)(\s+)(\S+)(\s+)(\S+)(\s+=>\s+)(\S+)z%(ALIAS:|TYPEDEF:)(\s+)(\S+)(\s+)(\S+)z$(DEFER:|FORGET:|POSTPONE:)(\s+)(\S+)z'(TUPLE:|ERROR:)(\s+)(\S+)(\s+<\s+)(\S+)Úslotsz"(TUPLE:|ERROR:|BUILTIN:)(\s+)(\S+)z'(MIXIN:|UNION:|INTERSECTION:)(\s+)(\S+)z$(PREDICATE:)(\s+)(\S+)(\s+<\s+)(\S+)z(INSTANCE:)(\s+)(\S+)(\s+)(\S+)z(SLOT:)(\s+)(\S+)z(SINGLETON:)(\s+)(\S+)zSINGLETONS:Úclassesz)(CONSTANT:|SYMBOL:|MAIN:|HELP:)(\s+)(\S+)z
SYMBOLS:\sz	SYNTAX:\szALIEN:\sz(STRUCT:)(\s+)(\S+)z.(FUNCTION:)(\s+\S+\s+)(\S+)(\s+\(\s+[^)]+\)\s)z>(FUNCTION-ALIAS:)(\s+)(\S+)(\s+\S+\s+)(\S+)(\s+\(\s+[^)]+\)\s)z(?:<PRIVATE|PRIVATE>)\sz"""\s+(?:.|\n)*?\s+"""z"(?:\\\\|\\"|[^"])*"z\S+"\s+(?:\\\\|\\"|[^"])*"z%CHAR:\s+(?:\\[\\abfnrstv]|[^\\]\S*)\sz!\s+.*$z#!\s+.*$z/\*\s+(?:.|\n)*?\s\*/\sz[tf]\sz[\\$]\s+\S+zM\\\s+\S+\s+\S+z9[+-]?(?:[\d,]*\d)?\.(?:\d([\d,]*\d)?)?(?:[eE][+-]?\d+)?\sz'[+-]?\d(?:[\d,]*\d)?(?:[eE][+-]?\d+)?\sz<0x[a-fA-F\d](?:[a-fA-F\d,]*[a-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\)\sz#popz--\sz(\{\s+)(\S+)(\s+[^}]+\s+\}\s))ÚrootrÖ  r×  rÙ  rØ  rÚ  r   N)or   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/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r9   r:   r;   r<   r=   r>   r?   r@   rA   rB   rC   rD   rE   rF   rG   rH   rI   rJ   rK   rL   rM   rN   rO   rP   rQ   rR   rS   rT   rU   rV   rW   rX   rY   rZ   r[   r\   r]   r^   r_   r`   ra   rb   rc   rd   re   rf   rg   rh   ri   rj   rk   rl   rm   rn   ro   rp   rq   rr   rs   rt   ru   rv   rw   rx   ry   rz   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Ø   )crÙ   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/  r0  r1  r2  r3  r4  r5  r6  r7  r8  r9  r:  r;  )êr<  r=  r>  r?  r@  rA  rB  rC  rD  rE  rF  rG  rH  rI  rJ  rK  rL  rM  rN  rO  rP  rQ  rR  rS  rT  rU  rV  rW  rX  rY  rZ  r[  r\  r]  r^  r_  r`  ra  rb  rc  rd  re  rf  rg  rh  ri  rj  rk  rl  rm  rn  ro  rp  rq  rr  rs  rt  ru  rv  rw  rx  ry  rz  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þ  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/  r0  r1  r2  r3  r4  r5  r6  r7  r8  r9  r:  r;  r<  r=  )r>  r?  r@  rA  rB  rC  rD  rE  rF  rG  rH  )YrI  rJ  rK  rL  rM  rN  rO  rP  rQ  rR  rS  rT  rU  rV  rW  rX  rY  rZ  r[  r\  r]  r^  r_  r`  ra  rb  rc  rd  re  rf  rg  rh  ri  rj  rk  rl  rm  rn  ro  rp  rq  rr  rs  rt  ru  rv  rw  rx  ry  rz  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Õ  )+Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚnameÚaliasesÚ	filenamesÚ	mimetypesÚreÚ	MULTILINEÚUNICODEÚflagsr   Zbuiltin_kernelZbuiltin_assocsZbuiltin_combinatorsZbuiltin_mathZbuiltin_sequencesZbuiltin_namespacesZbuiltin_arraysZ
builtin_ioZbuiltin_stringsZbuiltin_vectorsZbuiltin_continuationsr   ZPreprocr   r   r   r   r	   ZFunctionZClassÚ	Namespacer
   ÚCharÚConstantr   ZBinÚOctZBuiltinÚVariableÚtokens© rî  rî  ú</tmp/pip-install-5sebvq2j/pygments/pygments/lexers/factor.pyr      s                                                                                                                                  










)rß  rä  Zpygments.lexerr   r   r   r   Zpygments.tokenr   r   r   r	   r
   r   Ú__all__r   rî  rî  rî  rï  Ú<module>
   s
    