3

V'ícœ
ã@sbdZddlZddlmZmZmZddlmZmZm	Z	m
Z
mZmZm
Z
mZdgZGdd„deƒZdS)a
    pygments.lexers.maxima
    ~~~~~~~~~~~~~~~~~~~~~~

    Lexer for the computer algebra system Maxima.

    Derived from pygments/lexers/algebra.py.

    :copyright: Copyright 2006-2022 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îeZdZdZdZdZddgZddgZdIZdJZ	dKZ
dLZd6ej
d7fd8efd9efd:efee	ƒejfeeƒefee
ƒefeeƒejfd;eejejeƒfd<ejfd=ejfd>ejfd?ejfd$efgd@ej
fd6ej
dAfdBej
dCfdDej
fgdEœZdFdG„ZdHS)Mr
zb
    A Maxima lexer.
    Derived from pygments.lexers.MuPADLexer.

    .. versionadded:: 2.11
    ZMaximazhttp://maxima.sourceforge.netZmaximaZmacsymaz*.macz*.maxÚifÚthenÚelseÚelseifÚdoÚwhileÚrepeatÚuntilÚforÚfromÚtoÚdowntoÚstepÚthruú%piú%eú%phiú%gammaú%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+z[^*/]+z#pushz\*/z#popz[*/])Úrootr<cCs0d}tjd|tjƒr|d7}d|kr,|d7}|S)Ngz\$\s*$gš™™™™™©?z:=g{®Gáz”?)ÚreÚsearchÚ	MULTILINE)ÚtextZstrength©rBú:/tmp/pip-build-gk9425m9/Pygments/pygments/lexers/maxima.pyÚanalyse_textMszMaximaLexer.analyse_textN)rrrrrrrrrrrrrr)rrrrr r!r"r#r$r%r&r'r(r))r*r+r,r-r.r/r0r1r2r3r4r5r6r7r8)r9r:r;) Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚnameÚurlÚaliasesÚ	filenamesÚkeywordsÚ	constantsÚ	operatorsZoperator_wordsrZ	Multiliner
rrr	ÚConstantrrÚWordrZFunctionrÚ
WhitespaceÚVariablerZFloatZIntegerÚtokensrDrBrBrBrCr
sF




)rHr>Zpygments.lexerrrrZpygments.tokenrrrrr	r
rrÚ__all__r
rBrBrBrCÚ<module>s
(