Delphi Wrapper for Lua

Lua is a the perfect language for extending Delphi applications by providing scripting capabilities. It is embeddable, compact and easily extended. Unlike other scripting languages, it provides control over access to operating system calls and the file system. Understanding the workings of the Lua API and putting it to use in a Delphi application does require some work. Our TLuaWrap class does most of this work. TLuaWrap has three properties

Using TLuaWrap typically involves five steps

Usage: Create an instance of TLuaWrap - this is a wrapper around one instance of the Lua interpreter. Use TLuaWrap methods to load Lua scripts, select an entry function to call, pass parameters and retrieve results. The Lua documentation has extensive information on creating complex Lua scripts.

Run the test application LuaTest.EXE. Note that you must have Lua50.dll in the same directory as the application executable. The source code for TLuaWrap is available at just $9.99.
Download
Jump To...

Colophon