HippoScript is a script engine library for .NET(开源项目)
Description
- HippoScript is a script engine library based on the C#\VB.net\JScript.net language. Using HippoScript , developers can provide fully scriptable applications, execute .NET code, or create external configuration logic, using the most used script language.HippoScript is used in another open source project .
Featured
- 表达式计算。
- 动态字段声明,动态对象植入。
- Using语句,添加程序集引用。
- 脚本批量注入分析。
- 动、静态计算。
- 计算回写。
- 引擎克隆。
Example
Engine engine = new CSharpEngine();
showResult("Engine可实现Evaluator的简单运算:");
showResult("1 + 2.0 =" + engine.Eval("1 +2.0").ToString());
showResult("Engine示例——载入对象:engine.AddObject(\"data\", 89.9)");
engine.AddObject("data", 89.9);
engine.AddFieldDeclar("yahoo", "System.String");
engine.AddFieldDeclar("year", "System.Int32");
showResult("data="+engine.Eval("data").ToString());
Requirements
- NET Framework 2.0
showResult("Engine可实现Evaluator的简单运算:");
showResult("1 + 2.0 =" + engine.Eval("1 +2.0").ToString());
showResult("Engine示例——载入对象:engine.AddObject(\"data\", 89.9)");
engine.AddObject("data", 89.9);
engine.AddFieldDeclar("yahoo", "System.String");
engine.AddFieldDeclar("year", "System.Int32");
showResult("data="+engine.Eval("data").ToString());
主页和下载
相关文档
- 河马脚本引擎的由来和使用示例(待续)