Free Lua Scripting Interpreter Library For Delphi XE7 Firemonkey On Android And IOS

Delphi XE7 Firemonkey Lua Scripting Library For Android And IOSDeveloper Dennis D. Spreen has released an upgraded wrapper component for Lua 5.3 that allows you to run Lua scripts in Delphi XE7 Firemonkey. The wrapper which is called VerySimple.Lua uses the Lua static and dynamic libraries to enable the component on Android, IOS, Windows, and OSX. Between this component and paxCompiler you can now interpret Lua, Object Pascal, Basic, and Javascript on all four Firemonkey platforms at runtime. Blizzard uses Lua as the scripting language in World of Warcraft as one example of where people use Lua. There is some sample code for using the wrapper on the blog post itself. There is also more sample code for using VerySimple.Lua and interpreting Lua scripts in both FMX and VCL on Google Code and in the download. This Lua scripting interpreter component should also work with Appmethod. It is free and full source code is available. A dynamic library is used on Android, OSX, and Windows. A static library is used on IOS. I looked through the code and here is a snippet for how it loads the dynamic Lua library:

Head over and download the full source code for the Lua scripting interpreter for Delphi XE7 Firemonkey on Android, IOS, OSX, and Windows.

Have Delphi Firemonkey questions? Ask and get answers on StackOverflow.

3 Responses to Free Lua Scripting Interpreter Library For Delphi XE7 Firemonkey On Android And IOS

  1. Charles Stack says:

    Here’s a question…does Apple allow scripting languages in iOS apps in the store? They didn’t in the past.

    If they do, that opens up a whole new class of application for development.

    On the Windows and OSX side, it adds to our ability to extend our applications.

    Very well done!

    • Admin says:

      Right, in the past they did not. You can use it in IOS Enterprise applications (since those don’t go through the App Store). Also there are IDEs with scripting languages in the App Store so they may have either loosened their restrictions or it’s on a case by case basis.

  2. Dennis says:

    It wasn’t allowed in the very past. but apple relaxed the sdk terms in late 2010 to allow some scripting (with lua), “Application may use embedded interpreted code in a limited way if such use is solely for providing minor features or functionality that are consistent with the intended and advertised purpose of the Application”. For example there is Corona which uses Lua for scripting.

Leave a Reply

Show Buttons
Hide Buttons
Read previous post:
libSOX Audio Conversion Library For Delphi XE7 Firemonkey On IOS, Windows, and OSX

The open source Sound eXchange (SoX) project is a Swiss Army knife of sound processing programs according to it's homepage....