Javascript Interpreter for C# (no dependencies)
#scripting #script-engine

Frederic Torres d1520dd3e7 Sebastien remarks 2 11 gadi atpakaļ
Jint d1520dd3e7 Sebastien remarks 2 11 gadi atpakaļ
Jint.Benchmark ae2c00b4e0 Implementing Arguments object 12 gadi atpakaļ
Jint.Repl 1227c2992f Implementing JsValue 11 gadi atpakaļ
Jint.Tests 24a479c429 Removing TypeConverter JsValue direct conversions 11 gadi atpakaļ
Jint.Tests.Ecma 114bb43d93 Skip unit tests because of double precision issue 11 gadi atpakaļ
Jint.Tests.Scaffolding b6d60818da Adding Ecma 262 tests 12 gadi atpakaļ
.gitignore 2dab8046d6 Scaffolding project vs. hand written classes 12 gadi atpakaļ
CREDITS.txt f53137698a Adding license information 11 gadi atpakaļ
Jint.sln 079c6a1764 Fixing more unit tests 12 gadi atpakaļ
LICENSE.txt f53137698a Adding license information 11 gadi atpakaļ
README.md 03a4224988 Update README.md 11 gadi atpakaļ

README.md

Jint

Jint is a Javascript interpreter for .NET. Jint doesn't compile Javascript to .NET bytecode and in this sense might be best suited for projects requiring to run relatively small scripts faster, or which need to run on different platforms.

Objectives

Example

script= @"
  function hello() { 
    log("Hello World");
  };
";

var engine = new Engine(cfg => cfg
    .WithDelegate("log", new Action<object>(Console.WriteLine))
);

engine.Execute("hello()");

You can also check the actual implemented test suite for more samples.

Roadmap

Status:

Todo:

  • Improve C# interoperability
  • Finish up ECMAScript test suite