;
ะโ"Ic               @   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 Gd   d	 e  Z e j e  Z e e  Z d
   Z d S(   u&   Export the Python grammar and symbols.i    Ni   (   u   token(   u   driver(   u   pytreeu   Grammar.txtc             B   s   |  Ee  Z d    Z d S(   c             C   s4   x- | j  j   D] \ } } t |  | |  q Wd S(   u   Initializer.

        Creates an attribute for each grammar symbol (nonterminal),
        whose value is the symbol's type (an int >= 256).
        N(   u   symbol2numberu   itemsu   setattr(   u   selfu   grammaru   nameu   symbol(    (    u+   /mit/python/lib/python3.0/lib2to3/pygram.pyu   __init__   s     N(   u   __name__u
   __module__u   __init__(   u
   __locals__(    (    u+   /mit/python/lib/python3.0/lib2to3/pygram.pyu   Symbols   s   
u   Symbolsc             C   s:   t  j t j t  j t j d  |  t  j t j d  f  S(   Nu   (u   )(   u   pytreeu   Nodeu   python_symbolsu   atomu   Leafu   tokenu   LPARu   RPAR(   u   node(    (    u+   /mit/python/lib/python3.0/lib2to3/pygram.pyu   parenthesize"   s    (   u   __doc__u   osu   pgen2u   tokenu   driveru    u   pytreeu   pathu   joinu   dirnameu   __file__u   _GRAMMAR_FILEu   objectu   Symbolsu   load_grammaru   python_grammaru   python_symbolsu   parenthesize(    (    (    u+   /mit/python/lib/python3.0/lib2to3/pygram.pyu   <module>   s   !