관리-도구
편집 파일: _parser.cpython-311.pyc
� �܋fk( � �X � d Z ddlZddlmZmZmZmZmZmZ ddl m Z mZ G d� d� � Z G d� d e� � Z G d � de� � Z G d� d e� � Zee ef Zeeeef ZeZee Z G d� de� � Zdedefd�Zdedefd�Zdedeeeee f fd�Zdedededefd�Zdedee fd�Zdedee fd�Zdedefd�Zdedefd�Zdedefd�Zdedefd�Z dedefd�Z!dedefd �Z"dedefd!�Z#dedefd"�Z$d#ede fd$�Z%d%edefd&�Z&dedefd'�Z'dS )(z�Handwritten parser of dependency specifiers. The docstring for each __parse_* function contains ENBF-inspired grammar representing the implementation. � N)�Any�List� NamedTuple�Optional�Tuple�Union� )� DEFAULT_RULES� Tokenizerc �B � e Zd Zdeddfd�Zdefd�Zdefd�Zdefd�ZdS )�Node�value�returnNc � � || _ d S �N�r )�selfr s �[/opt/cloudlinux/venv/lib64/python3.11/site-packages/setuptools/_vendor/packaging/_parser.py�__init__z Node.__init__ s � ��� � � � c � � | j S r r �r s r �__str__zNode.__str__ s � ��z�r c �( � d| j j � d| � d�S )N�<z('z')>)� __class__�__name__r s r �__repr__z Node.__repr__ s � �7�4�>�*�7�7�d�7�7�7�7r c � � t �r )�NotImplementedErrorr s r � serializezNode.serialize s � �!�!r )r � __module__�__qualname__�strr r r r! � r r r r s� � � � � � ��c� �d� � � � ��� � � � �8�#� 8� 8� 8� 8�"�3� "� "� "� "� "� "r r c � � e Zd Zdefd�ZdS )�Variabler c � � t | � � S r �r$ r s r r! zVariable.serialize � � ��4�y�y�r N�r r"