HEX
Server: Apache
System: Linux srv1.prosuiteplus.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: prosuiteplus (1001)
PHP: 8.3.20
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/pygments/lexers/__pycache__/grammar_notation.cpython-38.pyc
U

G�
\��@s�dZddlZddlmZmZmZmZmZmZddl	m
Z
mZmZm
Z
mZmZmZmZmZdddgZGdd�de�ZGd	d�de�ZGd
d�de�ZdS)z�
    pygments.lexers.grammar_notation
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Lexers for grammer notations like BNF.

    :copyright: Copyright 2006-2017 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�BnfLexer�	AbnfLexer�	JsgfLexerc@sPeZdZdZdZdgZdgZdgZddee	e
je	�fdefd	e
fd
e
fgiZdS)ra>
    This lexer is for grammer 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
    ZBNFZbnfz*.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���c@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
    ZABNFZabnfz*.abnfztext/x-abnf)ZALPHAZBITZCHARZCRZCRLFZCTLZDIGITZDQUOTEZHEXDIGZHTABZLFZLWSPZOCTETZSPZVCHARZWSPrz;.*$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)rrrrrrrrZ_core_rulesr�Singler
r
rr	rrrrrr r r r!rEs6	��c@s�eZdZdZdZdgZdgZdddgZej	ej
BZed�ed	�gd
e
jdfde
jfd
e
jfgde
jfdefdefdefdejfdejdfdejdfeddd�ejfdejdfdeeeje�fdedfdefgdejd fd!ejfd"ejfgd#ejd fd!ejfd$ejfgded fdefd%efd&ej fgd'ed fd(efdefd)eej ee�fd*ej!fgd+e
jd fd,ee
je
j"e#e$d-d.��fd/ee
je
j"�fd0e
jfgd1e
jfed	�d2e
jfgd3�	Z%d4S)5rzn
    For `JSpeech Grammar Format <https://www.w3.org/TR/jsgf/>`_
    grammars.

    .. versionadded:: 2.2
    ZJSGFZjsgfz*.jsgfzapplication/jsgfzapplication/x-jsgfz	text/jsgf�comments�non-commentsz
/\*\*(?!/)�documentation commentz/\*[\w\W]*?\*/z//.*z\A#JSGF[^;]*r&�;z[=|()\[\]*+]z/[^/]+/�"�stringz\{�tag)�importZpublicr#r$z	grammar\b�grammar namez(<)(NULL|VOID)(>)�<�rulenamez\w+|[^\s;=|()\[\]*+/"{<\w]+z#popz\\.z[^\\"]+z\}z[^\\}]+z\.z[^;\s.]+�>r"z([^.>]+)(\s*)(\.)z[^.>]+z\*/zB(^\s*\*?\s*)(@(?:example|see)\s+)([\w\W]*?(?=(?:^\s*\*?\s*@|\*/)))�example)�statez(^\s*\*?\s*)(@\S*)z[^*\n@]+|\w|\Wz\n\s*\*r)	rr(r)r-r.r0r2r*r4N)&rrrrrrrr�re�	MULTILINE�UNICODE�flagsrrZ	Multiliner'ZPreprocrrr
rZFloatr�DoubleZOtherrr	ZReservedrrZBuiltinZEscapeZ	NamespaceZConstant�Specialrrrr r r r!r�s~
�
�


��
�
���


������)rr6Zpygments.lexerrrrrrrZpygments.tokenrr	r
rrr
rrr�__all__rrrr r r r!�<module>s
 ,
0C