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 08:45 Go to next message
doniyor jurabaev is currently offline doniyor jurabaev
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 11:00 Go to previous messageGo to next message
Hugo Bruneliere is currently offline Hugo Bruneliere
Messages: 600
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 - R&D Engineer
AtlanMod research team (Inria, EMN & LINA)
Ecole des Mines de Nantes
Nantes - France
------------------------------------------
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
Hugo Bruneliere is currently offline Hugo Bruneliere
Messages: 600
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 - R&D Engineer
AtlanMod research team (Inria, EMN & LINA)
Ecole des Mines de Nantes
Nantes - France
------------------------------------------
Re: mismatched input 'helper' expecting SEMI [message #992450 is a reply to message #992427] Fri, 21 December 2012 11:56 Go to previous message
doniyor jurabaev is currently offline doniyor jurabaev
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: Mon Jul 28 18:44:29 EDT 2014

Powered by FUDForum. Page generated in 0.01813 seconds