HOME


Mini Shell 1.0
DIR: /usr/lib/python3/dist-packages/pygments/lexers/__pycache__/
Upload File :
Current File : //usr/lib/python3/dist-packages/pygments/lexers/__pycache__/csound.cpython-312.pyc
�

|�ebB��"�dZddlZddlmZmZmZmZmZmZddl	m
Z
mZmZm
Z
mZmZmZmZmZmZddlmZmZmZddlmZddlmZddlmZgd	�Zd
ee
j>e�fZ Gd�de�Z!Gd
�de!�Z"Gd�de!�Z#Gd�de�Z$y)z�
    pygments.lexers.csound
    ~~~~~~~~~~~~~~~~~~~~~~

    Lexers for Csound languages.

    :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�N)�
RegexLexer�bygroups�default�include�using�words)
�Comment�Error�Keyword�Name�Number�Operator�Punctuation�String�Text�
Whitespace)�OPCODES�DEPRECATED_OPCODES�REMOVED_OPCODES)�	HtmlLexer)�PythonLexer)�LuaLexer)�CsoundScoreLexer�CsoundOrchestraLexer�CsoundDocumentLexerz((?:(?:;|//).*)*)(\n)c
��eZdZdZiddefdejfdejfdee	e�fg�ddejfd	ejd
fdejdfd
ejdfdejdfg�ded�dedfg�d
ed�dedfg�ddefed�deeje
�dfdejdfg�ded�dejfde
fde
dfg�ddefed�de
dfg�d d!ejfd"ejfd#e
dfg�ded�dejdfg�d$d%eeje
�d&fd'ejfg�d&d(ejfde
fded)fd*ed+fd,ejd-fde
dfg�d)d.ejfd/efed0�g�d+d.ejfd/efed1�g�d-d2ejfd,ejd3fdejdfg�d4ed�ed$�g�d5d6ej fd7eej$ej&�fd8ej(fg�d0dedfd9efed$�d:efg�d1gi�Zy;)<�CsoundLexerzhttps://csound.com/�
whitespacez[ \t]+z/[*](?:.|\n)*?[*]/�(?:;|//).*$z(\\)(\n)�preprocessor directivesz)#(?:e(?:nd(?:if)?|lse)\b|##)|@@?[ \t]*\d+z#includestrzincludestr directivez#includezinclude directivez
#[ \t]*definezdefine directivez#(?:ifn?def|undef)\bzmacro directivez
([^ \t]).*?\1�#pop�")r!�
quoted string�\nz([A-Z_a-z]\w*)(\())r!�macro parameter name list�[A-Z_a-z]\w*)r!�before macro bodyr%z['#]z\)r'�#)r!�
macro bodyr)z(?:\\(?!#)|[^#\\]|\n)+z\\#z(?<!\\)#�
macro usesz(\$[A-Z_a-z]\w*\.?)(\()zmacro parameter value listz\$[A-Z_a-z]\w*(?:\.|\b)z(?:[^\'#"{()]|\{(?!\{))+z#macro parameter value quoted string�\{\{z#macro parameter value braced stringz\(z#macro parameter value parentheticalz\\[#'()]z[#'()]r#�
braced stringz(?:[^\\()]|\\\))+z#push�whitespace and macro uses�numbersz2\d+[Ee][+-]?\d+|(\d+\.\d*|\d*\.\d+)([Ee][+-]?\d+)?z(0[Xx])([0-9A-Fa-f]+)�\d+z[^"$]+z[$]N)�__name__�
__module__�__qualname__�urlrr	�	Multiline�Singlerr�Preprocrrrr
r
�Floatr�Type�Hex�Integer�tokens���8/usr/lib/python3/dist-packages/pygments/lexers/csound.pyrrs���
�C�h��
�
�#�
"�G�$5�$5�6�
�W�^�^�,�
�(�4��4�5�	
�h�	"�
9�7�?�?�K�
�W�_�_�.D�E�
�'�/�/�+>�?�
�w���0B�C�
$�g�o�o�7H�I�$
�h� 	��L�!�
�v�v�.�
�!h�(	��L�!�
�6�4�5�!
�)h�2	�
�J���L�!�
"�H�W�_�_�k�$J�
2�
4�
�g�o�o�/L�M�
�3h�@	$��L�!�
�g�o�o�.�
�k�"�
�K�!>�?�	&
�Ah�L	�
�J���L�!�
�;� 6�7�
�Mh�V	�
&����8�
�W�_�_�%�
�+�v�.�
�Wh�b	��L�!�
�g�o�o�v�6�
�ch�l	�
'��'�/�/�;�)O�
)�
+�
'����9�
�mh�v	%�
(�'�/�/�:�
�k�"�
�6�@�A�
�f�C�D�
�G�O�O�%J�K�
�K��(�
'
�wh�F	.�
�'�/�/�*�
����O�$�0
�Gh�P	.�
�'�/�/�*�
����O�$�0
�Qh�Z	.�
!�7�?�?�3�
�G�O�O�W�-�
�G�O�O�V�,�0
�[h�f	$��L�!��L�!�&
�gh�p	�
B�F�L�L�Q�
%�x����f�j�j�'I�J�
�V�^�^�$�
�qh�|	�
�6�6�"�
����L�!�
�V��	
�}h�J	�
�Kh�Fr=rc��eZdZdZdZddgZdgZdefed�ed�d	e	fd
e	jfdee	ej�fde	d
fed�defdefdedfdej$dfged�dej(fdedfged�dejdfged�dej$dfgdej$dfed�gdedfdefgd�Zy) rzO
    For `Csound <https://csound.com>`_ scores.

    .. versionadded:: 2.1
    zCsound Scorezcsound-scorez
csound-scoz*.scor$r-r z[aBbCdefiqstvxy]�zz([nNpP][pP])(\d+)z[mn]�mark statementr.z[!+\-*/^%&|<>#~.]z[()\[\]]r"r#z\{�loop after left bracer&r!r/)r!�loop after repeat count)r!�loopz\}�root�\}\}z
[^}]|\}(?!\}))rErArBrCrDr,N)r0r1r2�__doc__�name�aliases�	filenamesrrr�Constantrr
r:rrrr	r6r�Labelr;r<r=r>rr�sJ����D��|�,�G��	�I��J���/�0��-�.�
 �'�*��7�#�#�$�"�8�G�V�^�^�#D�E�
�g�/�0��I��
!�8�,�
�+�&�
�6�?�+�
�G�O�O�%<�=�/
�6
�/�0�
�d�j�j�)�
�J��'�
�
�/�0�
�V�^�^�%H�I�"
�

�/�0�
�g�o�o�/?�@�$
�
�G�O�O�V�,��F�O�
��f�f�%�
�v�&�
�a4�Fr=rc��eZdZdZdZddgZddgZe�Zd�Z	d�Z
id	d
efdeee
jee�fed�ed
�dej$dfdej$dfdej$fed�g�dde
j&j(fed�defdefdedfdedfeddd��efeddd��ej0fd ed!fd"eej0e�d!fd#eej0e�d$fd%eej0e�d&fd'eej0e�d(fd)e
j2d*fd+e
j2d,fd-e
j2d.fd/e
j2d0fd1e
j&j4fd2e
fg�ded�d3e
j6fd4efd
ed5fg�ded�d6e	d7fd
ed5fg�d8ed�d9ej8fd:efd
ed5fg�dded5fd;efed<�ed=�ed>�d?efg�dd@ed5fdAefed=�ed>�dBefg�d=dCej:fg�d>dDej<fdEej:fg�dFed�d:ed5fed�g�d!ed�dGe
jd5fed5�g�d*ed�dedHfed5�g�dHdIej:fdJej:fed�g�d,ed�dedfdedKfd
ed5fg�dKd@ed5fdLe e!�fg�d.ed�dedfdedMfd
ed5fg�dMd@ed5fdLe e"�fg�ed�dedfdedNfd
ed5fgd@ed5fdLe e#�fgdO��Z$yP)QrzS
    For `Csound <https://csound.com>`_ orchestras.

    .. versionadded:: 2.1
    zCsound Orchestra�csoundz
csound-orcz*.orcz*.udoc#�K�|jd�}|jj|�|j�tj
|f��y�w)Nr)�group�user_defined_opcodes�add�startr�Function)�lexer�match�opcodes   r>�opcode_name_callbackz)CsoundOrchestraLexer.opcode_name_callback�s>�������Q���
�"�"�&�&�v�.��k�k�m�T�]�]�F�2�2�s�AAc#�K�tj}|jd�}|tvs|tvs|t
vr$|j
�tj|f��n�||jvr$|j
�tj|f��n�t}tjd|�}|r]|j
d�tj|jd�f��|j
d�t|jd�f��n|j
�t|f��|jd�rO|j
d�t|jd�f��|j
d�||jd�f��yy�w)N�z^(g?[afikSw])(\w+)��)rr8rPrrrrSr�BuiltinrQrT�re�searchr)rUrV�type_annotation_tokenrH�
name_matchs     r>�
name_callbackz"CsoundOrchestraLexer.name_callback�s1���� '�����{�{�1�~���7�?�d�&8�8�D�O�<S��+�+�-����t�3�3�
�U�/�/�
/��+�+�-�����4�4�$(�!����#8�$�?�J�� �&�&�q�)�7�<�<��9I�9I�!�9L�L�L� �&�&�q�)�4��1A�1A�!�1D�D�D��k�k�m�T�4�/�/��;�;�q�>��+�+�a�.�+�u�{�{�1�~�=�=��+�+�a�.�"7����Q��G�G��s�FFrEr$z^([ \t]*)(\w+)(:)([ \t]+|$)r-r z	\binstr\bz"instrument numbers and identifiersz
\bopcode\bzafter opcode keywordz\b(?:end(?:in|op))\bzpartial statementsz-\b(?:0dbfs|A4|k(?:r|smps)|nchnls(?:_i)?|sr)\br.u@\+=|-=|\*=|/=|<<|>>|<=|>=|==|!=|&&|\|\||[~¬]|[=!+\-*/^%&|<>#?:]z	[(),\[\]]r"r#r+r,)
�do�else�elseif�endif�enduntil�fi�if�ithen�kthen�od�then�until�whilez\b)�prefix�suffix)�return�rireturnz
\b[ik]?goto\b�
goto labelz"\b(r(?:einit|igoto)|tigoto)(\(|\b)z\b(c(?:g|in?|k|nk?)goto)(\(|\b))rt�
goto argumentz\b(timout)(\(|\b))rtruruz\b(loop_[gl][et])(\(|\b))rtrururuz\bprintk?s\bz
prints opcodez"\b(?:readscore|scoreline(?:_i)?)\bzCsound score opcodez\bpyl?run[it]?\bz
Python opcodez\blua_(?:exec|opdef)\b�
Lua opcodez\bp\d+\bz$\b([A-Z_a-z]\w*)(?:(:)([A-Za-z]))?\bz\d+|[A-Z_a-z]\w*z[+,]r!r&)r!�opcode type signaturesrwz0|[afijkKoOpPStV\[\]]+�,z
[^\\"$%)]+r*zescape sequenceszformat specifiersz[\\$%)]rFz(?:[^\\%)}]|\}(?!\}))+z[\\%)]z\\(?:[\\abnrt"]|[0-7]{1,3})z'%[#0\- +]*\d*(?:\.\d+)?[AE-GXac-giosux]z%%ruz\w+zprints quoted stringz\\\\[aAbBnNrRtT]z%[!nNrRtT]|[~^]{1,2}zCsound scorez([^}]+)|\}(?!\})�Python�Lua)rvrzN)%r0r1r2rGrHrIrJ�setrQrXrbrrrrLrrr�Declaration�Variable�Globalrrr�Pseudor]�InstancerTr8�Escape�Interpolrrrrrr;r<r=r>rr�sB����D���&�G��'�"�I��5��3�
H�*h��
�J��
+�X�j�$�*�*�k�[e�-f�g��/�0��-�.�
�7�.�.�0T�U�
�G�/�/�1G�H�
$�g�&9�&9�:��(�)�

�h� 	�
=�t�}�}�?S�?S�T��I��
P�RZ�[�
�;�'�
�6�?�+�
�f�o�.�
�� ��/�18�
9��)�%��
F����W�
�w��5�
2�H�W�^�^�[�4Y�
�
�
/��'�.�.�+�1V�
,�
.�
!�8�G�N�N�K�#H�
=�
?�
(�(�7�>�>�;�*O�
N�
P��d�l�l�O�<�
2�D�L�L�BW�X�
 �$�,�,��@�
&����l�C�
�$�-�-�0�0�1�
4�m�D�A!
�!h�f	-��/�0�
 �$�-�-�0�
�k�"�
�J��'�	/
�gh�t	��/�0�
�2�4V�W�
�J��'�!
�uh�~	!��/�0�'����5�
�;��
�J��'�#
�h�R	�
�6�6�"�
�F�#��L�!��&�'��'�(�
�� �

�Sh�b	�
�f�f�%�
&��/��&�'��'�(�
���
�ch�p	�
+�V�]�]�;�
�qh�Z	�
7����I�
�F�M�M�"�
�[h�d	��/�0�
�;��'��(�)�
�eh�n	��/�0�
�T�Z�Z��(��F�O�
�oh�z	��/�0�
�6�1�2��F�O�
�{h�D	�
 �&�-�-�0�
$�f�m�m�4��O�$�!
�Eh�P	��/�0�
�6�?�+�
�f�n�-�
�J��'�	 
�Qh�\	�
�f�f�%�
 �%�(8�"9�:�
�]h�f	��/�0�
�6�?�+�
�f�h�'�
�J��'�	
�gh�r	�
�f�f�%�
 �%��"4�5�
�sh�~
�/�0�
�6�?�+�
�f�e�$�
�J��'�	
��f�f�%�
 �%��/�2�
�Ih�Fr=rc���eZdZdZdZddgZdgZdejfdejfde
fd	ejd
fdejdfd
ejdfdejdfdejfgdejdfde
e�fgdejdfde
e�fgdejdfde
e�fgdefdej$dfdejdfgdefdedfdedfdedfgd �Zy!)"rzR
    For `Csound <https://csound.com>`_ documents.

    .. versionadded:: 2.1
    zCsound Documentzcsound-documentz
csound-csdz*.csdz/[*](.|\n)*?[*]/rz[^/;<]+|/(?!/)z<\s*CsInstruments)�	orchestra�tagz<\s*CsScore)�scorer�z<\s*[Hh][Tt][Mm][Ll])�HTMLr�z<\s*[\w:.-]+r�z<\s*/\s*[\w:.-]+\s*>z<\s*/\s*CsInstruments\s*>r!z%(.|\n)+?(?=<\s*/\s*CsInstruments\s*>)z<\s*/\s*CsScore\s*>z(.|\n)+?(?=<\s*/\s*CsScore\s*>)z<\s*/\s*[Hh][Tt][Mm][Ll]\s*>z((.|\n)+?(?=<\s*/\s*[Hh][Tt][Mm][Ll]\s*>)z\s+z[\w.:-]+\s*=�attrz/?\s*>z".*?"z'.*?'z[^\s>]+)rEr�r�r�r�r�N)r0r1r2rGrHrIrJr	r4r5rr�Tagrrrrr�	Attributerr;r<r=r>rr�sV����D� �,�/�G��	�I�!�'�"3�"3�4�
�W�^�^�,�
��%�
!�4�8�8�-A�B�
�T�X�X�'7�8�
$�d�h�h��@�
�d�h�h��.�
$�d�h�h�/�
�*�4�8�8�V�<�
5�u�=Q�7R�S�
�
$�T�X�X�v�6�
/��7G�1H�I�
�
-�d�h�h��?�
8�%�	�:J�K�
��Z� �
�d�n�n�f�5�
����&�)�
��Z� �
�v�v�&�
�v�v�&�
���(�	
�A&�Fr=r)%rGr^�pygments.lexerrrrrrr�pygments.tokenr	r
rrr
rrrrr� pygments.lexers._csound_builtinsrrr�pygments.lexers.htmlr�pygments.lexers.pythonr�pygments.lexers.scriptingr�__all__r5�newlinerrrrr<r=r>�<module>r�s����
�O�O����Y�Y�*�.�.�
M��#�X�g�n�n�d�%C�
D��k�*�k�\?�{�?�DO�;�O�d8�*�8r=