3
.ßL]%  ã               @   s¸   d Z ddlmZmZmZ ddlmZmZmZm	Z	m
Z
mZmZmZmZ dddddd	gZG d
d„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZG dd	„ d	eƒZdS )zÓ
    pygments.lexers.esoteric
    ~~~~~~~~~~~~~~~~~~~~~~~~

    Lexers for esoteric languages.

    :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
é    )Ú
RegexLexerÚincludeÚwords)	ÚTextÚCommentÚOperatorÚKeywordÚNameÚStringÚNumberÚPunctuationÚErrorÚBrainfuckLexerÚBefungeLexerÚRedcodeLexerÚCAmkESLexerÚ
CapDLLexerÚ
AheuiLexerc               @   s~   e Zd ZdZdZddgZddgZdgZdej	fd	ej
fd
ejfdefgdedfdefedƒgdedfdedfedƒgdœZdS )r   ze
    Lexer for the esoteric `BrainFuck <http://www.muppetlabs.com/~breadbox/bf/>`_
    language.
    Z	BrainfuckZ	brainfuckZbfz*.bfz*.bzapplication/x-brainfuckz[.,]+z[+-]+z[<>]+z[^.,+\-<>\[\]]+z\[Úloopz\]Úcommonz#pushz#pop)r   Úrootr   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚnameÚaliasesÚ	filenamesÚ	mimetypesr	   ÚTagÚBuiltinÚVariabler   r   r   r   Útokens© r#   r#   ú>/tmp/pip-install-5sebvq2j/pygments/pygments/lexers/esoteric.pyr      s   c               @   s€   e Zd ZdZdZdgZdgZdgZddefde	fd	e
jfd
e
j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giZdS )r   z{
    Lexer for the esoteric `Befunge <http://en.wikipedia.org/wiki/Befunge>`_
    language.

    .. versionadded:: 0.7
    ZBefungeZbefungez	*.befungezapplication/x-befunger   z[0-9a-f]z	[+*/%!`-]z[<>^v?\[\]rxjk]z	[:\\$.,n]z[|_mw]z[{}]z".*?"z\'.z[#;]z[pg&~=@iotsy]z[()A-Z]z\s+N)r   r   r   r   r   r   r   r   r   r   r	   r!   r    r   r   r
   ÚDoubleÚSingler   r   r"   r#   r#   r#   r$   r   4   s$   c            *   @   sÂ   e Zd ZdZdZddgZddgZddejfd	e	fd
efdefde
fdefed]d0d1�efed^d0d1�ejfdPejfed_d0d1�ejfdTejfdUejfdVejfdWefdXejfdYefdZejfd[efgiZd\S )`r   z�
    Basic lexer for the input language for the
    `CAmkES <https://sel4.systems/CAmkES/>`_ component platform.

    .. versionadded:: 2.1
    ZCAmkESZcamkesZidl4z*.camkesz*.idl4r   z	^\s*#.*\nz\s+z/\*(.|\n)*?\*/z//.*\nz[\[(){},.;\]]z[~!%^&*+=|?:<>/-]ÚassemblyÚ	attributeÚ	componentÚcompositionÚconfigurationÚ
connectionÚ	connectorÚconsumesÚcontrolÚdataportÚDataportÚ	DataportsÚemitsÚeventÚEventÚEventsÚexportÚfromÚgroupÚhardwareÚhasÚ	interfaceÚ	InterfaceÚmaybeÚ	procedureÚ	ProcedureÚ
ProceduresÚprovidesÚtemplateÚthreadÚthreadsÚtoÚusesÚwithz\b)ÚsuffixÚboolÚbooleanÚBufÚcharÚ	characterÚdoubleÚfloatÚinÚinoutÚintÚint16_6Úint32_tÚint64_tÚint8_tÚintegerÚmutexÚoutÚrealÚrefinÚ	semaphoreÚsignedÚstringÚstructÚuint16_tÚuint32_tÚuint64_tÚuint8_tÚ	uintptr_tÚunsignedÚvoidz%[a-zA-Z_]\w*_(priority|domain|buffer)Údma_poolÚfrom_accessÚ	to_accesszimport\s+(<[^>]*>|"[^"]*");zinclude\s+(<[^>]*>|"[^"]*");z0[xX][\da-fA-F]+z-?[\d]+z-?[\d]+\.[\d]+z"[^"]*"z[Tt]rue|[Ff]alsez[a-zA-Z_]\w*N)"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   )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   )r   r   r   r   r   r   r   r   ÚPreprocr   r   r   r   r   ÚTypeÚReservedr   ÚHexZFloatr
   r	   r    r"   r#   r#   r#   r$   r   R   sJ        
    
c            )   @   s¬   e Zd ZdZdZdgZdgZddejfde	fdefd	efd
e
fde
fedMdd�efedNdd�ejfedOdd�ejfdCejfdDefedPdd�efedQdd�efdKefgiZdLS )Rr   a=  
    Basic lexer for
    `CapDL <https://ssrg.nicta.com.au/publications/nictaabstracts/Kuz_KLW_10.abstract.pml>`_.

    The source of the primary tool that reads such specifications is available
    at https://github.com/seL4/capdl/tree/master/capDL-tool. Note that this
    lexer only supports a subset of the grammar. For example, identifiers can
    shadow type names, but these instances are currently incorrectly
    highlighted as types. Supporting this would need a stateful lexer that is
    considered unnecessarily complex for now.

    .. versionadded:: 2.2
    ZCapDLZcapdlz*.cdlr   z	^\s*#.*\nz\s+z/\*(.|\n)*?\*/z(//|--).*\nz[<>\[(){},:;=\]]z\.\.ÚarchÚarm11ÚcapsÚchild_ofÚia32ÚirqÚmapsÚobjectsz\b)rI   ÚaepÚ	asid_poolÚcnodeÚepÚframeÚ	io_deviceÚio_portsÚio_ptÚnotificationÚpdÚptÚtcbÚutÚvcpuÚasidÚaddrÚbadgeÚcachedÚdomÚdomainIDÚelfÚfault_epÚGÚguardÚ
