X7ROOT File Manager
Current Path:
/usr/lib/python3.6/site-packages/pycparser
usr
/
lib
/
python3.6
/
site-packages
/
pycparser
/
ðŸ“
..
📄
__init__.py
(2.83 KB)
ðŸ“
__pycache__
📄
_ast_gen.py
(8.46 KB)
📄
_build_tables.py
(851 B)
📄
_c_ast.cfg
(4.08 KB)
📄
ast_transforms.py
(3.48 KB)
📄
c_ast.py
(22.79 KB)
📄
c_generator.py
(13.25 KB)
📄
c_lexer.py
(14.11 KB)
📄
c_parser.py
(60.75 KB)
📄
lextab.py
(7.08 KB)
📄
plyparser.py
(1.56 KB)
📄
yacctab.py
(123.33 KB)
Editing: _build_tables.py
#----------------------------------------------------------------- # pycparser: _build_tables.py # # A dummy for generating the lexing/parsing tables and and # compiling them into .pyc for faster execution in optimized mode. # Also generates AST code from the configuration file. # Should be called from the pycparser directory. # # Copyright (C) 2008-2015, Eli Bendersky # License: BSD #----------------------------------------------------------------- # Generate c_ast.py from _ast_gen import ASTCodeGenerator ast_gen = ASTCodeGenerator('_c_ast.cfg') ast_gen.generate(open('c_ast.py', 'w')) import sys sys.path[0:0] = ['.', '..'] from pycparser import c_parser # Generates the tables # c_parser.CParser( lex_optimize=True, yacc_debug=False, yacc_optimize=True) # Load to compile into .pyc # import lextab import yacctab import c_ast
Upload File
Create Folder