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