Skip to main content



      Home
Home » Modeling » ATL » mismatched input 'helper' expecting SEMI(ATL Transformation)
icon2.gif  mismatched input 'helper' expecting SEMI [message #992372] Fri, 21 December 2012 08:45 Go to next message
Eclipse UserFriend
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 11:00 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: mismatched input 'helper' expecting SEMI [message #992428 is a reply to message #992372] Fri, 21 December 2012 11:00 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: mismatched input 'helper' expecting SEMI [message #992450 is a reply to message #992427] Fri, 21 December 2012 11:56 Go to previous message
Eclipse UserFriend
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: Wed Jul 23 14:57:06 EDT 2025

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

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

Back to the top