Book a Demo

Author Topic: Syntax description for code template editor?  (Read 2647 times)

Asperamanca

  • EA User
  • **
  • Posts: 91
  • Karma: +0/-0
    • View Profile
Syntax description for code template editor?
« on: June 14, 2011, 05:49:15 pm »
Where do I find a syntax description for the code template editor? (I can't find it in the help topic "The Code Template Editor" and the linked topics)

Specifically, I need to escape the "dollar" character, so it is simply written into my generated code, not interpreted.

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: Syntax description for code template editor?
« Reply #1 on: June 15, 2011, 01:08:53 pm »
Use %dl% in your template to output a literal dollar sign.

For more info, see:
http://www.sparxsystems.com/enterprise_architect_user_guide/8.0/modeling_languages/literaltext.html

Asperamanca

  • EA User
  • **
  • Posts: 91
  • Karma: +0/-0
    • View Profile
Re: Syntax description for code template editor?
« Reply #2 on: June 15, 2011, 04:53:46 pm »
Thank you. That was exactly what I was looking for.

I'm still confused as to where a complete reference of the code generation template language is to be found. The link you gave me has some associated topics, but I don't see where it leads to a full language reference.

Can you point me to a base node where I get an overview, and links to more specialized topics?