Author Topic: Comments in intermediary transformation language?  (Read 3066 times)

g.makulik

  • EA User
  • **
  • Posts: 355
  • Karma: +0/-0
    • View Profile
Comments in intermediary transformation language?
« 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
Using EA9.3, UML2.3, C++, linux, my brain, http://makulik.github.com/sttcl/

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Comments in intermediary transformation langua
« Reply #1 on: May 10, 2012, 06:52:17 pm »
IIRC the Sparxians once recommended something like

COMMENT = "what you want";

q.

g.makulik

  • EA User
  • **
  • Posts: 355
  • Karma: +0/-0
    • View Profile
Re: Comments in intermediary transformation langua
« Reply #2 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
Using EA9.3, UML2.3, C++, linux, my brain, http://makulik.github.com/sttcl/

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Comments in intermediary transformation langua
« Reply #3 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.