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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file seapeapea-0.0.2.tar.gz.

File metadata

  • Download URL: seapeapea-0.0.2.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for seapeapea-0.0.2.tar.gz
Algorithm Hash digest
SHA256 43bc6b46a95164f996a51b4c1f4a0bc982dd8d4fcc6eb2f92f606545352e63b9
MD5 eaa83ee72db2e0ae7f657dc8d346c527
BLAKE2b-256 970f6f6199a5ddd5ba2742294f5c835fa17bc4e71fbf6b9fc46de9f856fd2820

See more details on using hashes here.

File details

Details for the file seapeapea-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: seapeapea-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 16.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for seapeapea-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 af8104d3ae13872f45aac72b08523fd1c55bb93719de5bb478e384fc186753d0
MD5 69a557b26b98d40dc33d49f060f2f6a3
BLAKE2b-256 4ffd917a303364e2f7fc901224d9eedab63531aa6c405e033df818eb687aad5c

See more details on using hashes here.

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