Book a Demo

Author Topic: support for Node.js  (Read 5229 times)

Bozella

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
support for Node.js
« on: October 14, 2013, 07:03:48 am »
Hi,
Does EA have a plugin that supports Javascript, or Node.js programming?
Thanks.

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: support for Node.js
« Reply #1 on: October 14, 2013, 09:32:34 pm »
Hi,

you can write and debug scripts which are written in
- VBScript
- JScript
- JavaScript.

You can't write EA addins in VBScript, JScript. JavaScript because you can't create a DLL conforming to EA Addin requirements with these languages.

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: support for Node.js
« Reply #2 on: October 14, 2013, 09:38:50 pm »
Maybe he's after code engineering rather than scripting?

q.

Bozella

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: support for Node.js
« Reply #3 on: October 21, 2013, 04:49:10 pm »
What I would like to be able to do, from my use case scenarios, is generate the accompanying test code into javascipt, since I'm using the Node.js framework.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: support for Node.js
« Reply #4 on: October 21, 2013, 07:35:14 pm »
The code gen uses a proprietary scripting language. I guess it should be possible to adapt the java code gen for your needs. The other way around is by far more complicated. Now EA has a way to describe your target language with some BNF-like notation. (Quite intriguing for me since I once studied compiler construction but I haven't used it so far.)

q.

Bozella

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: support for Node.js
« Reply #5 on: October 22, 2013, 04:41:46 am »
I guess I'll take that as a "No, it can't be done".

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: support for Node.js
« Reply #6 on: October 22, 2013, 08:38:19 am »
If you just want to generate code from the model you can do it (takes only a couple of days). But the whole way back is probably not worth it. There's one guy from Sweden who is actually in that. I have not seen anyone else discussing that matter here.

q.
« Last Edit: October 22, 2013, 08:38:38 am by qwerty »