- 授权协议: BSD
- 开发语言: C# Lua
- 操作系统: 跨平台
- 软件首页: http://www.moonsharp.org/
- 软件文档: http://www.moonsharp.org/getting_started.html
软件介绍
Moon# 是一个完全用 C# 实现的 Lua 解释器,可用于 .NET、Mono、Xamarin 和 Unity3D 平台。
示例代码:
double MoonSharpFactorial()
{
string script = @"
-- defines a factorial function
function fact (n)
if (n == 0) then
return 1
else
return n*fact(n - 1)
end
end
return fact(5)";
DynValue res = Script.RunString(script);
return res.Number;
}
