https://github.com/quahu/laylua
Lua wrapper and sandbox for .NET.
https://github.com/quahu/laylua
csharp dotnet dotnet-core embedded-scripting high-performance lua lua-bindings lua-interpreter lua-library lua-sandbox lua-wrapper sandbox scripting zero-alloc
Last synced: 2 months ago
JSON representation
Lua wrapper and sandbox for .NET.
- Host: GitHub
- URL: https://github.com/quahu/laylua
- Owner: Quahu
- License: lgpl-3.0
- Created: 2021-12-27T11:29:32.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-02-08T20:45:22.000Z (3 months ago)
- Last Synced: 2025-02-27T15:31:24.031Z (3 months ago)
- Topics: csharp, dotnet, dotnet-core, embedded-scripting, high-performance, lua, lua-bindings, lua-interpreter, lua-library, lua-sandbox, lua-wrapper, sandbox, scripting, zero-alloc
- Language: C#
- Homepage:
- Size: 1.4 MB
- Stars: 25
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Laylua
Laylua allows you to easily embed [Lua 5.4](https://www.lua.org/manual/5.4/manual.html) 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
```cs
using (var lua = new Lua())
{
lua.SetGlobal("text", "Hello, World!");lua.OpenLibrary(LuaLibraries.Standard.Base);
lua.Execute("print(text)");
}
```## Documentation
[Check out the wiki](https://github.com/Quahu/Laylua/wiki).