Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/pygments/lexers/__pycache__/grammar_notation.cpython-39.pyc
Ðазад
a a�hk � @ s� d Z ddlmZmZmZmZmZmZ ddlm Z m Z mZmZm Z mZmZmZmZmZ g d�ZG dd� de�ZG dd� de�ZG d d � d e�ZG dd� de�Zd S )z� pygments.lexers.grammar_notation ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Lexers for grammar notations like BNF. :copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. � )� RegexLexer�bygroups�include�this�using�words) �Comment�Keyword�Literal�Name�Number�Operator�Punctuation�String�Text� Whitespace)�BnfLexer� AbnfLexer� JsgfLexer�PegLexerc @ sX e Zd ZdZdZdgZdgZdgZdZdZ dd e eej e�fd efdefdefgiZd S )r a# This lexer is for grammar notations which are similar to original BNF. In order to maximize a number of targets of this lexer, let's decide some designs: * We don't distinguish `Terminal Symbol`. * We do assume that `NonTerminal Symbol` are always enclosed with arrow brackets. * We do assume that `NonTerminal Symbol` may include any printable characters except arrow brackets and ASCII 0x20. This assumption is for `RBNF <http://www.rfc-base.org/txt/rfc-5511.txt>`_. * We do assume that target notation doesn't support comment. * We don't distinguish any operators and punctuation except `::=`. Though these decision making might cause too minimal highlighting and you might be disappointed, but it is reasonable for us. �BNF�bnfz*.bnfz text/x-bnfz6https://en.wikipedia.org/wiki/Backus%E2%80%93Naur_form�2.1�rootz(<)([ -;=?-~]+)(>)z::=z[^<>:]+�.N)�__name__� __module__�__qualname__�__doc__�name�aliases� filenames� mimetypes�url� version_addedr r r �Classr r �tokens� r'