Book a Demo

Author Topic: Roundtrip Engineering for Node / ES6?  (Read 6837 times)

suityou01

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Roundtrip Engineering for Node / ES6?
« on: October 11, 2021, 06:34:22 am »
I note the list of supported languages for this feature, and also note that this product is extensible. Is it possible to extend this functionality to roundtrip node/es6 code?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Roundtrip Engineering for Node / ES6?
« Reply #1 on: October 11, 2021, 07:29:25 am »
Never heard of that language. If you have a context free grammar for that you can (as per Sparx marketing announcement) create a language parser. Never heard of any succefull attempt here, only some efforts in starting. Writing compilers is not the easiest thing on earth and you can have fails everywhere. To actually create code it's more easy. You could use that crude macro language EA has build-in. I only used that once for a try, but ever since when needed I use the API to parse the model and create code. I do have my opinion about the usefullness of such a thing (and it's not that I would value it high).

So all in all: you can. But it will be a hell of work for sure. It's probably easier to RE your code manually and thereby think about the design you find.

q.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Roundtrip Engineering for Node / ES6?
« Reply #2 on: October 11, 2021, 09:09:55 am »
I think you have heard of it by another name. es6 == ECMAScript 6 == Javascript.

Meanwhile node == Node.js. ie. a Javascript library.

Unfortunately, we don't have anything for Javascript. Although it's possible to write object oriented code, in general it's not easy to map to UML.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Roundtrip Engineering for Node / ES6?
« Reply #3 on: October 11, 2021, 08:34:03 pm »
Thanks, Eve. I wasn't aware of that. Java (and companions) is no really my friend. I can read it, but I write differently...

q.