Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
algebra.cpython-313.pyc131 linesDownload Raw Back to __pycache__
1�

2�j0'����SrSSKrSSKJrJrJrJrJr SSKJ	r	J3r4JrJrJ
r
JrJrJrJrJr /SQr"SS\5r"SS	\5r"S5S\5r"SS
\5r"SS\5rg)z�6pygments.lexers.algebra7~~~~~~~~~~~~~~~~~~~~~~~8 9Lexers for computer algebra systems.10 11:copyright: Copyright 2006-present by the Pygments team, see AUTHORS.12:license: BSD, see LICENSE for details.13�N)�Lexer�14RegexLexer�bygroups�
do_insertions�words)15�Text�Comment�Operator�Keyword�Name�String�Number�Punctuation�Generic�16Whitespace)�GAPLexer�GAPConsoleLexer�MathematicaLexer�17MuPADLexer�BCLexerc���\rSrSrSrSrSrS/r/SQrSr	SS	\18R4S19\4S\
4S\4S
\R 4S\R"4S\4S\R&4S\R(4S\4S\4S\4/0rSrSrg)r�z20For GAP source code.21�GAP�https://www.gap-system.org�gap)z*.gz*.gdz*.giz*.gap�2.0�rootz#.*$�"(?:[^"\\]|\\.)*"�\(|\)|\[|\]|\{|\}aV(?x)\b(?:22                if|then|elif|else|fi|23                for|while|do|od|24                repeat|until|25                break|continue|26                function|local|return|end|27                rec|28                quit|QUIT|29                IsBound|Unbind|30                TryNextMethod|31                Info|Assert32              )\bzD(?x)\b(?:33                true|false|fail|infinity34              )\bzx(?x)\b(?:35                (Declare|Install)([A-Z][A-Za-z]+)|36                   BindGlobal|BIND_GLOBAL37              )\bz\.|,|:=|;|=|\+|-|\*|/|\^|>|<z=(?x)\b(?:38                and|or|not|mod|in39              )\bzC(?x)40              (?:\w+|`[^`]*`)41              (?:::\w+|`[^`]*`)*�[0-9]+(?:\.[0-9]*)?(?:e[0-9]+)?�\.[0-9]+(?:e[0-9]+)?�.c��Sn[R"SU5(aUS-
n[R"SU5(aUS-
n[US5$)N�zl(InstallTrueMethod|Declare(Attribute|Category|Filter|Operation|GlobalFunction|Synonym|SynonymAttr|Property))gffffff�?zm(DeclareRepresentation|Install(GlobalFunction|Method|ImmediateMethod|OtherMethod)|New(Family|Type)|Objectify)g�?)�re�search�min)�text�scores  �]D:\code\apps\devtools\python\user_packages\Python313\site-packages\pygments/lexers/algebra.py�analyse_text�GAPLexer.analyse_textGs`�����9�9�
>�?C�42�43�
�S�L�E��9�9�
H�IM�44�45�
�S�L�E��5�#����N)�__name__�46__module__�__qualname__�__firstlineno__�__doc__�name�url�aliases�	filenames�
version_addedr	�Singler
rrr�Constant�Builtinr47�Word�Variablerr�tokensr+�__static_attributes__r.r-r*rrs�����D�48&�C��g�G�0�I��M�	�
�g�n�n�%�
!�6�*�
!�;�/���
���]�]�
���\�\�	
�49-�h�7���]�]�
�$�%)�]�]�
4�0��8�
$�f�-�
�4�L�G$50�&�F�Pr-rc�B�\rSrSrSrSrSS/rS/rSrSr	S	r51S52rSrSr
g
)r�[z<53For GAP console sessions. Modeled after JuliaConsoleLexer.54zGAP sessionzgap-consolezgap-replz*.tstrz2.14zgap-repl/euclidean.tstc	#�b# �[S0URD6nSnSn/nSnSnURSS9GHJnURS5(dURS5(a=UR	[U5S[RUSS4/45 XHSS-
nSnSnO�U(dOURS	5(a9UR	[U5S[RUSS554/45 XHS56S-
nOyU(a&[XRRU55Shv�N Sn/nURS5(dU(aU[RU4v� SnOU[RU4v� SnU[U5-
nGMM U(a#[XRRU55Shv�N ggN�N7f)
Nr�FT)�keependszgap> zbrk> �z> �zError, r.)r�options�57splitlines�58startswith�append�lenr�Promptr�get_tokens_unprocessed�Error�Output)	�selfr(�gaplexer�start�curcode�59insertions�output�error�lines	         r*rM�&GAPConsoleLexer.get_tokens_unprocessedfs�����+�d�l�l�+�������60������O�O�T�O�2�D����w�'�'�4�?�?�7�+C�+C��!�!�3�w�<�1�g�n�n�d�2�A�h�2O�1P�"Q�R����8�#����������� 5� 5��!�!�3�w�<�1�g�n�n�d�2�A�h�2O�1P�"Q�R����8�#���,�"�$C�$C�G�$L� N�N�N� �G�!#�J��?�?�9�-�-�������4�4� �E������5�5����S��Y��E�+3�.�$��;�;�G�D�F�
F�
F��N�
F�s%�DF/�F+�BF/�$F-�%F/�-F/c�>�[R"SU5(agg)Nz^gap> g�������?r$)r%r&)r(s r*r+�GAPConsoleLexer.analyse_text�s��61�9�9�Y��%�%��r-r.N)r/r0r1r2r3r4r6r7r5r8�_examplerMr+r?r.r-r*rr[s:����D��j�)�G��	�I�62&�C��M�'�H�!F�Hr-rc�>�\rSrSrSrSrSr/SQr/SQr/SQr	Sr63S	rS64rSr
SS
\4S\R 4S\R"4S\R"4S\4S\R&4S\R&4S\R(4\"\5\4\"\5\4S\4S\R44/0rSrg)r�z$65Lexer for Mathematica source code.66�Mathematicaz!https://www.wolfram.com/language/)�mathematica�mma�nb�wl�wolfram)z*.nbz*.cdfz*.nbpz*.maz*.wlz*.wls)zapplication/mathematicaz#application/vnd.wolfram.mathematicaz+application/vnd.wolfram.mathematica.packagezapplication/vnd.wolfram.cdfzapplication/vnd.wolfram.wlr) z;;�=z=.z!===z:=z->z:>z/.�+�-�*�/�^z&&z||�!z<>�|z/;�?�@z//z/@z@@z@@@z~~z===�&�<�>z<=z>=)�,�;�(�)�[�]�{�}c�P�SRSRSU555$)Nz({})rkc3�N# �UHn[R"U5v� M g7f)N)r%�escape)�.0�entrys  r*�	<genexpr>�1MathematicaLexer._multi_escape.<locals>.<genexpr>�s���%L�G�5�b�i�i��&6�&6�G�s�#%)�format�join)�entriess r*�
_multi_escape�MathematicaLexer._multi_escape�s ���}�}�S�X�X�%L�G�%L�L�M�Mr-rz(?s)\(\*.*?\*\)z([a-zA-Z]+[A-Za-z0-9]*`)z([A-Za-z0-9]*_+[A-Za-z0-9]*)z#\d*z([a-zA-Z]+[a-zA-Z0-9]*)z67-?\d+\.\d*z68-?\d*\.\d+z-?\d+z".*?"�\s+r.N)r/r0r1r2r3r4r5r6r7�	mimetypesr8�	operators�punctuationr�r	r�	Namespacer=r�Float�Integerrr69rr
rrr>r?r.r-r*rr�s�����D�70-�C�;�G�C�I�/�I�71�M��I�;�K�N�	�
��)�
(�$�.�.�9�
,�d�m�m�<�
�d�m�m�$�
'��.�
�F�L�L�)�
�F�L�L�)�
�v�~�~�&�
�9�
�x�(�
�;�
��-�
�v��
�T�_�_�%�72��Fr-rc���\rSrSrSrSrSrS/rS/rSr	S\73R4S	\74RS754S\
4S\4S
\4S\R"4S\R$4S\R&R(4S\4S\R,4S\4S\"\R2\\54S\R64S\4S\4S\4S\4/S\76R4S	\77RS4S\78RS4S\79R4/S.rS rg!)"r��zO80A MuPAD lexer.81Contributed by Christopher Creutzig <christopher@creutzig.de>.82�MuPADzhttp://www.mupad.com�mupadz*.muz0.8z//.*?$�/\*�commentrra�(?x)\b(?:83                next|break|end|84                axiom|end_axiom|category|end_category|domain|end_domain|inherits|85                if|%if|then|elif|else|end_if|86                case|of|do|otherwise|end_case|87                while|end_while|88                repeat|until|end_repeat|89                for|from|to|downto|step|end_for|90                proc|local|option|save|begin|end_proc|91                delete|frame92              )\baU(?x)\b(?:93                DOM_ARRAY|DOM_BOOL|DOM_COMPLEX|DOM_DOMAIN|DOM_EXEC|DOM_EXPR|94                DOM_FAIL|DOM_FLOAT|DOM_FRAME|DOM_FUNC_ENV|DOM_HFARRAY|DOM_IDENT|95                DOM_INT|DOM_INTERVAL|DOM_LIST|DOM_NIL|DOM_NULL|DOM_POLY|DOM_PROC|96                DOM_PROC_ENV|DOM_RAT|DOM_SET|DOM_STRING|DOM_TABLE|DOM_VAR97              )\bz�(?x)\b(?:98                PI|EULER|E|CATALAN|99                NIL|FAIL|undefined|infinity|100                TRUE|FALSE|UNKNOWN101              )\bz\b(?:dom|procname)\bz-\.|,|:|;|=|\+|-|\*|/|\^|@|>|<|\$|\||!|\'|%|~=z�(?x)\b(?:102                and|or|not|xor|103                assuming|104                div|mod|105                union|minus|intersect|in|subset106              )\bz \b(?:I|RDN_INF|RD_NINF|RD_NAN)\bzi(?x)107              ((?:[a-zA-Z_#][\w#]*|`[^`]*`)108              (?:::[a-zA-Z_#][\w#]*|`[^`]*`)*)(\s*)([(])z](?x)109              (?:[a-zA-Z_#][\w#]*|`[^`]*`)110              (?:::[a-zA-Z_#][\w#]*|`[^`]*`)*r r!r�r"z[^/*]+z#push�\*/�#pop�[*/]�rr�r.N)r/r0r1r2r3r4r5r6r7r8r	r9�	Multiliner
rrr�Classr:r;�Pseudor111r<rr�Functionrr=rr>r?r.r-r*rr�sc����D�112 �C��i�G���I��M�����'�
�W�&�&�	�2�
!�6�*�
!�;�/�113��114
��115�j�j�
"��116�]�]�
�%�d�l�l�&9�&9�:�
=�x�H���]�]�

