All Projects → Templarian → Script

Templarian / Script

Licence: other
Simple scripting engine for C#.

Programming Languages

C#
18002 projects

Script

A simple portable scripting engine for C#. Think Python syntax with JavaScript objects and strict typing.

Documentation

Please view the wiki for a comprehensive overview and code samples.

Features

  • Written from the ground up for readability.
  • Intuitive C# syntax on intepreter and script side.
  • Comprehensive syntax errors and script errors.
  • Strict typing allows method overloading based on datatype.
  • Simple... int, double, string, bool, and regex data types.
  • Implicit conversions for all types ("foo1" = "foo" + 1)

Hello World

static void Main()
{
    var engine = new ScriptEngine();
    engine.AddAction<string>("log", Log);
    engine.Execute("log('Hello World!')");
    Console.In.Read();
}
static void Log(string message)
{
    Console.WriteLine(message);
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].