Skip to main content

Csharp to Cpp code translator

Project description

CSharpToCpp

Simple C# to C++ translator written in Python

Get Started

Install

pip install --upgrade cs2cpp

Usage

from cs2cpp import CSharpToCpp

cscpp = CSharpToCpp()
sourceCode = """using System;
// This is hello world program.
class Program
{
    public static void Main(string[] args)
    {
        var myFirstString = "ban";
        char*[] args = {"1", "2"};
        Console.WriteLine("Hello, world!");
    }
}"""
print(cscpp.translate(sourceCode)) # translate code from C# to C++!

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

cs2cpp-0.2.0.tar.gz (15.0 kB view details)

Uploaded Source

File details

Details for the file cs2cpp-0.2.0.tar.gz.

File metadata

  • Download URL: cs2cpp-0.2.0.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for cs2cpp-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a6cc716a6654d97b92310160420b8f0540d9d6173a77ac0436bf1a965179b072
MD5 8c7313271be7f45977c4f114dd6cc371
BLAKE2b-256 98e474a6b672ec5dda9dbb11ca37c3feff8ea72dfda6900e46422585ccd85bf9

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