Linux premium71.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
LiteSpeed
Server IP : 198.187.29.8 & Your IP : 18.191.201.27
Domains :
Cant Read [ /etc/named.conf ]
User : cleahvkv
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib /
python3.6 /
site-packages /
pycparser /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2024-03-03 19:12
__init__.py
2.83
KB
-rw-r--r--
2015-06-10 03:00
_ast_gen.py
8.46
KB
-rw-r--r--
2015-06-10 03:00
_build_tables.py
851
B
-rw-r--r--
2015-06-10 03:00
_c_ast.cfg
4.08
KB
-rw-r--r--
2015-06-10 03:00
ast_transforms.py
3.48
KB
-rw-r--r--
2015-06-10 03:00
c_ast.py
22.79
KB
-rw-r--r--
2019-11-13 14:57
c_generator.py
13.25
KB
-rw-r--r--
2015-06-10 03:00
c_lexer.py
14.11
KB
-rw-r--r--
2019-11-13 14:57
c_parser.py
60.75
KB
-rw-r--r--
2019-11-13 14:57
lextab.py
7.08
KB
-rw-r--r--
2019-11-13 14:57
plyparser.py
1.56
KB
-rw-r--r--
2015-06-10 03:00
yacctab.py
123.33
KB
-rw-r--r--
2019-11-13 14:57
Save
Rename
#----------------------------------------------------------------- # plyparser.py # # PLYParser class and other utilites for simplifying programming # parsers with PLY # # Copyright (C) 2008-2015, Eli Bendersky # License: BSD #----------------------------------------------------------------- class Coord(object): """ Coordinates of a syntactic element. Consists of: - File name - Line number - (optional) column number, for the Lexer """ __slots__ = ('file', 'line', 'column', '__weakref__') def __init__(self, file, line, column=None): self.file = file self.line = line self.column = column def __str__(self): str = "%s:%s" % (self.file, self.line) if self.column: str += ":%s" % self.column return str class ParseError(Exception): pass class PLYParser(object): def _create_opt_rule(self, rulename): """ Given a rule name, creates an optional ply.yacc rule for it. The name of the optional rule is <rulename>_opt """ optname = rulename + '_opt' def optrule(self, p): p[0] = p[1] optrule.__doc__ = '%s : empty\n| %s' % (optname, rulename) optrule.__name__ = 'p_%s' % optname setattr(self.__class__, optrule.__name__, optrule) def _coord(self, lineno, column=None): return Coord( file=self.clex.filename, line=lineno, column=column) def _parse_error(self, msg, coord): raise ParseError("%s: %s" % (coord, msg))