HEX
Server: LiteSpeed
System: Linux br-asc-web1845.main-hosting.eu 5.14.0-611.42.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 24 05:30:20 EDT 2026 x86_64
User: u790421558 (790421558)
PHP: 8.2.30
Disabled: system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Upload Files
File: //opt/alt/python311/lib/python3.11/site-packages/pygments/lexers/__pycache__/csound.cpython-311.pyc
�

Y�ZgfB��8�dZddlZddlmZmZmZmZmZmZddl	m
Z
mZmZm
Z
mZmZmZmZmZmZddlmZmZmZddlmZddlmZddlmZgd	�Zd
ee
je��fZ Gd�de��Z!Gd
�de!��Z"Gd�de!��Z#Gd�de��Z$dS)z�
    pygments.lexers.csound
    ~~~~~~~~~~~~~~~~~~~~~~

    Lexers for Csound languages.

    :copyright: Copyright 2006-2024 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
���eZdZdZiddefdejfdejfdee	e��fg�ddej
fd	ej
d
fdej
dfd
ej
dfdej
dfg�ded��dedfg�d
ed��dedfg�ddefed��deej
e
��dfdej
dfg�ded��dej
fde
fde
dfg�ddefed��de
dfg�d d!ej
fd"ej
fd#e
dfg�ded��dej
dfg�d$d%eej
e
��d&fd'ej
fg�d&d(ej
fde
fded)fd*ed+fd,ej
d-fde
dfg�d)d.ej
fd/efed0��g�d+d.ej
fd/efed1��g�d-d2ej
fd,ej
d3fdej
dfg�d4ed��ed$��g�d5d6ejfd7eejej��fd8ejfg�d0dedfd9efed$��d:efg�d1gi�Zd;S)<�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���I/opt/alt/python311/lib/python3.11/site-packages/pygments/lexers/csound.pyrrs�������
�C�h��
�
�#�
"�G�$5�6�
�W�^�,�
�(�(�4��4�4�5�	
�h�	"�
9�7�?�K�
�W�_�.D�E�
�'�/�+>�?�
�w��0B�C�
$�g�o�7H�I�$
�h� 	��G�L�!�!�
�v�v�.�
�!h�(	��G�L�!�!�
�6�4�5�!
�)h�2	�
�J���G�L�!�!�
"�H�H�W�_�k�$J�$J�
2�
4�
�g�o�/L�M�
�3h�@	$��G�L�!�!�
�g�o�.�
�k�"�
�K�!>�?�	&
�Ah�L	�
�J���G�L�!�!�
�;� 6�7�
�Mh�V	�
&���8�
�W�_�%�
�+�v�.�
�Wh�b	��G�L�!�!�
�g�o�v�6�
�ch�l	�
'���'�/�;�)O�)O�
)�
+�
'���9�
�mh�v	%�
(�'�/�:�
�k�"�
�6�@�A�
�f�C�D�
�G�O�%J�K�
�K��(�
'
�wh�F	.�
�'�/�*�
����G�O�$�$�0
�Gh�P	.�
�'�/�*�
����G�O�$�$�0
�Qh�Z	.�
!�7�?�3�
�G�O�W�-�
�G�O�V�,�0
�[h�f	$��G�L�!�!��G�L�!�!�&
�gh�p	�
B�F�L�Q�
%�x�x���f�j�'I�'I�J�
�V�^�$�
�qh�|	�
�6�6�"�
����G�L�!�!�
�V��	
�}h�J	�
�Kh�h�F�F�Fr=rc��eZdZdZdZddgZdgZdZdefe	d��e	d	��d
e
fde
jfdee
e
j��fd
e
dfe	d��defdefdedfdejdfge	d��dejfdedfge	d��de
jdfge	d��dejdfgdejdfe	d��gdedfdefgd�Zd S)!rz4
    For `Csound <https://csound.com>`_ scores.
    zCsound Scorezcsound-scorez
csound-scoz*.sco�2.1r$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
[^}]|\}(?!\}))rFrBrCrDrEr,N)r0r1r2�__doc__�name�aliases�	filenames�
version_addedrrr�Constantrr
r:rrrr	r6r�Labelr;r<r=r>rr�s}���������D��|�,�G��	�I��M��J���G�/�0�0��G�-�.�.�
 �'�*��7�#�$�"�8�8�G�V�^�#D�#D�E�
