/Laylua

Lua wrapper and sandbox for .NET.

Primary LanguageC#GNU Lesser General Public License v3.0LGPL-3.0

Laylua

Laylua allows you to easily embed Lua 5.4 in your .NET application.

Highlights:

  • plug and play
  • proper handling of exceptions and Lua errors
  • built-in memory allocation and instruction count limiting
  • control over what gets exposed to Lua code
  • optimized, zero-alloc, poolable Lua entities, no value type boxing

Examples

using (var lua = new Lua())
{
    lua.SetGlobal("text", "Hello, World!");

    lua.OpenLibrary(LuaLibraries.Standard.Base);

    lua.Execute("print(text)");
}

Documentation

Check out the wiki.