Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/linksplatform/csharptocpptranslator

A specific translator for LinksPlatform's libraries.
https://github.com/linksplatform/csharptocpptranslator

Last synced: about 2 months ago
JSON representation

A specific translator for LinksPlatform's libraries.

Awesome Lists containing this project

README

        

[![Actions Status](https://github.com/linksplatform/csharptocpptranslator/workflows/CI/badge.svg)](https://github.com/linksplatform/csharptocpptranslator/actions?workflow=CI)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/7a113c49b6124cbb8464b64ae2595878)](https://www.codacy.com/manual/drakonard/CSharpToCppTranslator?utm_source=github.com&utm_medium=referral&utm_content=linksplatform/CSharpToCppTranslator&utm_campaign=Badge_Grade)
[![CodeFactor](https://www.codefactor.io/repository/github/linksplatform/csharptocpptranslator/badge)](https://www.codefactor.io/repository/github/linksplatform/csharptocpptranslator)

# CSharpToCppTranslator
A specific translator for LinksPlatform's libraries.

## Example
`translate.sh` script is useful when Translator fails to translate the whole directory in one go.

Translate `.cs` to `.h`:
```sh
export BASE_PATH=/home/konard/Archive/Code/Links/Numbers/csharp/Platform.Numbers; find "$BASE_PATH" -type f | grep -v .csproj | sed -e 's/\.cs$//' | xargs -n1 ./translate.sh "h" "s|csharp|cpp|"
```

Translate `.cs` to `.cpp`:
```sh
export BASE_PATH=/home/konard/Archive/Code/Links/Numbers/csharp/Platform.Numbers.Tests; find "$BASE_PATH" -type f | grep -v .csproj | sed -e 's/\.cs$//' | xargs -n1 ./translate.sh "cpp" "s|csharp|cpp|"
```
or
```sh
export BASE_PATH=/home/konard/Archive/Code/Links/Numbers/csharp/Platform.Numbers.Benchmarks; find "$BASE_PATH" -type f | grep -v .csproj | sed -e 's/\.cs$//' | xargs -n1 ./translate.sh "cpp" "s|csharp|cpp|"
```