�g�/�0��G�I���
!�8�,�
�+�&�
�6�?�+�
�G�O�%<�=�/
�6
�G�/�0�0�
�d�j�)�
�J��'�
�
�G�/�0�0�
�V�^�%H�I�"
�

�G�/�0�0�
�g�o�/?�@�$
�
�G�O�V�,��G�F�O�O�
��f�f�%�
�v�&�
�a4�4�F�F�Fr=rc���eZdZdZdZddgZddgZdZe��Z	d�Z
d	�Zid
defde
eejee��fed
��ed��dejdfdejdfdejfed��g�ddejjfed��defdefdedfdedfeddd���efed dd���ejfd!ed"fd#e
eje��d"fd$e
eje��d%fd&e
eje��d'fd(e
eje��d)fd*ejd+fd,ejd-fd.ejd/fd0ejd1fd2ejjfd3efg�ded
��d4ejfd5efded6fg�ded
��d7e
d8fded6fg�d9ed
��d:ejfd;efded6fg�dded6fd<efed=��ed>��ed?��d@efg�ddAed6fdBefed>��ed?��dCefg�d>dDejfg�d?dEejfdFejfg�dGed
��d;ed6fed��g�d"ed
��dHejd6fe d6��g�d+ed
��dedIfe d6��g�dIdJejfdKejfed��g�d-ed
��dedfdedLfded6fg�dLdAed6fdMe!e"��fg�d/ed
��dedfdedNfded6fg�dNdAed6fdMe!e#��fg�ed
��dedfdedOfded6fgdAed6fdMe!e$��fgdP��Z%dQS)Rrz8
    For `Csound <https://csound.com>`_ orchestras.
    zCsound Orchestra�csoundz
