Book a Demo

Author Topic: Code Generation Templates  (Read 3818 times)

Fahad

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Code Generation Templates
« on: April 29, 2017, 12:52:46 am »
I am trying to get a better understanding of "Code Generation Templates" in EA.
- Does EA use the templates defined for each language for Code Generation as well as Synchronization purposes? i.e. If I create a new template language based on C++ lets say and would like to customize that for my usage, it will apply the rules on both import/export of the source?

- Are there any examples that show how to modify a template to effect the generation/reverse engineer code to/from EA?

- opinions on whether to use VB or Javascript to bypass the template framework, perhaps I can take advantage of existing code to support the language profile.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Code Generation Templates
« Reply #1 on: May 01, 2017, 08:51:00 am »
Code templates are for generation only. EA does support defining grammars for importing code. You need both for synchronizing changes into your code as opposed to generating the whole file each time.

Fahad

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Code Generation Templates
« Reply #2 on: May 03, 2017, 12:47:26 am »
Thank You for the prompt response Simon. Are there any resources available that can briefly guide me through the grammar creating process. I have looked but cannot find anything useful, I need a simple nudge in the right direction. Perhaps, I am overlooking certain areas in the documentation.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile