Lua 的 .NET 实现:NeoLua
来源:互联网 发布:手机黑客攻击软件 编辑:程序博客网 时间:2024/05/29 16:59
NeoLua是Lua 语言的一个.Net实现。可以在 .NET 的应用中调用 Lua 语言或者反过来(当前支持的 Lua 版本是 5.2),其目的是遵循 C-Lua 实现并且合并完整的 .NET 框架支持。你可以很方便在 Lua 程序中调用 .NET 的 functions/classes/interfaces/events ,同时也可以轻松在 .NET 应用中调用 Lua 的变量和函数。
NeoLua 使用 C# 开发并使用 Dynamic Language Runtime. 目前 NeoLua 依赖于 .NET Framework 4,同时也支持当前版本的 Mono 框架。
What NeoLua is useful for
•Outsource the logic of your application into scripts
•Structuring of logic
•Build a dynamic configuration system, with functions and variables
•As a formula parser
•…
Advantages of NeoLua
•Dynamic access between Lua script and and the host application/.NET framework and vice-versa.
•NeoLua is based on the DLR. So you get compiled code that is collectable and well-optimized.
•It is compatible with the .NET world (e.g. C#, VB.NET, IronPython, …).
•Full and easy access to the .NET framework or your own libraries (with no stub code).
•A .NET Framework Garbage Collector that is well-tested and very fast.
•Pure IL (x86,x64 support)
示例代码:
using Neo.IronLua;
namespace Test
{
public static class Program
{
public static void Main(string[] args)
{
// Create the Lua script engine
using (Lua l = new Lua())
{
// create a Lua script environment (global)
var g = l.CreateEnvironment();
// run a chunk, first the code, than the name of the code
g.DoChunk(“print(‘Hello World!’);”, “test.lua”);
}
}
}
}
Lua 的 .NET 实现:NeoLua
===========================
http://baike.baidu.com/link?url=0Q6ZRtLqD7-sGqxoAnfEDx2EYJCluU54T1lgSswesXI2pSLBSVuaAe22p5VL61R_pzsCBDdieED-t4HJD6p0kK
http://www.open-open.com/lib/view/open1408005253192.html
- Lua 的 .NET 实现:NeoLua
- lua实现的有限状态机
- lua实现的状态机
- lua protobuffer的实现
- lua实现的队列
- lua的观察者实现
- lua的packages实现
- lua类的实现
- Lua类的实现
- Lua类的实现
- thrift的lua实现
- thrift的lua实现
- lua学习:lua中“类”的实现
- cocos2dx + lua 中实现 lua的MVC
- lua学习:lua中“类”的实现
- lua学习:lua中“类”的实现
- lua学习:lua中“类”的实现
- A Star 的Lua实现
- Android Studio 导入 opencv
- memset赋值
- LeetCode:Remove Nth Node From End of List
- android EventBus的使用
- LDAP中的objectClass与Attribute
- Lua 的 .NET 实现:NeoLua
- 解析Javascript事件冒泡机制
- Hadoop Shell命令
- 《数据结构与算法分析 C语言描述》读书笔记——分治算法
- Spring-ldap 操作LDAP
- Codeforces 85D Sum of Medians
- Docker 系列之 Linux 下安装篇
- Bitmap、CBitmap、HBITMAP以及BITMAP的相互转换
- android中的文件操作详解以及内部存储和外部存储