Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » [Solved][EVL 1.1 editor ] : Conflict between ParameterDirectionKind#return and return keyword(enumeration literal and reserved word)
[Solved][EVL 1.1 editor ] : Conflict between ParameterDirectionKind#return and return keyword [message #1114284] Sun, 22 September 2013 13:43 Go to next message
Didier Garcin is currently offline Didier Garcin
Messages: 39
Registered: April 2013
Member
With UML meta-model as context, the following

context Operation
{
constraint an_unary_operator_have_one_argument_only
   {
   guard : self.hasUnaryOperatorName()
   
   check : ((self.ownedParameter)->select(p : Parameter | p.direction <> ParameterDirectionKind#return))->size() = 1
   }   
}


triggers

mismatched input '<>' expecting ')'

followed by
mismatched input: '<>'	

in 'Problems' tab.

Replacing ParameterDirectionKind#return by ParameterDirectionKind#inout for instance makes disappear the problem.

Question : should I replace return by _return ? Or what else ?

Thanks a lot

[Updated on: Sun, 22 September 2013 20:32]

Report message to a moderator

Re: [EVL 1.1 editor ] : Conflict between ParameterDirectionKind#return and return keyword [message #1114289 is a reply to message #1114284] Sun, 22 September 2013 13:53 Go to previous messageGo to next message
Antonio Garcia-Dominguez is currently offline Antonio Garcia-Dominguez
Messages: 309
Registered: January 2010
Senior Member
Have you tried putting "return" between backticks, as in `return`? That's what you usually need to do to escape keywords.
Re: [EVL 1.1 editor ] : Conflict between ParameterDirectionKind#return and return keyword [message #1114487 is a reply to message #1114289] Sun, 22 September 2013 20:32 Go to previous message
Didier Garcin is currently offline Didier Garcin
Messages: 39
Registered: April 2013
Member
It simply works fine.
Thank you very much, Antonio.
Previous Topic:[ETL] How to transform the owner relationship between model and classes
Next Topic:[Solved][EVL 1.1] : lexical analysis and constraint scope
Goto Forum:
  


Current Time: Tue Sep 23 14:41:44 GMT 2014

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

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