Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/pygments/lexers/__pycache__/ |
Upload File : |
o ���a� � @ sb d Z ddlZddlmZmZmZ ddlmZmZm Z m Z mZmZm Z mZ dgZG dd� de�ZdS )a pygments.lexers.maxima ~~~~~~~~~~~~~~~~~~~~~~ Lexer for the computer algebra system Maxima. Derived from pygments/lexers/algebra.py. :copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. � N)� RegexLexer�bygroups�words)�Text�Comment�Operator�Keyword�Name�String�Number�Punctuation�MaximaLexerc @ s� e Zd ZdZdZddgZddgZdZdZd Z d Z dejdfd e fdefdefee�ejfee�efee �efee �ejfdeejeje�fdejfdejfdejfdejfdefgdejfdejdfdejdfdejfgd�Zdd� ZdS )r z� A `Maxima <http://maxima.sourceforge.net>`_ lexer. Derived from pygments.lexers.MuPADLexer. .. versionadded:: 2.11 �Maxima�maxima�macsymaz*.macz*.max)�if�then�else�elseif�do�while�repeat�until�for�from�to�downto�step�thru)z%piz%ez%phiz%gammaz%i�und�ind�infinity�inf�minf�true�false�unknown�done)�.�:�=�#�+�-�*�/�^�@�>�<�|�!�')�and�or�notz/\*�commentz"(?:[^"\\]|\\.)*"z\(|\)|\[|\]|\{|\}z[,;$]zi(?x) ((?:[a-zA-Z_#][\w#]*|`[^`]*`) (?:::[a-zA-Z_#][\w#]*|`[^`]*`)*)(\s*)([(])za(?x) (?:[a-zA-Z_#%][\w#%]*|`[^`]*`) (?:::[a-zA-Z_#%][\w#%]*|`[^`]*`)*z>[-+]?(\d*\.\d+([bdefls][-+]?\d+)?|\d+(\.\d*)?[bdefls][-+]?\d+)z[-+]?\d+z\s+r( z[^*/]+z#pushz\*/z#popz[*/])�rootr: c C s0 d}t �d| t j�r|d7 }d| v r|d7 }|S )Ng z\$\s*$g�������?z:=g{�G�z�?)�re�search� MULTILINE)�text�strength� rA �8/usr/lib/python3/dist-packages/pygments/lexers/maxima.py�analyse_textL s zMaximaLexer.analyse_textN)�__name__� __module__�__qualname__�__doc__�name�aliases� filenames�keywords� constants� operators�operator_wordsr � Multiliner r r r �Constantr r �Wordr �Functionr � Whitespace�Variabler �Float�Integer�tokensrC rA rA rA rB r sF ��� ��)rG r<