3
V'ícÙ( ã @ sZ d Z ddlZddlmZ ddlmZmZmZmZm Z m
Z
mZmZ dgZ
G dd deZdS )zÏ
pygments.lexers.tnt
~~~~~~~~~~~~~~~~~~~
Lexer for Typographic Number Theory.
:copyright: Copyright 2006-2022 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 ZdZdZdZdgZdgZg Ze dZ
e dZe dZe d Z
e d
Ze dZe dZe d
ZejdZejdZejdZdd Zd%ddZdd Zdd Zdd Zdd Zdd Zd d! Zd"d# Zd$S )&r u
Lexer for Typographic Number Theory, as described in the book
Gödel, Escher, Bach, by Douglas R. Hofstadter
.. versionadded:: 2.7
zTypographic Number Theoryz,https://github.com/Kenny2github/language-tntZtntz*.tntu ââ]&â§^|â¨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 t j| f|| g | _d S )N)r Ú__init__Úcur)ÚselfÚargsÚkwargs© r ú7/tmp/pip-build-gk9425m9/Pygments/pygments/lexers/tnt.pyr