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?
asked May 10, 2011 at 12:09
Sezhian
3331 gold badge10 silver badges24 bronze badges
-
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
1 Answer 1
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.
answered May 10, 2011 at 15:34
riza
17.4k7 gold badges31 silver badges29 bronze badges
Sign up to request clarification or add additional context in comments.
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.
default