Iridio is a scripting language, nothing more, nothing less :)
I invented it because I needed more flexibility for my Deployer. I needed some scripting language easy enough and flexible enough.
If you need to execute your own scripts with your own built-in functions, Iridio might be a good choice.
-
Add a reference in you project to the Nuget Iridio.Runtime
-
Create an instance of
IridioShell
and execute some script with itTake this example:
var script = @"Main { a = 3 * 5; }"; var shell = new IridioShell(); ExecutionSummary execution = await shell.Run(SourceCode.FromString(script)); Console.WriteLine(result.Value.Variables["a"]);
It will execute the script an returns a list of the variables in the script with their last value. Running this example will return the value 15 into a
As you see, it's extremely easy to use.
If you want to get started, please, check the Wiki :)
In some way or another, you made this possible. Thank you all!