Ñò
•à"Ic           @   s¡   d  Z  d d k Z d d k l Z d d k l Z d d k l Z e i i e i i	 e
 ƒ d ƒ Z d e f d	 „  ƒ  YZ e i e ƒ Z e e ƒ Z d
 „  Z d S(   s&   Export the Python grammar and symbols.iÿÿÿÿNi   (   t   token(   t   driver(   t   pytrees   Grammar.txtt   Symbolsc           B   s   e  Z d  „  Z RS(   c         C   s4   x- | i  i ƒ  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+   /mit/python/lib/python2.6/lib2to3/pygram.pyt   __init__   s     (   t   __name__t
   __module__R   (    (    (    s+   /mit/python/lib/python2.6/lib2to3/pygram.pyR      s   c         C   s:   t  i t i t  i t i d ƒ |  t  i t i d ƒ f ƒ S(   Nt   (t   )(   R   t   Nodet   python_symbolst   atomt   LeafR    t   LPARt   RPAR(   t   node(    (    s+   /mit/python/lib/python2.6/lib2to3/pygram.pyt   parenthesize"   s    (   t   __doc__t   ost   pgen2R    R   t    R   t   patht   joint   dirnamet   __file__t   _GRAMMAR_FILEt   objectR   t   load_grammart   python_grammarR   R   (    (    (    s+   /mit/python/lib/python2.6/lib2to3/pygram.pyt   <module>   s   !