ó
è¾bc           @   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   !	
