Results 1 to 3 of 3

Thread: Pas2Lua Beta 1 Released

  1. #1

    Pas2Lua Beta 1 Released

    I've finally got Pas2Lua to a jello like stage. I managed to successfully import the unDelphiX objects along with many of the Delphi VCL and RTL libraries. I call it Jello because a few things are missing; Array properties are not supported, Multiple levels of objects are not supported (IE: MyImage.Canvas.Draw() will blow up), Overloaded methods are not fully supported (they will build down, but then you have to either merge them or give them unique names), Inheritance isn't handled automatically (you have to cut and paste the methods from the parent classes, properties are supported via RTTI).

    The things that are supported:
    • Reads in standard pascal source files and scans for objects
      Creates wrappers around the objects that it finds
      Creates consts for class name to lua class name association (so you can change from TPictureCollectionItem to TImage if you so wish)
      Handles .Free or uses Garbage Collection if you don't free objects
      Wraps all Published properties, doesn't handle public properties (yet)


    You can download it from: http://www.eonclash.com/pas2lua/pas2lua.zip

    Please give feedback (here or at eonclash.com) if you use it. I know that you have to hand tweak some of the code it generates (if for example you want to use TRects), but for the most part it generates all of the teadious code. Simple objects should import w/o any need of tweaking.

  2. #2

    Pas2Lua Beta 1 Released

    Sounds great, I wish I had the time to try it.

    PS. I have upgraded your post to, News item.
    <br /><br />There are a lot of people who are dead while they are still alive. I want to be alive until the day I die.<br />-= Paulo Coelho =-

  3. #3

    Pas2Lua Beta 1 Released

    Quote Originally Posted by savage
    Sounds great, I wish I had the time to try it.

    PS. I have upgraded your post to, News item.
    Thanks for the News Item upgrade, now I guess I just have to hope that their arn't too many bugs

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •