The ucode-mod-lua library provides an ucode-to-Lua bridge and a set of
functions to instantiate Lua VMs, invoke Lua functions as well as
exchanging data structures between ucode and Lua.
Example usage:
#!/usr/bin/ucode
'use strict';
const lua = require("lua");
let vm = lua.create();
vm.set({
hello: function(...args) {
print(`A ucode "Hello world" function called from Lua! Got arguments: ${args}\n`);
},