Your IP : 18.222.67.8
�
{fc @ s� d d l m Z m Z m Z d e j f d � � YZ d e f d � � YZ d e f d � � YZ d e f d � � YZ d
d � Z
d S(
i ( t grammart tokent tokenizet PgenGrammarc B s e Z RS( ( t __name__t
__module__( ( ( s* /usr/lib64/python2.7/lib2to3/pgen2/pgen.pyR s t ParserGeneratorc B s� e Z d d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z
d � Z d � Z d
� Z
d � Z d � Z d
� Z d � Z d d � Z d � Z d � Z RS( c C s� d } | d k r* t | � } | j } n | | _ | | _ t j | j � | _ | j � | j
� \ | _ | _ | d k r� | � n i | _
| j � d S( N( t Nonet opent closet filenamet streamR t generate_tokenst readlinet generatort gettokent parset dfast startsymbolt firstt addfirstsets( t selfR
R t close_stream( ( s* /usr/lib64/python2.7/lib2to3/pgen2/pgen.pyt __init__ s
c C s� t � } | j j � } | j � | j | j � | j d | j � x; | D]3 } d t | j � } | | j | <| | j | <qL Wx� | D]� } | j | } g } x� | D]� } g } xK t
| j j � � D]4 \ } }
| j
| j | | � | j |
� f � q� W| j r,| j
d | j | � f � n | j
| � q� W| j j
| � | | j | | � f | j | j | <q� W| j | j | _ | S( Ni i ( R R t keyst sortt removeR t insertt lent
symbol2numbert
number2symbolt sortedt arcst iteritemst appendt
make_labelt indext isfinalt statest
make_firstt start( R t ct namest namet it dfaR&