Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Question about imperative do blocks in ATL(Effect of using a specific command in imperative do blocks of ATL rules)
Question about imperative do blocks in ATL [message #1793933] Mon, 20 August 2018 16:36 Go to next message
Gehan Mustafa Kamel Selim is currently offline Gehan Mustafa Kamel SelimFriend
Messages: 7
Registered: August 2018
Junior Member
I am performing a study to understand how the different ATL features are used in the ATL Zoo (http://www.eclipse.org/atl/atlTransformations/).
I noticed in many transformations in the ATL zoo, an imperative do block would contain only a variable name followed by a semi colon (where this variable could be a target pattern element).

For example:
"rule Category(name : String, desc : String) {
to
cat : Measure!Category (
name <- name,
desc <- desc
)
do { cat; }}".

I cannot seem to find in the ATL documentation what would be the effect of such a command ? Is this only for debugging purposes (i.e., to show the value of the variable"cat" in the above example in the console) ? or would this result in returning the value of "cat" as the return value of the rule ?
Re: Question about imperative do blocks in ATL [message #1794056 is a reply to message #1793933] Thu, 23 August 2018 04:00 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
It's probably better to ask on the ATL-specific forum:

https://www.eclipse.org/forums/index.php/f/241/


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Question about imperative do blocks in ATL [message #1794105 is a reply to message #1794056] Thu, 23 August 2018 15:23 Go to previous message
Gehan Mustafa Kamel Selim is currently offline Gehan Mustafa Kamel SelimFriend
Messages: 7
Registered: August 2018
Junior Member
Thanks a lot for the link :) Will do !
Previous Topic:Program .elf file using Jlink on Eclipse Juno
Next Topic:Does Eclipse Photon Work on Redhat Linux 7?
Goto Forum:
  


Current Time: Thu Apr 18 08:00:08 GMT 2024

Powered by FUDForum. Page generated in 0.02799 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top