| Server IP : 103.4.122.14 / Your IP : 216.73.216.103 Web Server : Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips System : Linux cwp2.slnet.com.au 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : statewid ( 1251) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/lib64/python3.6/lib2to3/__pycache__/ |
Upload File : |
3
\� � @ s� d Z ddlZddlmZ ddlmZ ddlmZ ejjejj e
�d�Zejjejj e
�d�ZG d d
� d
e
�Zejde�Zee�Zej� Zejd= ejde�Zee�ZdS )
z&Export the Python grammar and symbols.� N� )�token)�driver)�pytreezGrammar.txtzPatternGrammar.txtc @ s e Zd Zdd� ZdS )�Symbolsc C s( x"|j j� D ]\}}t| ||� qW dS )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 �/usr/lib64/python3.6/pygram.py�__init__ s zSymbols.__init__N)�__name__�
__module__�__qualname__r
r r r r r s r Zlib2to3�print)�__doc__�osZpgen2r r � r �path�join�dirname�__file__Z
_GRAMMAR_FILEZ_PATTERN_GRAMMAR_FILE�objectr Zload_packaged_grammarZpython_grammarZpython_symbols�copyZ!python_grammar_no_print_statement�keywordsZpattern_grammarZpattern_symbolsr r r r �<module> s