Skip to main content

с++ to python transpiler

Project description

seapeapea

C++ to python transpiler

usage: seapeapea [-h] [-I INCLUDE] [-o OUTPUT] [-p PREPROCESSED] [-m MAP]
                 [--no-imports] [--qt {pyside6,pyqt6,pyside2,pyqt5}] [--time]
                 src [src ...]

transpiles c++ into python

positional arguments:
  src                   cpp files

options:
  -h, --help            show this help message and exit
  -I INCLUDE, --include INCLUDE
                        includepath
  -o OUTPUT, --output OUTPUT
                        output
  -p PREPROCESSED, --preprocessed PREPROCESSED
                        path to save preprocessed
  -m MAP, --map MAP     save map for side by side
  --no-imports          do not add imports
  --qt {pyside6,pyqt6,pyside2,pyqt5}
                        python qt library
  --time                print time stat

Install

pip install seapeapea

About

There are two ways to write c++ transpiler:

  1. Hard way: write c++ compiler and preprocessor that can expand all macros and process all templates, it will produce semireadable code that is almost guaranteed to be correct.

  2. Easy way: write processor that parses code and makes reasonable assumptions about missing information and produces readable code (as if it way written by human) that is probably correct.

Seapeapea goes easy way, it produces first iteration of what will become working code after you repair it.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

seapeapea-0.0.2.tar.gz (17.3 kB view hashes)

Uploaded Source

Built Distribution

seapeapea-0.0.2-py3-none-any.whl (16.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page