Skip to content
This repository

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

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 Src
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 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.