Author Topic: Exporting new languages to other projects  (Read 4041 times)

ms_butterfly

  • EA User
  • **
  • Posts: 42
  • Karma: +0/-0
  • When you think it's bad, relax: it can get worse
    • View Profile
Exporting new languages to other projects
« on: September 12, 2004, 04:24:05 am »
Hallo all!
I still haven't given up of generating C code with EA...
So I thought maybe I could configure C as a new language...
I have added it as a new product, and my colleagues will configure the templates. But there is a problem: I couldn't find an option to export this definition to other projects. If I define a complete new language, is it possible to use it only in 1 project?? Can't I export it?
Thanx, g'day!

mbc

  • EA User
  • **
  • Posts: 237
  • Karma: +1/-0
  • Embedded software developer
    • View Profile
Re: Exporting new languages to other projects
« Reply #1 on: September 12, 2004, 05:24:15 am »
I did a search for "export code templates" of the forum for you and came up with this topic:

http://www.sparxsystems.com.au/cgi-bin/yabb/YaBB.cgi?board=general;action=display;num=1088585851;start=1#1

Mikkel

ms_butterfly

  • EA User
  • **
  • Posts: 42
  • Karma: +0/-0
  • When you think it's bad, relax: it can get worse
    • View Profile
Re: Exporting new languages to other projects
« Reply #2 on: September 12, 2004, 06:39:55 am »
Thank you very much  ;D
but it does not automatically add the language...  :-[

I need a way to add automatically in the Code Templates Editor the language I have created in another project...do you think it is possible?

thanx!

CJ

  • EA User
  • **
  • Posts: 288
  • Karma: +0/-0
    • View Profile
Re: Exporting new languages to other projects
« Reply #3 on: September 12, 2004, 07:12:01 am »
G'day,

I haven't tried this:

How about:
- create a new project B, based on the one ( project A) with the new language specs;
- in project B, get rid of whatever got copied from project A;
- export project C (the one you want to setup the new language in) and import into project B.

Cheers and best regards.

ms_butterfly

  • EA User
  • **
  • Posts: 42
  • Karma: +0/-0
  • When you think it's bad, relax: it can get worse
    • View Profile
Re: Exporting new languages to other projects
« Reply #4 on: September 12, 2004, 08:08:51 am »
Hallo CJ!
Maybe it can be a good idea, to use a template with the language definitions...
Thanx!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8085
  • Karma: +118/-20
    • View Profile
Re: Exporting new languages to other projects
« Reply #5 on: September 12, 2004, 06:14:40 pm »
Hi,

The definition of the new language is done by defining the datatypes for the language.  That is what allows you to create templates for the new language.

Then in Tools, Export Reference Data you need to select not just the <langName>_Code_Template but also the "Model Data Types - Code and DDL".

The latter contains what EA considers the language definition, the former is any code templates defined for your language.

Simon

ms_butterfly

  • EA User
  • **
  • Posts: 42
  • Karma: +0/-0
  • When you think it's bad, relax: it can get worse
    • View Profile
Re: Exporting new languages to other projects
« Reply #6 on: September 14, 2004, 07:45:53 am »
a-ha!! now it worked!!  ;D

Thank you very much!