0

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
2
  • 10
    The conversion tool is you! Roll up your sleeves and get cracking. Commented May 10, 2011 at 12:15
  • Possible duplicate of Convert Python program to C/C++ code? Commented Nov 21, 2019 at 13:35

1 Answer 1

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
Sign up to request clarification or add additional context in comments.

4 Comments

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.
@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++!
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
@zeekay: annotations are explicit typing, I meant something more type-inference-ey.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.