ACIL FM
Dark
Refresh
Current DIR:
/usr/share/doc/python3-pycparser/examples
/
usr
share
doc
python3-pycparser
examples
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
c_files
-
chmod
Open
Rename
Delete
c-to-c.py
1.43 MB
chmod
View
DL
Edit
Rename
Delete
cdecl.py
6.16 MB
chmod
View
DL
Edit
Rename
Delete
c_json.py
6.13 MB
chmod
View
DL
Edit
Rename
Delete
dump_ast.py
799 B
chmod
View
DL
Edit
Rename
Delete
explore_ast.py
5.25 MB
chmod
View
DL
Edit
Rename
Delete
func_calls.py
1.2 MB
chmod
View
DL
Edit
Rename
Delete
func_defs.py
1.19 MB
chmod
View
DL
Edit
Rename
Delete
README.rst
393 B
chmod
View
DL
Edit
Rename
Delete
rewrite_ast.py
612 B
chmod
View
DL
Edit
Rename
Delete
serialize_ast.py
907 B
chmod
View
DL
Edit
Rename
Delete
using_cpp_libc.py
746 B
chmod
View
DL
Edit
Rename
Delete
using_gcc_E_libc.py
804 B
chmod
View
DL
Edit
Rename
Delete
Edit file: /usr/share/doc/python3-pycparser/examples/using_cpp_libc.py
#----------------------------------------------------------------- # pycparser: using_cpp_libc.py # # Shows how to use the provided 'cpp' (on Windows, substitute for # the 'real' cpp if you're on Linux/Unix) and "fake" libc includes # to parse a file that includes standard C headers. # # Eli Bendersky [https://eli.thegreenplace.net/] # License: BSD #----------------------------------------------------------------- import sys from pycparser import parse_file if __name__ == "__main__": if len(sys.argv) > 1: filename = sys.argv[1] else: filename = 'examples/c_files/year.c' ast = parse_file(filename, use_cpp=True, cpp_path='cpp', cpp_args=r'-Iutils/fake_libc_include') ast.show()
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply