Book a Demo

Author Topic: Adding new language?  (Read 3708 times)

Jukiba

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Adding new language?
« on: November 14, 2006, 06:29:42 am »
I am trying to add new language to Enterprise Architect. There seems to be no support for PERL, so I'm trying to add that. Thou, I haven't been able to do that. I will be very pleased if someone can give me a little push to right way.  :)

Playa

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
  • Infernal Server Terror (500)
    • View Profile
Re: Adding new language?
« Reply #1 on: November 14, 2006, 11:50:49 pm »
Settings-->Code Datatypes-->Add Product--> type into text field the language you want.

And then the typical datatype the language has; in this case scalar ($), array (@), hash (%).
« Last Edit: November 14, 2006, 11:52:23 pm by peli-mies »
G'Day

Playa

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
  • Infernal Server Terror (500)
    • View Profile
Re: Adding new language?
« Reply #2 on: November 15, 2006, 12:59:34 am »
This remains to be seen: can one add a permanent new language? Thus far I am able to add new languages to one project, not as PERMANENT language. Generating from source code or forward engineering from a new language is still a mystery to me. Could anyone help?
G'Day

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Adding new language?
« Reply #3 on: November 15, 2006, 01:15:22 pm »
You're on the right track with adding the datatypes.  This will add the definition of the language to the model you are using.

From there you can define code generation templates. (See http://www.sparxsystems.com/EAUserGuide/index.html?codetemplatesoverview.htm)

Finally export both the datatypes and templates into other models (possibly your base model, EABase.eap in your project directory.) (See http://www.sparxsystems.com/EAUserGuide/index.html?importexportrefdata.htm)

Select 'Model Data Types - Code and DDL' and 'PERL_Code_Template' when exporting.