forked from andreikop/cpp2python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
20 lines (13 loc) · 760 Bytes
/
Copy pathREADME
File metadata and controls
20 lines (13 loc) · 760 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Script helps to convert C/C++ sources to C/C++ -like Python sources.
It does few edit operations, for convert C/C++ to Python.
After it you must edit code manually, but, probably you will spend less time for it.
Utility Will make mistaces and Will not generate ready for use code, so, it won't help you,
if you don't know either C/C++ and Python
For better result, it is recomented to format your code to ANSI style before do conversion.
NOTE: NO ANY BACKUPS CREATED. YOU MAY PERMANENTLY CORRUPT YOR SOURCES!!!
Usage:
cpptopython.py DIR|FILE
cpptopython.py -v|--version|-h|--help
When directory given - tries to find source files by C/C++ suffixes, when file name given - processes given file
Author: Andrei Kopats <[email protected]>
License: GPL