Book a Demo

Author Topic: Delphi to Oxygene  (Read 6248 times)

Josef Stadelmann

  • EA User
  • **
  • Posts: 59
  • Karma: +0/-0
  • as simple as possible, but not too simple
    • View Profile
Delphi to Oxygene
« on: March 11, 2015, 08:32:06 pm »
Hi,
Oxygene from RemObjects is the follow-up of Delphi, the OO Pascal.
Is there a chance to see support for Oxygene, integrated in Visual Studio 2012 and greater in EA in the near future?
Josef

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Delphi to Oxygene
« Reply #1 on: March 11, 2015, 08:46:00 pm »
Code: [Select]
IF you_have_plenty_of_time THEN BEGIN
  frustrated = FALSE;
  finished = FALSE;
  WHILE NOT frustrated AND NOT finished DO BEGIN
     write_syntax_for_Oxygen;
     test_EA_parser_with_syntax;
     IF syntax_works THEN finished = TRUE;
  END;
END;

q.

Josef Stadelmann

  • EA User
  • **
  • Posts: 59
  • Karma: +0/-0
  • as simple as possible, but not too simple
    • View Profile
Re: Delphi to Oxygene
« Reply #2 on: March 11, 2015, 09:23:12 pm »
I have, defined, based on Object Pascal, the syntax and transformation rules from OpenVMS PASCAL to Oxygene. This was done in the past year using Txl from www.txl.ca

Syntax-es and rules are well known to me. AND Txl has very nice documents to get started.

But developing a syntax, testing it in EA, integrating it in EA, using it in EA,  . . . for that to do, using what EA provides in this regards, to do what you outline so nicely, ;-)  . . . I miss good documentation to do the same in EA. I am not saying EA has no good documentation. The opposite is true. And I love the idea very much to add more languages to EA to do round trip code engineering. But how to do it, is very poorly documented in EA in my mind.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Delphi to Oxygene
« Reply #3 on: March 11, 2015, 10:48:22 pm »
I couldn't resist using a Pascal answer (it was the first language I learned 35 years ago in university). I have never used the custom parser in EA (and there are only a few out there having real experience). You will have to (I think) start with the C-syntax grammar in EA and modify that for Pascal. It's (IIRC) BNF-like and Niklaus Wirth has been using that from the very beginning. So it should be feasible.

q.

Josef Stadelmann

  • EA User
  • **
  • Posts: 59
  • Karma: +0/-0
  • as simple as possible, but not too simple
    • View Profile
Re: Delphi to Oxygene
« Reply #4 on: March 12, 2015, 04:13:23 am »
I tried a few things, but I am not getting clear with that user interface. Some more / better docu would be extremely helpful.
But thanks very much for your help. Will give it another try and start with a more simple grammar.
Josef