guard_sizeÚinitÚipÚprioÚspÚRÚRGÚRXÚRWÚRWGÚRWXÚWÚWGÚWXÚlevelÚmaskedÚmaster_replyÚpaddrÚportsÚreplyÚuncachedz0[xX][\da-fA-F]+z\d+(\.\d+)?(k|M)?ÚbitsÚcspaceÚvspaceÚ
reply_slotÚcaller_slotÚipc_buffer_slotz[a-zA-Z_][-@\.\w]*N)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   rk   r   r   r   r   rl   rm   r   rn   r	   r"   r#   r#   r#   r$   r   “   s8       c               @   s‚   e Zd ZdZdZdgZdgZd(Zd)Zdde	fde
jfd d!jeƒ ejfd d!jeƒ ejfd"efd#efd$efd%efd&ejfg	iZd'S )*r   z‚
    A simple Redcode lexer based on ICWS'94.
    Contributed by Adam Blinkinsop <blinks@acm.org>.

    .. versionadded:: 0.8
    ZRedcodeZredcodez*.cwÚDATÚMOVÚADDÚSUBÚMULÚDIVÚMODÚJMPÚJMZÚJMNÚDJNÚCMPÚSLTÚSPLÚORGÚEQUÚENDÚAÚBÚABÚBAÚFÚXÚIr   z\s+z;.*$z\b(%s)\bú|z[A-Za-z_]\w+z[-+*/%]z[#$@<>]z[.,]z[-+]?\d+N)rª   r«   r¬   r­   r®   r¯   r°   r±   r²   r³   r´   rµ   r¶   r·   r¸   r¹   rº   )r»   r¼   r½   r¾   r¿   rÀ   rÁ   )r   r   r   r   r   r   r   ZopcodesÚ	modifiersr   r   r&   Újoinr	   ZFunctionZ	Decoratorr   r   r   ZIntegerr"   r#   r#   r#   r$   r   Î   s$     c               @   s4   e Zd ZdZdZdgZdgZddefdefgiZ	dS )	r   z|
    Aheui_ Lexer.

    Aheui_ is esoteric language based on Korean alphabets.

    .. _Aheui: http://aheui.github.io/

    ZAheuiZaheuiz*.aheuir   uá  [ë‚˜-ë‚³ëƒ�-ëƒ«ë„ˆ-ë„£ë…€-ë…›ë…¸-ë†“ë‡¨-ëˆŸë‰´-ë‹‡ë‹¤-ë‹¿ëŒœ-ëŒ·ë�”-ë�¯ëŽŒ-ëŽ§ë�„-ë�Ÿë�´-ë‘«ë“€-ë”“ë”°-ë•‹ë•¨-ë–ƒë– -ë–»ë—˜-ë—³ë˜�-ë˜«ëš€-ëš·ëœŒ-ë�Ÿë�¼-ëž—ëž´-ëŸ�ëŸ¬-ë ‡ë ¤-ë ¿ë¡œ-ë¡·ë£Œ-ë¤ƒë¥˜-ë¦«ë§ˆ-ë§£ë¨€-ë¨›ë¨¸-ë©“ë©°-ëª‹ëª¨-ë«ƒë¬˜-ë­�ë®¤-ë¯·ë°”-ë°¯ë±Œ-ë±§ë²„-ë²Ÿë²¼-ë³—ë³´-ë´�ëµ¤-ë¶›ë·°-ë¹ƒë¹ -ë¹»ëº˜-ëº³ë»�-ë»«ë¼ˆ-ë¼£ë½€-ë½›ë¾°-ë¿§ì€¼-ì‚�ì‚¬-ìƒ‡ìƒ¤-ìƒ¿ì„œ-ì„·ì…”-ì…¯ì†Œ-ì†§ì‡¼-ìˆ³ìŠˆ-ì‹›ì‹¸-ìŒ“ìŒ°-ì�‹ì�¨-ìŽƒìŽ -ìŽ»ì�˜-ì�³ì‘ˆ-ì‘¿ì“”-ì”§ìž�-ìž«ìŸˆ-ìŸ£ì €-ì ›ì ¸-ì¡“ì¡°-ì¢‹ì£ -ì¤—ì¥¬-ì¦¿ì°¨-ì±ƒì± -ì±»ì²˜-ì²³ì³�-ì³«ì´ˆ-ì´£ìµ¸-ì¶¯ì¸„-ì¹—ì¹´-ìº�ìº¬-ì»‡ì»¤-ì»¿ì¼œ-ì¼·ì½”-ì½¯ì¿„-ì¿»í��-í‚£íƒ€-íƒ›íƒ¸-í„“í„°-í…‹í…¨-í†ƒí† -í†»íˆ�-í‰‡íŠœ-í‹¯íŒŒ-íŒ§í�„-í�Ÿí�¼-íŽ—íŽ´-í��í�¬-í�‡í‘œ-í’“í“¨-í”»í•˜-í•³í–�-í–«í—ˆ-í—£í˜€-í˜›í˜¸-í™“íš¨-í›Ÿíœ´-íž‡]Ú.N)
r   r   r   r   r   r   r   r   r   r"   r#   r#   r#   r$   r   ò   s   N)r   Zpygments.lexerr   r   r   Zpygments.tokenr   r   r   r   r	   r
   r   r   r   Ú__all__r   r   r   r   r   r   r#   r#   r#   r$   Ú<module>
   s   , A;$