ó
ńsşec           @   sđ   d  Z  d d l Z d d l m Z d d l m Z d d l m Z e j j e j j	 e
  d  Z e j j e j j	 e
  d  Z d	 e f d
     YZ e j d e  Z e e  Z e j   Z e j d =e j d e  Z e e  Z d S(   s&   Export the Python grammar and symbols.i˙˙˙˙Ni   (   t   token(   t   driver(   t   pytrees   Grammar.txts   PatternGrammar.txtt   Symbolsc           B   s   e  Z d    Z RS(   c         C   s4   x- | j  j   D] \ } } t |  | |  q Wd S(   s   Initializer.

        Creates an attribute for each grammar symbol (nonterminal),
        whose value is the symbol's type (an int >= 256).
        N(   t   symbol2numbert	   iteritemst   setattr(   t   selft   grammart   namet   symbol(    (    s$   /usr/lib/python2.7/lib2to3/pygram.pyt   __init__   s    (   t   __name__t
   __module__R   (    (    (    s$   /usr/lib/python2.7/lib2to3/pygram.pyR      s   t   lib2to3t   print(   t   __doc__t   ost   pgen2R    R   t    R   t   patht   joint   dirnamet   __file__t   _GRAMMAR_FILEt   _PATTERN_GRAMMAR_FILEt   objectR   t   load_packaged_grammart   python_grammart   python_symbolst   copyt!   python_grammar_no_print_statementt   keywordst   pattern_grammart   pattern_symbols(    (    (    s$   /usr/lib/python2.7/lib2to3/pygram.pyt   <module>   s   !	