�1�&�9�<��d�m�m�T�;�
7�
9�1�26�-�-�
A�0��8�
$�f�-�
�Z� �
�4�L�c2117�h��)�)�*�
�W�&�&��0�
�W�&�&��/�
�g�'�'�(�	118�i:�Fr-rc	���\rSrSrSrSrSrS/rS/rSr	S\119RS	4S120\4S\
4\"SS
S9\4S\4S\4S\4S\4/S\121R4S\122RS4S\123R4/S.rSrg)ri
z
124A BC lexer.125�BCz https://www.gnu.org/software/bc/�bcz*.bcz2.1r�r�rz[{}();,])�if�else�while�for�break�continue�halt�return�define�auto�print�read�length�scale�sqrt�limits�quit�warrantyz\b)�suffixz!\+\+|--|\|\||&&|([-<>+*%\^/!=])=?z[0-9]+(\.[0-9]*)?z\.[0-9]+r"z[^*/]+r�r�r�r�r.N)r/r0r1r2r3r4r5r6r7r8r	r�r
rrrr126rrr>r?r.r-r*rr
s�����D�127,�C��f�G���I��M��W�&�&�	�2�
!�6�*�
�+�&�
� �).�/�18�
9�"�#+�
-�"�6�*�
�&�!�
�4�L�128� ��)�)�*�
�W�&�&��/�
�g�'�'�(�129�!�Fr-r)r3r%�pygments.lexerrrrrr�pygments.tokenrr	r130rrr
rrrr�__all__rrrrrr.r-r*�<module>r�so���131�L�L�-�-�-���C�z�C�L7�e�7�t-�z�-�`E��E�P�j�r-
codekingpro/portable-devtools · Team Ai