PHP 8.2.30
Preview: _build_tables.py Size: 1.01 KB
/proc/self/root/opt/cloudlinux/venv/lib64/python3.11/site-packages/pycparser/_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.
#
# Eli Bendersky [https://eli.thegreenplace.net/]
# License: BSD
#-----------------------------------------------------------------

# Insert '.' and '..' as first entries to the search path for modules.
# Restricted environments like embeddable python do not include the
# current working directory on startup.
import sys
sys.path[0:0] = ['.', '..']

# Generate c_ast.py
from _ast_gen import ASTCodeGenerator
ast_gen = ASTCodeGenerator('_c_ast.cfg')
ast_gen.generate(open('c_ast.py', 'w'))

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

Directory Contents

Dirs: 2 × Files: 12

Name Size Perms Modified Actions
ply DIR
- drwxr-xr-x 2026-02-06 08:01:08
Edit Download
- drwxr-xr-x 2026-02-06 08:01:08
Edit Download
5.56 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
30.71 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
17.36 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
16.76 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
71.95 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
8.30 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
4.76 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
200.83 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
10.31 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
1.01 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
4.16 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
2.75 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).