cpp2python
cpp2python copied to clipboard
C++ to Python converter
.cpp ``` int data[256]; int hash[32]; int buf[32+16]; int * midstate; int * block_tail; typedef struct { int data[64]; int datalen; int bitlen; int state[8]; } SHA256_CTX; SHA256_CTX ctx; ```...
Hi, I tried converting http://home.hccnet.nl/h.g.muller/umax4_8.c This produces code that is far from runable under python :-)
If "from __future__ import print_function" is added to cpp2python.py it operates with Python2 and Python3
You say in README.md to use GPL. Please provide a valid license text. https://www.gnu.org/licenses/gpl-3.0.txt
For example this class constructor ``` AutomaticTest::AutomaticTest() : m_test(0), m_test_two(false) { // constructor } ``` gets converted to ``` AutomaticTest.AutomaticTest() : m_test(0), m_test_two(False) # constructor ``` My expected result was...