csound-orcz*.orcz*.udor@c#�K�|�d��}|j�|��|���tj|fV�dS)Nr)�group�user_defined_opcodes�add�startr�Function)�lexer�match�opcodes   r>�opcode_name_callbackz)CsoundOrchestraLexer.opcode_name_callback�sO�������Q����
�"�&�&�v�.�.�.��k�k�m�m�T�]�F�2�2�2�2�2�2r=c#�\K�tj}|�d��}|tvs|tvs	|t
vr$|���tj|fV�n�||j	vr$|���tj
|fV�n�t}tjd|��}|rj|�d��tj|�d��fV�|�d��t|�d��fV�n|���t|fV�|�d��ra|�d��t|�d��fV�|�d��||�d��fV�dSdS)N�z^(g?[afikSw])(\w+)��)rr8rRrrrrUr�BuiltinrSrV�re�searchr)rWrX�type_annotation_tokenrI�
name_matchs     r>�
name_callbackz"CsoundOrchestraLexer.name_callback�s����� '����{�{�1�~�~���7�?�?�d�&8�8�8�D�O�<S�<S��+�+�-�-���t�3�3�3�3�3�
�U�/�
/�
/��+�+�-�-����4�4�4�4�4�$(�!���#8�$�?�?�J��
0� �&�&�q�)�)�7�<��9I�9I�!�9L�9L�L�L�L�L� �&�&�q�)�)�4��1A�1A�!�1D�1D�D�D�D�D�D��k�k�m�m�T�4�/�/�/�/��;�;�q�>�>�	H��+�+�a�.�.�+�u�{�{�1�~�~�=�=�=�=��+�+�a�.�.�"7����Q���G�G�G�G�G�G�	H�	Hr=rFr$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))rv�
goto argumentz\b(timout)(\(|\b))rvrwrwz\b(loop_[gl][et])(\(|\b))rvrwrwrwz\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 signaturesryz0|[afijkKoOpPStV\[\]]+�,z
[^\\"$%)]+r*zescape sequenceszformat specifiersz[\\$%)]rGz(?:[^\\%)}]|\}(?!\}))+z[\\%)]z\\(?:[\\abnrt"]|[0-7]{1,3})z'%[#0\- +]*\d*(?:\.\d+)?[AE-GXac-giosux]z%%rwz\w+zprints quoted stringz\\\\[aAbBnNrRtT]z%[!nNrRtT]|[~^]{1,2}zCsound scorez([^}]+)|\}(?!\})�Python�Lua)rxr|N)&r0r1r2rHrIrJrKrL�setrSrZrdrrrrNrrr�Declaration�Variable�Globalrrr�Pseudor_�InstancerVr8�Escape�Interpolrrrrrr;r<r=r>rr�s����������D���&�G��'�"�I��M��3�5�5��3�3�3�
H�H�H�*h��
�J��
+�X�X�j�$�*�k�[e�-f�-f�g��G�/�0�0��G�-�.�.�
�7�.�0T�U�
�G�/�1G�H�
$�g�&9�:��G�(�)�)�

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

�Sh�b	�
�f�f�%�
&��/��G�&�'�'��G�'�(�(�
���
�ch�p	�
+�V�]�;�
�qh�Z	�
7���I�
�F�M�"�
�[h�d	��G�/�0�0�
�;��'��G�(�)�)�
�eh�n	��G�/�0�0�
�T�Z��(��G�F�O�O�
�oh�z	��G�/�0�0�
�6�1�2��G�F�O�O�
�{h�D	�
 �&�-�0�
$�f�m�4��G�O�$�$�!
�Eh�P	��G�/�0�0�
�6�?�+�
�f�n�-�
�J��'�	 
�Qh�\	�
�f�f�%�
 �%�%�(8�"9�"9�:�
�]h�f	��G�/�0�0�
�6�?�+�
�f�h�'�
�J��'�	
�gh�r	�
�f�f�%�
 �%�%��"4�"4�5�
�sh�~
�G�/�0�0�
�6�?�+�
�f�e�$�
�J��'�	
��f�f�%�
 �%�%��/�/�2�
�Ih�h�h�F�F�Fr=rc��eZdZdZdZddgZdgZdZdZde	j
fd	e	jfd
efde
jdfd
e
jdfde
jdfde
jdfde
jfgde
jdfdee��fgde
jdfdee��fgde
jdfdee��fgdefde
jdfde
jdfgdefdedfd edfd!edfgd"�Zd#S)$rz
    For Csound documents.
    zCsound Documentzcsound-documentz
csound-csdz*.csdzhttps://csound.comr@z/[*](.|\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>]+)rFr�r�r�r�r�N)r0r1r2rHrIrJrKr3rLr	r4r5rr�Tagrrrrr�	Attributerr;r<r=r>rr�sl���������D� �,�/�G��	�I�
�C��M�!�'�"3�4�
�W�^�,�
��%�
!�4�8�-A�B�
�T�X�'7�8�
$�d�h��@�
�d�h��.�
$�d�h�/�
�*�4�8�V�<�
5�u�u�=Q�7R�7R�S�
�
$�T�X�v�6�
/���7G�1H�1H�I�
�
-�d�h��?�
8�%�%�	�:J�:J�K�
��Z� �
�d�n�f�5�
���&�)�
��Z� �
�v�v�&�
�v�v�&�
���(�	
�A&�&�F�F�Fr=r)%rHr`�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�O�O�O�O�O�O�O�O�O�O�O�O�O�O�������������������������Y�Y�Y�Y�Y�Y�Y�Y�Y�Y�*�*�*�*�*�*�.�.�.�.�.�.�.�.�.�.�.�.�
M�
M�
M��#�X�X�g�n�d�%C�%C�
D��k�k�k�k�k�*�k�k�k�\>�>�>�>�>�{�>�>�>�BN�N�N�N�N�;�N�N�N�b8�8�8�8�8�*�8�8�8�8�8r=