Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: g.makulik on May 10, 2012, 04:31:58 am

Title: Comments in intermediary transformation language?
Post by: g.makulik on May 10, 2012, 04:31:58 am
Can anyone tell if there's a dedicated comment format for the transformation intermediary language? I couldn't find anything mentioned about this in the documentation  :(.
I just guess it might be s.th like
Code: [Select]
-- comment text --because this is used by EA for a text file written with the IL debug option for a transformation to show the transformation type.
I'd like to write some comments to IL for debugging purposes. Any hint appreciated.

Günther
Title: Re: Comments in intermediary transformation langua
Post by: qwerty on May 10, 2012, 06:52:17 pm
IIRC the Sparxians once recommended something like

COMMENT = "what you want";

q.
Title: Re: Comments in intermediary transformation langua
Post by: g.makulik on May 12, 2012, 05:32:50 am
Quote
IIRC the Sparxians once recommended something like

COMMENT = "what you want";

q.
No, that doesn't work (IIRC that refers to the template syntax, but you need to use $COMMENT).
I'm afraid there's no comment format recognized by the IL parser at all. I've been trying several variants as
Code: [Select]
COMMENT = "comment"
-- comment --
// comment
/* comment */
All of these lead to parsing  errors.
At least it's not that important for me, I have other opportunities for debugging, event not so convenient ones ...

WBR
Günther
Title: Re: Comments in intermediary transformation langua
Post by: qwerty on May 12, 2012, 11:47:00 pm
Anyway, why would you comment your code at all? Better use this: http://de.wikipedia.org/wiki/Brainfuck. You need to copy/paste the link as this silly YABB converts words like (all non-Europe readers - BEEP starts) fuck (BEEP ends) and (same readers BEEP) shit (BEEP ends - I hope you're still sane) into fuck and shit. How stupid!

q.