[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Inegrate LUA interpreter in other application
- From: Rob Kendrick <rjek@...>
- Date: Thu, 20 May 2010 11:17:39 +0100
On Thu, 20 May 2010 12:05:55 +0200
Satz Klauer <email@example.com> wrote:
> So my question: how can this be implemented? Is there already an
> interface in LUA that gives this possibility? Or do I have to modify
> the soources of the interpreter?
This is precisely what Lua (note, it's not an acronym :) already does.
The command line "lua" interpreter is just a client of liblua, like any
application that wants to embed it might be.
You'll want to read the sections of the manual on the C API, and
possibly Programming in Lua, which includes working examples of how
to do it.
 First edition is readable for free on the website;