Javascript Interpreter for C# (no dependencies)
#scripting #script-engine
|
11 年 前 | |
---|---|---|
Jint | 11 年 前 | |
Jint.Benchmark | 12 年 前 | |
Jint.Repl | 11 年 前 | |
Jint.Tests | 11 年 前 | |
Jint.Tests.Ecma | 11 年 前 | |
Jint.Tests.Scaffolding | 12 年 前 | |
.gitignore | 12 年 前 | |
CREDITS.txt | 11 年 前 | |
Jint.sln | 12 年 前 | |
LICENSE.txt | 11 年 前 | |
README.md | 11 年 前 |
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.
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.
Status:
Todo: