Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » Enumeration data type #in
Enumeration data type #in [message #917870] Thu, 20 September 2012 14:18 Go to next message
José Miguel P. is currently offline José Miguel P.Friend
Messages: 62
Registered: March 2010
Member

Hi!

I'm building a ATL transformation where I use some Enumeration data types without problem, but now, in my target metamodel, I have the follow:

enum Dtype {
  in = 0;
  out = 1;
}


and in ATL editor, when y try use #in, I obtain the follow error:

mismatched input 'in' expecting NAME

Is there any way for escape enumeration data types?

Thanks in advance!
Re: Enumeration data type #in [message #917887 is a reply to message #917870] Thu, 20 September 2012 14:31 Go to previous messageGo to next message
Hugo Bruneliere is currently offline Hugo BruneliereFriend
Messages: 612
Registered: July 2009
Senior Member
Hi,

in is a keyword in ATL.
To use it in another context within your transformation, you have to escape it by using double quotes: #"in"

Best regards,

Hugo


------------------------------------------
Hugo Bruneliere - R&D Engineer
AtlanMod research team (Inria, EMN & LINA)
Ecole des Mines de Nantes
Nantes - France
------------------------------------------
Re: Enumeration data type #in [message #918002 is a reply to message #917887] Thu, 20 September 2012 16:33 Go to previous message
José Miguel P. is currently offline José Miguel P.Friend
Messages: 62
Registered: March 2010
Member

In fact, it's working perfectly.

Thanks!
Previous Topic:[ATL] Not transformed all code
Next Topic:How to convert ATL-file to EMF-file?
Goto Forum:
  


Current Time: Wed Nov 26 11:51:46 GMT 2014

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

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