Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » [EGL][Solved] Using EGL to generate another EGL script
[EGL][Solved] Using EGL to generate another EGL script [message #1638566] Fri, 27 February 2015 07:20 Go to next message
Xue Liu is currently offline Xue LiuFriend
Messages: 21
Registered: May 2014
Junior Member
Hello,

Because of the requirement of my project, I want to use EGL to generate another EGL script. It means a two levels EGL generation. Now the problem is how to generate the tag pair [% %] into another EGL script. Anyone has some idea ?

Regards,

Xue Liu

[Updated on: Fri, 27 February 2015 14:52]

Report message to a moderator

Re: [EGL] Using EGL to generate another EGL script [message #1638818 is a reply to message #1638566] Fri, 27 February 2015 10:02 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2165
Registered: July 2009
Location: York, UK
Senior Member

Hi Xue,

The following should do the trick:

[%=o()%]Sequence{1,2,3}.size()[%=e()%]

[%
operation s(){ 
  return "[" + "%"; 
}
operation e(){
  return "%" + "]";
}
operation o(){
  return s() + "=";
}
%]


Cheers,
Dimitris
Re: [EGL] Using EGL to generate another EGL script [message #1639132 is a reply to message #1638818] Fri, 27 February 2015 13:26 Go to previous messageGo to next message
Xue Liu is currently offline Xue LiuFriend
Messages: 21
Registered: May 2014
Junior Member
Hi Dimitris

It works. Thank you a lot
Re: [EGL] Using EGL to generate another EGL script [message #1643331 is a reply to message #1639132] Sun, 01 March 2015 14:08 Go to previous message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2165
Registered: July 2009
Location: York, UK
Senior Member

Great - I'm glad this helped.

Cheers,
Dimitris
Previous Topic:How to check for applied stereotype from a InMemoryEmfModel
Next Topic:[EWL] How to order selected elements
Goto Forum:
  


Current Time: Fri Apr 26 22:25:48 GMT 2024

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

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

Back to the top