AlkantarClanX12
Current Path : /usr/lib64/python3.6/site-packages/yaml/__pycache__/ |
Current File : //usr/lib64/python3.6/site-packages/yaml/__pycache__/parser.cpython-36.pyc |
3 <z�W�c � @ sN d dgZ ddlmZ ddlT ddlT ddlT G dd� de�ZG dd � d �ZdS )�Parser�ParserError� )�MarkedYAMLError)�*c @ s e Zd ZdS )r N)�__name__� __module__�__qualname__� r r �/usr/lib64/python3.6/parser.pyr E s c @ s e Zd Zddd�Zdd� Zdd� Zdd � Zd d� Zdd � Zdd� Z dd� Z dd� Zdd� Zdd� Z dd� Zdd� Zdd� Zdd� ZdDd!d"�Zd#d$� Zd%d&� Zd'd(� Zd)d*� Zd+d,� Zd-d.� Zd/d0� ZdEd1d2�Zd3d4� Zd5d6� Zd7d8� Zd9d:� ZdFd;d<�Zd=d>� Z d?d@� Z!dAdB� Z"dCS )Gr �!ztag:yaml.org,2002:)r z!!c C s* d | _ d | _i | _g | _g | _| j| _d S )N)� current_event�yaml_version�tag_handles�states�marks�parse_stream_start�state)�selfr r r �__init__Q s zParser.__init__c C s g | _ d | _d S )N)r r )r r r r �disposeY s zParser.disposec G sN | j d kr| jr| j� | _ | j d k rJ|s,dS x|D ]}t| j |�r2dS q2W dS )NTF)r r � isinstance)r �choicesZchoicer r r �check_event^ s zParser.check_eventc C s | j d kr| jr| j� | _ | j S )N)r r )r r r r � peek_eventk s zParser.peek_eventc C s* | j d kr| jr| j� | _ | j }d | _ |S )N)r r )r �valuer r r � get_eventr s zParser.get_eventc C s( | j � }t|j|j|jd�}| j| _|S )N)�encoding)� get_tokenZStreamStartEvent� start_mark�end_markr �parse_implicit_document_startr )r �token�eventr r r r s zParser.parse_stream_startc C s\ | j ttt�sP| j| _| j� }|j }}t||dd�}| j j | j� | j| _ |S | j� S d S )NF)�explicit)�check_token�DirectiveToken�DocumentStartToken�StreamEndToken�DEFAULT_TAGSr � peek_tokenr �DocumentStartEventr �append�parse_document_end�parse_block_noder �parse_document_start)r r! r r r"