Edit file File name : lex.cpython-36.opt-1.pyc Content :3 r��WЧ � @ s" d Z dZddlZddlZddlZddlZddlZddlZyejej fZ W n ek rd ee fZ Y nX ejd�ZG dd� de�ZG dd� de�ZG d d � d e�ZG dd� de�ZG d d� d�Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� ZG dd� de�Zd%dd �Zd&d!d"�Zd#d$� Z e Z!dS )'z3.9z3.8� Nz^[a-zA-Z0-9_]+$c @ s e Zd Zdd� ZdS )�LexErrorc C s |f| _ || _d S )N)�args�text)�self�message�s� r �/usr/lib/python3.6/lex.py�__init__: s zLexError.__init__N)�__name__� __module__�__qualname__r r r r r r 9 s r c @ s e Zd Zdd� Zdd� ZdS )�LexTokenc C s d| j | j| j| jf S )NzLexToken(%s,%r,%d,%d))�type�value�lineno�lexpos)r r r r �__str__A s zLexToken.__str__c C s t | �S )N)�str)r r r r �__repr__D s zLexToken.__repr__N)r r r r r r r r r r @ s r c @ s4 e Zd Zdd� Zdd� Zdd� Zdd� ZeZeZd S ) � PlyLoggerc C s || _ d S )N)�f)r r r r r r L s zPlyLogger.__init__c O s | j j|| d � d S )N� )r �write)r �msgr �kwargsr r r �criticalO s zPlyLogger.criticalc O s | j jd|| d � d S )Nz WARNING: r )r r )r r r r r r r �warningR s zPlyLogger.warningc O s | j jd|| d � d S )NzERROR: r )r r )r r r r r r r �errorU s zPlyLogger.errorN) r r r r r r r �info�debugr r r r r K s r c @ s e Zd Zdd� Zdd� ZdS )� NullLoggerc C s | S )Nr )r �namer r r �__getattribute__^ s zNullLogger.__getattribute__c O s | S )Nr )r r r r r r �__call__a s zNullLogger.__call__N)r r r r# r$ r r r r r! ] s r! c @ s| e Zd Zdd� Zddd�Zddd�Zd d � Zdd� Zd d� Zdd� Z dd� Z dd� Zdd� Zdd� Z dd� Zdd� ZeZdS )�Lexerc C s� d | _ d | _i | _i | _i | _d| _g | _d | _i | _i | _ i | _ d| _d | _d| _ d| _d | _d | _d | _d| _d| _d | _d| _d| _d S )N�INITIALr � � F)�lexre� lexretext� lexstatere�lexstateretext�lexstaterenames�lexstate� lexstatestack�lexstateinfo�lexstateignore�lexstateerrorf�lexstateeoff� lexreflags�lexdatar �lexlen� lexerrorf�lexeoff� lextokens� lexignore�lexliterals� lexmoduler �lexoptimize)r r r r r t s. zLexer.__init__Nc C s� t j | �}|r�i }x�| jj� D ]�\}}g }x\|D ]T\}}g } xF|D ]>} | sV| d rb| j| � qB| jt|| d j�| d f� qBW q0W |j|| f� |||<