I need to convert python script How to parse the Manifest.mbdb file in an iOS 4.0 iTunes Backup to c++ code. Is there any conversion tool for that? Can anyone provide C++ code for Manifest.mbdb parser?
-
10The conversion tool is you! Roll up your sleeves and get cracking.wilx– wilx2011-05-10 12:15:20 +00:00Commented May 10, 2011 at 12:15
-
Possible duplicate of Convert Python program to C/C++ code?jww– jww2019-11-21 13:35:10 +00:00Commented Nov 21, 2019 at 13:35
Add a comment
|
1 Answer
Try ShedSkin
From the website:
Shed Skin is an experimental compiler, that can translate pure, but implicitly statically typed Python programs into optimized C++. It can generate stand-alone programs or extension modules that can be imported and used in larger Python programs.
4 Comments
Zach Kelling
Shed Skin could help, although you'll probably have to rewrite the Python version to accommodate it's restrictions (it can't just compile any Python code). I've had good luck with it, it's a great project.
Steve Jessop
@zeekay: can it do just the "implicitly statically typed" part? Enforcing inferred type-safety on sections of Python is probably useful even if you're not planning to convert to C++!
Zach Kelling
No, it is a Python to C++ compiler. Python 3 introduced function annotations which would probably be good for that: python.org/dev/peps/pep-3107
Steve Jessop
@zeekay: annotations are explicit typing, I meant something more type-inference-ey.