Script.NET
Script.NET is a 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.
Script.NET Video Tutorials.
Latest news, release announcements and samples may be found on Script.NET Blog.
The key principles of Script .NET are:
- Be simple
- Be efficient
- Be intuitive
This page is no longer primary source of information about Script.NET project
Please use following link.
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.
- 17 January 2008, DLR implementation of the language started.
- 07 February 2008, The First working prototype of DLR MyL released.
- 22 February 2008, Script.NET grammar was implemented with Irony.
- 27 March 2008, Script.NET run-time was ported on Irony platform.
- 14 April 2008, The work on this help file started.
Previous version of Script.NET parser was based on C# Compiler Tools. The latest version of the language and all future releases will employ Irony Compiler Tools.
Irony has important benefits such as:
- It utilizes the full potential of c# 2.0 and .NET Framework.
- Unlike most existing yacc/lex-style solutions Irony does not employ any scanner or parser code generation from grammar specifications written in a specialized meta-language. In Irony the target language grammar is coded directly in c# using operator overloading to express grammar constructs. Irony's scanner and parser modules use the grammar encoded as c# class to control the parsing process.
- Irony is simple and powerful solution which fits Script.NET principles.
Getting Started
All you need to start working with Script.NET is to add reference to IronyScriptDotNet.dll and Irony.dll,
Example IronyScript.NET (in C# code):
The best way to start using Script.NET is to watch following screencast.
using ScriptNET;
...
RuntimeHost.Initialize();
...
Script.RunCode(@"About();");
The best way to start using Script.NET is to watch following screencast.
In previous version of Script.NET - add reference to ScriptDotNet.dll,
Note: this code is obsole and no longer supported
Example Script.NET (in C# code):
using ScriptDotNet;
Script s = Script.Compile(
"MessageBox.Show('Hello .NET! This is Script .NET');");
s.AddType("MessageBox", typeof(MessageBox));
s.Execute();