Script.NET
Script .NET is a simple scripting engine which can be embedded into .NET framework applications to perform custom functionality in run-time. It works like VBA in Microsoft Office Applications. The difference is that Script .NET may use custom object model, different for each application. Script .NET is written in C#.Script.NET may be tested on-line: Test Now
The key principles of Script .NET are:
- Be simple
- Be efficient
- Be intuitive
The idea of Script .NET was born 17 September 2007. Then:
- First alpha was released 03 October 2007.
- 04 October – CodeProject Article submitted.
- 21 October – WikiPedia article.
- 19-20 Script.NET has been announced on Microsoft community forums and Google groups.
- 22 October, CodePlex project had been launched.
In current version I am using C# Compiler Tools from http://cis.paisley.ac.uk/crow-ci0/ to produce Lexical analyzer and language parser.
Getting Started
All you need to start working with Script .NET is to add reference to ScriptDotNet.dll,
Example (in C# code):
using ScriptDotNet;
Script s = Script.Compile(
"MessageBox.Show('Hello .NET! This is Script .NET');");
s.AddType("MessageBox", typeof(MessageBox));
s.Execute();
using ScriptDotNet;
Script s = Script.Compile(
"MessageBox.Show('Hello .NET! This is Script .NET');");
s.AddType("MessageBox", typeof(MessageBox));
s.Execute();