Author Topic: Create a new language by copying an existing one?  (Read 3004 times)

owieland69

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • Don't eat the yellow snow
    • View Profile
Create a new language by copying an existing one?
« on: January 11, 2006, 03:09:56 am »
Hello,

in my project I like to create code templates for C. For sanity reasons I prefer to have an own template set.

EA has the option to define new languages, but up to now I didn't find a way to copy an existing one and modify it afterwards.

Also the way to export an existing template set and reimport it afterwards does not to work, since templates from existing languages cannot be exported (or I didn't find out how :-().

Is there a way to create a new language by copy an existing template set?

Thanks for your suggestions

Kind regards,
Olli

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8085
  • Karma: +118/-20
    • View Profile
Re: Create a new language by copying an existing o
« Reply #1 on: January 11, 2006, 01:30:51 pm »
The reason why you couldn't export the built in languages is that you don't have any saved templates for that language.

The only way to copy existing templates is a fairly long process.  Here it is, as I've described in another thread.
  • Click the save button for each of the templates in the original transformation. This makes sure that each of the templates will be included when exported.
  • Export the templates. Tools | Export Reference Data | <language>_Code_Template
  • Delete the saved copy of each of the templates. This is to free up the unique identifiers for the templates you just exported.
  • Change the name in the exported templates to the new transformation name.
  • Re-import the templates.
It would be nice if there was a copy feature, but until there is, this is how you do it.

Graham_Moir

  • EA User
  • **
  • Posts: 749
  • Karma: +10/-15
    • View Profile
Re: Create a new language by copying an existing o
« Reply #2 on: January 12, 2006, 07:44:01 am »
If anyone has or does define a new language, wouldn't it be useful for that to be posted somewhere for download by others ?     (eausergroup ?)

Bruno.Cossi

  • EA User
  • **
  • Posts: 803
  • Karma: +0/-0
    • View Profile
Re: Create a new language by copying an existing o
« Reply #3 on: January 12, 2006, 02:32:01 pm »
Hi Graham,

there are a few there, have a look. There is ColdFusion, PL/SQL... there may be others, not sure off the top of my head.

Bruno

Quote
If anyone has or does define a new language, wouldn't it be useful for that to be posted somewhere for download by others ?     (eausergroup ?)


Graham_Moir

  • EA User
  • **
  • Posts: 749
  • Karma: +10/-15
    • View Profile
Re: Create a new language by copying an existing o
« Reply #4 on: January 13, 2006, 12:44:48 am »
Thanks Bruno !