Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » mismatched input 'helper' expecting SEMI(ATL Transformation)
icon2.gif  mismatched input 'helper' expecting SEMI [message #992372] Fri, 21 December 2012 13:45 Go to next message
doniyor jurabaev is currently offline doniyor jurabaevFriend
Messages: 2
Registered: December 2012
Junior Member
Hi There, i am new to ATL, i have been following the ATL Families2Persons Transformation Example. by the time of run, i have one problem:

i have a helper code:

helper context Family!Member def: isFemale(): Boolean =
if not self.familyMother.oclIsUndefined() then
true
else
if not self.familyDaughter.oclIsUndefined() then
true
else
false
endif
endif;

once i run the code, it is showing error on the first line of this helper saying that "mismatched input 'helper' expecting SEMI". i cannot figure out what it wants now, the code seems to be okay actually, it is from the docu.

thanks for any help
Re: mismatched input 'helper' expecting SEMI [message #992427 is a reply to message #992372] Fri, 21 December 2012 16:00 Go to previous messageGo to next message
Hugo Bruneliere is currently offline Hugo BruneliereFriend
Messages: 674
Registered: July 2009
Senior Member
Hello,

Are you sure the syntax error is actually coming from this helper?
I've copied and pasted the helper from your post into an ATL file and I did not get any error.

Best regards,

Hugo


--------------------------------------------------------
Hugo Bruneliere, PhD
NaoMod team (IMT Atlantique & LS2N-CNRS)
Nantes - France
--------------------------------------------------------
Re: mismatched input 'helper' expecting SEMI [message #992428 is a reply to message #992372] Fri, 21 December 2012 16:00 Go to previous messageGo to next message
Hugo Bruneliere is currently offline Hugo BruneliereFriend
Messages: 674
Registered: July 2009
Senior Member
Hello,

Are you sure the syntax error is actually coming from this helper?
I've copied and pasted the helper from your post into an ATL file and I did not get any error.

Best regards,

Hugo


--------------------------------------------------------
Hugo Bruneliere, PhD
NaoMod team (IMT Atlantique & LS2N-CNRS)
Nantes - France
--------------------------------------------------------
Re: mismatched input 'helper' expecting SEMI [message #992450 is a reply to message #992427] Fri, 21 December 2012 16:56 Go to previous message
doniyor jurabaev is currently offline doniyor jurabaevFriend
Messages: 2
Registered: December 2012
Junior Member
HI, thanks for writing.

i am not sure whether the error is coming from the helper, now i saw in the console, the error message is: File family2person.asm does not exist. do you ever had something to do with .asm files? i have no clue what this error should mean

Previous Topic:HighOrderTransformation: From Model to Text
Next Topic:New EMFTVM snapshot available
Goto Forum:
  


Current Time: Fri Apr 26 14:16:00 GMT 2024

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

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

Back to the top