Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

rmcn/PythonEmbrace

Open more actions menu

Repository files navigation

PythonEmbrace

A tool to help with the manual conversion of Python code to C family languages (C#, Java, Javascript, C++).

It aims to take some of the grunt work out of the manual conversion. Run it on a valid python input file to produce an output file with:

  • Braces {} added, based on Python's indentation rules
  • Semicolons ; added to the end of statements
  • Colons : removed from the end of lines that begin blocks
  • Brackets added to unbracked if, elif, for, while, and except statements
  • except changed into catch
  • elif changed into else if

Usage: PythonEmbrace.exe file.py

Creates a file.cs output file in the same directory

About

Tool to help convert Python to C# (or other C family languages, e.g. Java, Javascript, C++)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.