관리-도구
편집 파일: pygram.cpython-34.pyo
� i fZ � @ 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 Gd d � d e � Z e j e � Z e e � Z e j � Z e j d =e j e � Z e e � Z d S)z&Export the Python grammar and symbols.� N� )�token)�driver)�pytreezGrammar.txtzPatternGrammar.txtc @ s e Z d Z d d � Z d S)�Symbolsc C s4 x- | j j � D] \ } } t | | | � q Wd S)z�Initializer. Creates an attribute for each grammar symbol (nonterminal), whose value is the symbol's type (an int >= 256). N)Z symbol2number�items�setattr)�selfZgrammar�nameZsymbol� r �3/opt/alt/python34/lib64/python3.4/lib2to3/pygram.py�__init__ s zSymbols.__init__N)�__name__� __module__�__qualname__r r r r r r s r �print)�__doc__�osZpgen2r r � r �path�join�dirname�__file__Z _GRAMMAR_FILEZ_PATTERN_GRAMMAR_FILE�objectr Zload_grammarZpython_grammarZpython_symbols�copyZ!python_grammar_no_print_statement�keywordsZpattern_grammarZpattern_symbolsr r r r �<module> s !