SILENT KILLERPanel

Current Path: > > opt > alt > python312 > lib64 > python3.12 > lib2to3 > >


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/alt/python312/lib64/python3.12/lib2to3//

NameTypeSizeLast ModifiedActions
__pycache__ Directory - -
fixes Directory - -
pgen2 Directory - -
Grammar.txt File 8696 bytes June 03 2025 15:41:47.
Grammar3.12.11.final.0.pickle File 15313 bytes June 23 2025 13:59:26.
PatternGrammar.txt File 793 bytes June 03 2025 15:41:47.
PatternGrammar3.12.11.final.0.pickle File 1225 bytes June 23 2025 13:59:27.
__init__.py File 156 bytes June 23 2025 13:48:50.
__main__.py File 67 bytes June 23 2025 13:48:50.
btm_matcher.py File 6623 bytes June 23 2025 13:48:50.
btm_utils.py File 9945 bytes June 23 2025 13:48:50.
fixer_base.py File 6690 bytes June 23 2025 13:48:50.
fixer_util.py File 15206 bytes June 23 2025 13:48:50.
main.py File 11854 bytes June 23 2025 13:48:50.
patcomp.py File 7054 bytes June 23 2025 13:48:50.
pygram.py File 1305 bytes June 23 2025 13:48:50.
pytree.py File 27974 bytes June 23 2025 13:48:50.
refactor.py File 27507 bytes June 23 2025 13:48:50.

Reading File: //opt/alt/python312/lib64/python3.12/lib2to3///pygram.py

# Copyright 2006 Google, Inc. All Rights Reserved.
# Licensed to PSF under a Contributor Agreement.

"""Export the Python grammar and symbols."""

# Python imports
import os

# Local imports
from .pgen2 import token
from .pgen2 import driver
from . import pytree

# The grammar file
_GRAMMAR_FILE = os.path.join(os.path.dirname(__file__), "Grammar.txt")
_PATTERN_GRAMMAR_FILE = os.path.join(os.path.dirname(__file__),
                                     "PatternGrammar.txt")


class Symbols(object):

    def __init__(self, grammar):
        """Initializer.

        Creates an attribute for each grammar symbol (nonterminal),
        whose value is the symbol's type (an int >= 256).
        """
        for name, symbol in grammar.symbol2number.items():
            setattr(self, name, symbol)


python_grammar = driver.load_packaged_grammar("lib2to3", _GRAMMAR_FILE)

python_symbols = Symbols(python_grammar)

python_grammar_no_print_statement = python_grammar.copy()
del python_grammar_no_print_statement.keywords["print"]

python_grammar_no_print_and_exec_statement = python_grammar_no_print_statement.copy()
del python_grammar_no_print_and_exec_statement.keywords["exec"]

pattern_grammar = driver.load_packaged_grammar("lib2to3", _PATTERN_GRAMMAR_FILE)
pattern_symbols = Symbols(pattern_grammar)

SILENT KILLER Tool