Skip to content

andry-tino/Rosetta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rosetta

Important At the moment the project is dead. Should you be interested in the code, please fork this repository.

Build Status

Toolset for migrating your codebase from C# to TypeScript.

Overview

Status: Work in progress

Rosetta is a project for converting C# code into TypeScript. I do this by means of project Roslyn. Rosetta is also a toolset for providing help while converting your codebase to TypeScript. The overall solution includes the following tools:

  • Rosetta The transpiler to convert ScriptSharp C# code into TypeScript.
  • Rosetta ScriptSharp Definition Generator A tool to generate TypeScript definition files out of your ScriptSharp C# codebase.

How it works

Rosetta is written in C# and performs syntax analysis of C# code in order to convert it into TypeScript. There are many applications, however Rosetta is developed with those specific ones as targets:

  • Providing a tool for converting c#-to-javascript (like ScriptSharp) codebases into TypeScript.
  • Providing a tool for converting C# codebases into TypeScript.
  • Providing tools for migrating C#-based codebases into TypeScript.

The translation works by traversing the C# AST generated via Roslyn and generating output according to syntax structures encountered during the tree walking.

Requirements

Rosetta can be executed on the following platforms:

  • Windows

Current supported development environments are:

  • Visual Studio 2015

Rosetta depends on:

  • .NET Framework 4.0+.
  • Project Roslyn.

Rosetta ScriptSharp Definition Generator depends on:

  • .NET Framework 4.0+.
  • Project Roslyn (definition generation via file).
  • Project Mono.Cecil (definition generation via assembly).

Releases

No releases published

Packages

No packages published

Languages