Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Introduction

This is the documentation for using the lua-sys library for LuaJIT.

Installation

First, set up lde.

Note

If you are unsure, please consult lde’s documentation on adding dependencies and usage of lde.

lde add lua-sys

Example

Here’s a basic example to run some lua code.

local lua = require("lua-sys")

local state = lua.new()
print(state:eval("return 1 + 2")) -- 3

Next Steps

Look on the sidebar for guides for using different parts of lua-sys!