Home WinSpy2 & SpyDrive2 ECFTP Eon Clash's Text File Monitor Resume Creation Suite EC LCD Editor XML Browser Lite TXMLParser for Delphi Treemap ECXML Parser for Lazarus pas2lua and lua for Delphi/FPC AVR GCC Deprecated Macros XMethods WSDL Browser Graphics 32 Image Editor Demo Using TPaintBox for annimations Maze Generation and Solving TSimpleMath JD Docking Components JDErrorLog JDImageButton Tile Joiner SDL, LUA, and Freepascal Game Engine Demo Simple Bezier Curve sample in Lazarus Recurisve Shadowmapping in FPC/Lazarus ATerm - ANSI Terminal Demo Simple Side Scroller Demo Source Generic Pascal Lua Library pLua (Lua wrapper for FPC, Lazarus, and Delphi) News Forums Jeremy's Resume Contact Us Bug Tracking JumpStart Game Engine Jeremy's Blog

pas2lua and lua for Delphi/FPC

pas2lua and Lua for Delphi/FPC is a collection of source files to use Lua scripting inside of Delphi/FPC/Lazarus. Its in its infancy, but already shows alot of progress. The origional Lua wrapper files were taken from the LuaEdit project and then modified to work inside of FPC and Lazarus as well as Delphi.

pas2lua is an application for reading in existing pascal files and generating wrapper files to surface the objects and methods presented within them to Lua. This product is still under development, but due to the loads of e-mails it has generated I'm placing it up for download. IN OTHER WORDS CHECK OFTEN FOR UPDATES!

New Features in 1b:

  • The exporters have been updated, and the source is ready to work with lua5.1 (using KawaGeo's luatut libraries http://luaforge.net/projects/luatut/).
  • Multiple indexed properties implemented and supported.
  • Full support for unit methods, objects, records, types, etc... (except multi-dimensional arrays).
  • Lua 5.0 and 5.1 wrappers included in full download.
Things not yet implemented:
  • Overloaded methods are not yet handled (the processor handles them, I just haven't updated the output script to handle them).
  • Var, out, const method properties are not yet handled, supported by processor, just not output script
  • Multi-dimensoinal arrays are not supported yet
If you fix any of these issues or issues that I'm not already aware of, please let me know and I'll be happy to put your fixes into the download along with your name (if you so desire).

A special thanks goes out to William Cairns for making sure that the new Lua headers and ECTG could be compiled in Delphi.

Click here to download pas2lua exe only

Click here to download
Text Link Ads