ivanbiljan / luadotnet

A primitive, managed wrapper around Lua's C API. Završni rad

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

luadotnet

Travis LICENSE

luadotnet is a .NET standard library that integrates the Lua language into the .NET CLR. It provides an easy and effective way of embedding Lua scripts into .NET applications. It is built upon the .NET Standard API and targets Windows and Linux operating systems.

Advantages

  • Fully compatible with Lua 5.3.5
  • Lua -> .NET access and vice-versa
  • Managed control over Lua objects (functions, tables and coroutines)
  • Supports extension method invocation using the colon (:) syntax
  • Lua-side event handling
  • Dynamic scripting support

Drawbacks

  • It is not 100% accurate when it comes to resolving complex overloads
  • It does not support generic type construction

Example

The following example demonstrates how to use luadotnet to output Hello, World! to a .NET console application

using System;
using LuaDotNet;

namespace LuaDotNet.HelloWorld {
    class Program {
        static void Main(string[] args) {
            using (var lua = new Lua()) {
                lua.DoString("print('Hello, World!')");
            }
        }
    }

Take a look at the unit tests for a more profound insight to the API behind the project.

To do list

  • Support generic type instantiation

About

A primitive, managed wrapper around Lua's C API. Završni rad

License:MIT License


Languages

Language:C# 98.9%Language:Lua 1.1%