我需要一种可由 .net 应用程序托管的脚本语言,具有以下功能
- 我需要能够公开调用主机的“命令”。
- 我需要简单易读的语法。
- 它必须能够被非程序员轻松掌握。
一个例子如下:
主机应用程序:
ScriptHost.AddCommandBinding("MyCommand", delegateToMyHandler, parameterDefinitionsStruct);
脚本
returnval = MyCommand(param1, param2);
有人知道这样的事情吗?
- I need to be able to expose "commands" that make calls to the host.
- I need to have simple easy to read syntax.
- It needs to be easy to pick up by non-programmers.
An example would be as follows:
Host Application:
ScriptHost.AddCommandBinding("MyCommand", delegateToMyHandler, parameterDefinitionsStruct);
Script
returnval = MyCommand(param1, param2);
anybody know of anything like this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
IronPython 非常适合此目的。
IronPython in Action 的书籍描述中说“您将了解如何将 IronPython 嵌入为C# 和 VB.NET 程序中的现成脚本语言”。
IronPython would be perfect for this.
The book description for IronPython in Action says "You'll learn how IronPython can be embedded as a ready-made scripting language into C# and VB.NET programs".
如果您的任何非程序员是系统管理员,我会考虑使用 PowerShell。 它被用作 Exchange Server 和 SQL Server 的内置脚本语言,并随 Windows 7 和 Windows Server 2008 R2 一起提供。
I'd consider using PowerShell, if any of your non-programmers are system administrators. It's being used as the built-in scripting language for Exchange Server and SQL Server, and ships with Windows 7 and Windows Server 2008 R2.