https://t.me/RX1948
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/pygments/lexers/__pycache__/grammar_notation.cpython-310.pyc
o

���aV�@s�dZddlZddlmZmZmZmZmZmZddl	m
Z
mZmZm
Z
mZmZmZmZmZmZgd�ZGdd�de�ZGdd	�d	e�ZGd
d�de�ZGdd
�d
e�ZdS)z�
    pygments.lexers.grammar_notation
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Lexers for grammar notations like BNF.

    :copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�N)�
RegexLexer�bygroups�include�this�using�words)
�Comment�Keyword�Literal�Name�Number�Operator�Punctuation�String�Text�
Whitespace)�BnfLexer�	AbnfLexer�	JsgfLexer�PegLexerc@sPeZdZdZdZdgZdgZdgZddee	e
je	�fdefd	e
fd
e
fgiZdS)ra>
    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 desision making might cause too minimal highlighting
    and you might be disappointed, but it is reasonable for us.

    .. versionadded:: 2.1
    �BNF�bnfz*.bnfz
text/x-bnf�rootz(<)([ -;=?-~]+)(>)z::=z[^<>:]+�.N)�__name__�
__module__�__qualname__�__doc__�name�aliases�	filenames�	mimetypesrrr�Classr
r�tokens�r$r$�B/usr/lib/python3/dist-packages/pygments/lexers/grammar_notation.pyrs���rc@s�eZdZdZdZdgZdgZdgZdZdde	j
fd	efd
efdefdefd
efdefdefdefdefdefdefe
edd�efdejfdefdefdefdefgiZdS)rz�
    Lexer for `IETF 7405 ABNF
    <http://www.ietf.org/rfc/rfc7405.txt>`_
    (Updates `5234 <http://www.ietf.org/rfc/rfc5234.txt>`_)
    grammars.

    .. versionadded:: 2.1
    �ABNF�abnfz*.abnfztext/x-abnf)�ALPHA�BIT�CHAR�CR�CRLF�CTL�DIGIT�DQUOTE�HEXDIG�HTAB�LF�LWSP�OCTET�SP�VCHAR�WSPrz;.*$z(%[si])?"[^"]*"z%b[01]+\-[01]+\bz%b[01]+(\.[01]+)*\bz%d[0-9]+\-[0-9]+\bz%d[0-9]+(\.[0-9]+)*\bz%x[0-9a-fA-F]+\-[0-9a-fA-F]+\bz!%x[0-9a-fA-F]+(\.[0-9a-fA-F]+)*\bz\b[0-9]+\*[0-9]+z
\b[0-9]+\*z\b[0-9]+�\*�\b��suffixz[a-zA-Z][a-zA-Z0-9-]*\bz(=/|=|/)z[\[\]()]�\s+rN)rrrrrrr r!�_core_rulesr�Singler
r
rr	rr"rrrr#r$r$r$r%rDs8	��rc@s�eZdZdZdZdgZdgZgd�Zej	ej
BZed�ed�gde
jd	fd
e
jfde
jfgde
jfd
efdefdefdejfdejdfdejdfeddd�ejfdejdfdeeeje�fdedfdefgdejdfdej fd ejfgd!ejdfdej fd"ejfgdedfd
efd#efd$ej!fgd%edfd&efd
efd'eej!ee�fd(ej"fgd)e
jdfd*eee
jee
j#ee$e%d+d,��fd-ee
je
j#�fd.e
jfgd/eee
j�fed�d0e
jfgd1�	Z&d2S)3rzn
    For `JSpeech Grammar Format <https://www.w3.org/TR/jsgf/>`_
    grammars.

    .. versionadded:: 2.2
    �JSGF�jsgfz*.jsgf)zapplication/jsgfzapplication/x-jsgfz	text/jsgf�comments�non-commentsz
/\*\*(?!/)�documentation commentz/\*[\w\W]*?\*/z//.*$z\A#JSGF[^;]*r<�;z[=|()\[\]*+]z/[^/]+/�"�stringz\{�tag)�import�publicr9r:z	grammar\b�grammar namez(<)(NULL|VOID)(>)�<�rulenamez\w+|[^\s;=|()\[\]*+/"{<\w]+z#popz\\.z[^\\"]+z\}z[^\\}]+�\.z[^;\s.]+�>r8z([^.>]+)(\s*)(\.)z[^.>]+z\*/zH^(\s*)(\*?)(\s*)(@(?:example|see))(\s+)([\w\W]*?(?=(?:^\s*\*?\s*@|\*/)))�example)�statez(^\s*\*?\s*)(@\S*)z[^*\n@]+|\w|\Wz(\n\s*)(\*)r)	rrArBrFrGrJrLrCrON)'rrrrrrr r!�re�	MULTILINE�UNICODE�flagsrr�	Multiliner>�Preprocrrr
r�Floatr�Double�Otherrr	�Reservedrr�Builtinr�Escape�	Namespace�Constant�Specialrrr#r$r$r$r%r�s��
�


��
�
���
�����
�rc@steZdZdZdZdgZdgZdgZddej	fde
fd	efd
efde
eee�fdejfd
ej	fdejfdefg	iZdS)ruZ
    This lexer is for `Parsing Expression Grammars
    <https://bford.info/pub/lang/peg.pdf>`_ (PEG).

    Various implementations of PEG have made different decisions
    regarding the syntax, so let's try to be accommodating:

    * `<-`, `←`, `:`, and `=` are all accepted as rule operators.

    * Both `|` and `/` are choice operators.

    * `^`, `↑`, and `~` are cut operators.

    * A single `a-z` character immediately before a string, or
      multiple `a-z` characters following a string, are part of the
      string (e.g., `r"..."` or `"..."ilmsuxa`).

    .. versionadded:: 2.6
    �PEG�pegz*.pegz
text/x-pegrz#.*$u<-|[←:=/|&!?*+^↑~]z[()]rMz (\[)([^\]]*(?:\\.[^\]\\]*)*)(\])z$[a-z]?"[^"\\]*(?:\\.[^"\\]*)*"[a-z]*z$[a-z]?'[^'\\]*(?:\\.[^'\\]*)*'[a-z]*u#[^\s<←:=/|&!?*+\^↑~()\[\]"\'#]+rN)rrrrrrr r!rr>r
rr	rrrXrr"rr#r$r$r$r%r�s(
���r)rrQ�pygments.lexerrrrrrr�pygments.tokenrr	r
rrr
rrrr�__all__rrrrr$r$r$r%�<module>s
 00CP

https://t.me/RX1948 - 2025