$49 GRAYBYTE WORDPRESS FILE MANAGER $41

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/python311/lib64/python3.11/lib2to3/

HOME
Current File : /opt/alt/python311/lib64/python3.11/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)


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
10 Feb 2026 9.36 AM
root / linksafe
0755
__pycache__
--
10 Feb 2026 9.36 AM
root / linksafe
0755
fixes
--
10 Feb 2026 9.36 AM
root / linksafe
0755
pgen2
--
10 Feb 2026 9.36 AM
root / linksafe
0755
Grammar.txt
8.492 KB
9 Oct 2025 4.16 PM
root / linksafe
0644
Grammar3.11.14.final.0.pickle
14.954 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
PatternGrammar.txt
0.774 KB
9 Oct 2025 4.16 PM
root / linksafe
0644
PatternGrammar3.11.14.final.0.pickle
1.196 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
__init__.py
0.152 KB
9 Oct 2025 4.16 PM
root / linksafe
0644
__main__.py
0.065 KB
9 Oct 2025 4.16 PM
root / linksafe
0644
btm_matcher.py
6.468 KB
9 Oct 2025 4.16 PM
root / linksafe
0644
btm_utils.py
9.712 KB
9 Oct 2025 4.16 PM
root / linksafe
0644
fixer_base.py
6.533 KB
9 Oct 2025 4.16 PM
root / linksafe
0644
fixer_util.py
14.85 KB
9 Oct 2025 4.16 PM
root / linksafe
0644
main.py
11.576 KB
9 Oct 2025 4.16 PM
root / linksafe
0644
patcomp.py
6.889 KB
9 Oct 2025 4.16 PM
root / linksafe
0644
pygram.py
1.274 KB
9 Oct 2025 4.16 PM
root / linksafe
0644
pytree.py
27.318 KB
9 Oct 2025 4.16 PM
root / linksafe
0644
refactor.py
26.862 KB
9 Oct 2025 4.16 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF