Skip to main content


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: 66
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: 674
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, PhD
NaoMod team (IMT Atlantique & LS2N-CNRS)
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: 66
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 Apr 24 22:13:19 GMT 2024

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

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

Back to the top