Results 1 to 8 of 8

Thread: BabelCode: a .NET translator

  1. #1

    BabelCode: a .NET translator

    If you are in stuck converting C# or VB .NET code to Delphi .NET, Borl... aehm Inpr... *ouch!* DevCo (:? has made a tool that translates it automatically:

    http://dotnet.borland.com/babelcode/

    It's released as a web service and seems that it works very well

    This article explains how to use that web service in your applications
    Get your fpc4gba copy now!
    Get your fpc4nds copy now!

  2. #2

    BabelCode: a .NET translator

    What they need to add is a C/C++ to Pascal capability, that would speed up the FreeSpace and other conversions .
    <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
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25

    BabelCode: a .NET translator

    I remember a 'Dr. Dobbs' project that was made some time ago that tried to create a 'do-it-all' C to Pascal converter. I cannot recall if it was C to 'Turbo' Pascal or C to Object Pascal though...

    Either way, it had it's flaws of course.

    But if you think about it... wouldn't it make sense that a C/C++ to ObjectPascal converter was entirely possible. You can take both languages and turn them into Assembly... and even ones that turn Assembly into Pascal or C... the difference here though is that you have all the proper variable names instead of having to use nonsensical symbols.

    Eh... just a thought.


    But yeah, cool tool! :thumbup:
    Jason McMillen
    Pascal Game Development
    Co-Founder





  4. #4

    BabelCode: a .NET translator

    Quote Originally Posted by WILL
    I remember a 'Dr. Dobbs' project
    Could you be referring to Dr. Bob
    <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 =-

  5. #5
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25

    BabelCode: a .NET translator

    Thats it! Dr. Bob.
    Jason McMillen
    Pascal Game Development
    Co-Founder





  6. #6
    Legendary Member cairnswm's Avatar
    Join Date
    Nov 2002
    Location
    Randburg, South Africa
    Posts
    1,537

    BabelCode: a .NET translator

    One of my pet projects at the moment is LCD (Lowest Common Denominator) Game Code a cross language Translator. http://thegamedeveloper.co.za/?cat=1

    Surprisingly there is very little information on Langauge-to-Language translators out there.

    Basically a Language-To-Language translator has to first compile to an intermediate code level and then from that into the final language. To achieve this a certtain amount of interpretation of the language is needed. Obviously making the translator understand the full language is a lot harder than making it understand a significant subset.

    (LCD will predefine the sub set, and use customized libraries in the final languages to achieve multiple language/maultiple platform compatability)
    William Cairns
    My Games: http://www.cairnsgames.co.za (Currently very inactive)
    MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)

  7. #7

    BabelCode: a .NET translator

    My idea of a pascal compiler is, to either convert it proceduraly, such as with a tokenizer and a syntax pre"compiler" (which would check for people doing c/c++ tricks and fix such stuff with proper code), and convert the code as it sees it, it would just read it, each procedure by procedure and definition by definition in precompiling part, then create a pascal unit, properly handling defines, processing procedure declarations and comments.

    That would work best for C, for c++ it would get a little more sophisticated.

    Ofcourse, one could as well take GCC and create a "pascal cpu" port for it
    This is my game project - Top Down City:
    http://www.pascalgamedevelopment.com...y-Topic-Reboot

    My OpenAL audio wrapper with Intelligent Source Manager to use unlimited:
    http://www.pascalgamedevelopment.com...source+manager

  8. #8

    BabelCode: a .NET translator

    Quote Originally Posted by savage
    Quote Originally Posted by WILL
    I remember a 'Dr. Dobbs' project
    Could you be referring to Dr. Bob
    No. That was afaik only a header conversion tool (like FPC's h2pas), something that later evolved to Jedi Darth iirc.

    Dodi (Hans Peter Mocken*) is also working on a real converter:

    http://members.aol.com/vbdis/

    However I think fully automated conversion will never be possible, mostly due to the fact that a lot of symbols are only defined completely by their first use.

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
  •