Comment on Where can I find tutorials on embedding Lua scripting into applications

Limeey@lemmy.world ⁨11⁩ ⁨months⁩ ago

What do you mean “embedding lua into applications”?

I assume you mean you want an application extensible by user lua script?

You build an API that calls the lua interpreter and passes the script, and reads the output; same as you would for any other scripting language. You define what the inputs should be, create the interface for executing the user defined script through shell commands, and then retrieve the output.

For python you’re going to probably use this:

docs.python.org/3/library/subprocess.html#subproc…

For C# you’re going to use Process

stackoverflow.com/…/process-start-how-to-get-the-…

The complexities arise in your implementation and there’s no single guide.

source
Sort:hotnewtop