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

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page