File: //opt/saltstack/salt/lib/python3.10/site-packages/pygments/lexers/__pycache__/tnt.cpython-310.pyc
o
;j�( � @ sZ d Z ddlZddlmZ ddlmZmZmZmZm Z m
Z
mZmZ dgZ
G dd� de�ZdS )z�
pygments.lexers.tnt
~~~~~~~~~~~~~~~~~~~
Lexer for Typographic Number Theory.
:copyright: Copyright 2006-present by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
� N)�Lexer)�Text�Comment�Operator�Keyword�Name�Number�Punctuation�Error�TNTLexerc @ s� e Zd ZdZdZdZdgZdgZdZg Z e
d�Ze
d�Ze
d �Z
e
d
�Ze
d�Ze
d�Ze
d
�Ze
d�Ze�d�Ze�d�Ze�d�Zdd� Zd&dd�Zdd� Zdd� Zdd� Zdd� Zdd � Zd!d"� Zd#d$� Z d%S )'r uz
Lexer for Typographic Number Theory, as described in the book
Gödel, Escher, Bach, by Douglas R. Hofstadter
zTypographic Number Theoryz,https://github.com/Kenny2github/language-tntZtntz*.tntz2.7u ⊃→]&∧^|∨Vvu +.⋅*Zabcdeu '′z~!u AE∀∃�
0123456789z
ax (?xi)
joining | separation | double-tilde | fantasy\ rule
| carry[- ]over(?:\ of)?(?:\ line)?\ ([0-9]+) | detachment
| contrapositive | De\ Morgan | switcheroo
| specification | generalization | interchange
| existence | symmetry | transitivity
| add\ S | drop\ S | induction
| axiom\ ([1-5]) | premise | push | pop
z((?:[0-9]+)(?:(?:, ?|,? and )(?:[0-9]+))*z\[[^\n\]]+\]c O s"