$35 GRAYBYTE WORDPRESS FILE MANAGER $73

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

/opt/alt/python35/lib64/python3.5/lib2to3/

HOME
Current File : /opt/alt/python35/lib64/python3.5/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_grammar(_GRAMMAR_FILE)

python_symbols = Symbols(python_grammar)

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

pattern_grammar = driver.load_grammar(_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
..
--
12 Aug 2024 8.41 AM
root / linksafe
0755
__pycache__
--
12 Aug 2024 8.41 AM
root / linksafe
0755
fixes
--
12 Aug 2024 8.41 AM
root / linksafe
0755
pgen2
--
12 Aug 2024 8.41 AM
root / linksafe
0755
Grammar.txt
7.042 KB
1 Nov 2019 11.02 PM
root / linksafe
0644
Grammar3.5.9.final.0.pickle
30.979 KB
31 May 2024 1.51 PM
root / linksafe
0644
PatternGrammar.txt
0.774 KB
1 Nov 2019 11.02 PM
root / linksafe
0644
PatternGrammar3.5.9.final.0.pickle
2.044 KB
31 May 2024 1.51 PM
root / linksafe
0644
__init__.py
0.007 KB
31 May 2024 1.51 PM
root / linksafe
0644
__main__.py
0.065 KB
31 May 2024 1.51 PM
root / linksafe
0644
btm_matcher.py
6.673 KB
31 May 2024 1.51 PM
root / linksafe
0644
btm_utils.py
9.732 KB
31 May 2024 1.51 PM
root / linksafe
0644
fixer_base.py
6.533 KB
31 May 2024 1.51 PM
root / linksafe
0644
fixer_util.py
14.88 KB
31 May 2024 1.51 PM
root / linksafe
0644
main.py
11.396 KB
31 May 2024 1.51 PM
root / linksafe
0644
patcomp.py
6.904 KB
31 May 2024 1.51 PM
root / linksafe
0644
pygram.py
1.088 KB
31 May 2024 1.51 PM
root / linksafe
0644
pytree.py
27.395 KB
31 May 2024 1.51 PM
root / linksafe
0644
refactor.py
27.377 KB
31 May 2024 1.51 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF