î i fZã@sêdZddlZddlmZddlmZddlmZejjejj e ƒdƒZ ejjejj e ƒdƒZ Gd d „d e ƒZeje ƒZeeƒZejƒZejd =eje ƒZeeƒZdS) z&Export the Python grammar and symbols.éNé)Útoken)Údriver)Úpytreez Grammar.txtzPatternGrammar.txtc@seZdZdd„ZdS)ÚSymbolscCs4x-|jjƒD]\}}t|||ƒqWdS)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__szSymbols.__init__N)Ú__name__Ú __module__Ú __qualname__r r r r r rs rÚprint)Ú__doc__ÚosZpgen2rrÚrÚpathÚjoinÚdirnameÚ__file__Z _GRAMMAR_FILEZ_PATTERN_GRAMMAR_FILEÚobjectrZ load_grammarZpython_grammarZpython_symbolsÚcopyZ!python_grammar_no_print_statementÚkeywordsZpattern_grammarZpattern_symbolsr r r r Ús !