Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Dart Programming Language Interpreter and Compiler (to C#). It can access .NET libraries
C#
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Src
.gitignore
LICENSE
README.md

README.md

DartSharp

Dart-like programming language, implemented as interpreter using C#, with access .NET types and objects. After completing the interpreter, maybe I could compile to C# code (or IL?).

Work in Progress.

Examples

The interpreter is under development. You can use if, while, declare functions and variables. You can start the interactive interpreter with command

dartsharp

It is the .exe produced by the compilation of DartSharp.Console project.

Hello world

print("Hello, world");

Fibonacci example:

int fib(int  n) {
  if (n < 2) return n;
  return fib(n - 1) + fib(n - 2);
}

main() {
  print(fib(20));
}

Access to native methods

var a = "foo";
print(a.Length);
3
print(a.Substring(1));
oo
print(a.ToUpper());
FOO
Something went wrong with that request. Please try again.