cs2fs icon indicating copy to clipboard operation
cs2fs copied to clipboard

C#->F# transpiler.

Cs2Fs

This project is in experimental stage.

This project aim to be tool that helps with rewrite C# code to F#.

Requirements

DotNet Core 2.0

Usage

From project main directory:

dotnet run -p cs2fs input.cs [output.fs]

Known limitation

What is not supported, and it's not planned at this stage:

  • early returns, break, continue.
  • non-explicit interface implementation.
  • correct return value of constructors.

What cannot be supported due to limitations of F#:

  • protected keyword.

TODO

  • [ ] comments

  • [ ] explicit interfaces implementation

  • [ ] use Argu

  • [ ] better error handling

  • [ ] tests