Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » EML/ECL example problem
EML/ECL example problem [message #531648] Wed, 05 May 2010 12:48 Go to next message
Bogie is currently offline Bogie
Messages: 14
Registered: April 2010
Junior Member
Hi,

I've just started using Epsilon and I'm particularly interested in ECL for comparing models. I run the Heterogeneous Model Merging with ECL/EML example (from the examples on the epsilon site) in eclipse, and I get an error on the line:

t."alias".exists(a|a.name = s.name);

in the Comparison.ecl file. Eclipse says:
multiple markers at this line:
-mismatched input:'alias'
-no viable alternative at input 'alias'
-Line Breakpoint:Comparison.ecl [line:16]

Can someone tell me what's wrong or what can be done?

Bogie
Re: EML/ECL example problem [message #531659 is a reply to message #531648] Wed, 05 May 2010 13:39 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
Hi Bogie,

Since 0.8.8 we've changed the escape character for reserved words (i.e.
alias) from " to `. Therefore, t."alias" needs to become t.`alias`
instead. I'll update the example in the SVN shortly.

Cheers,
Dimitris

Bogie wrote:
> Hi,
>
> I've just started using Epsilon and I'm particularly interested in ECL
> for comparing models. I run the Heterogeneous Model Merging with ECL/EML
> example (from the examples on the epsilon site) in eclipse, and I get an
> error on the line:
> t."alias".exists(a|a.name = s.name);
> in the Comparison.ecl file. Eclipse says: multiple markers at this line:
> -mismatched input:'alias'
> -no viable alternative at input 'alias'
> -Line Breakpoint:Comparison.ecl [line:16]
>
> Can someone tell me what's wrong or what can be done?
>
> Bogie


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: EML/ECL example problem [message #531673 is a reply to message #531659] Wed, 05 May 2010 13:46 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
In case you run into similar problems with any of the other examples,
the updates in the syntax of Epsilon languages are documented in
http://eclipse.org/gmt/epsilon/doc/articles/eol-syntax-updat es/

Cheers,
Dimitris

Dimitris Kolovos wrote:
> Hi Bogie,
>
> Since 0.8.8 we've changed the escape character for reserved words (i.e.
> alias) from " to `. Therefore, t."alias" needs to become t.`alias`
> instead. I'll update the example in the SVN shortly.
>
> Cheers,
> Dimitris
>
> Bogie wrote:
>> Hi,
>>
>> I've just started using Epsilon and I'm particularly interested in ECL
>> for comparing models. I run the Heterogeneous Model Merging with
>> ECL/EML example (from the examples on the epsilon site) in eclipse,
>> and I get an error on the line:
>> t."alias".exists(a|a.name = s.name);
>> in the Comparison.ecl file. Eclipse says: multiple markers at this line:
>> -mismatched input:'alias'
>> -no viable alternative at input 'alias'
>> -Line Breakpoint:Comparison.ecl [line:16]
>>
>> Can someone tell me what's wrong or what can be done?
>>
>> Bogie
>
>


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: EML/ECL example problem [message #588836 is a reply to message #531659] Wed, 05 May 2010 13:46 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
In case you run into similar problems with any of the other examples,
the updates in the syntax of Epsilon languages are documented in
http://eclipse.org/gmt/epsilon/doc/articles/eol-syntax-updat es/

Cheers,
Dimitris

Dimitris Kolovos wrote:
> Hi Bogie,
>
> Since 0.8.8 we've changed the escape character for reserved words (i.e.
> alias) from " to `. Therefore, t."alias" needs to become t.`alias`
> instead. I'll update the example in the SVN shortly.
>
> Cheers,
> Dimitris
>
> Bogie wrote:
>> Hi,
>>
>> I've just started using Epsilon and I'm particularly interested in ECL
>> for comparing models. I run the Heterogeneous Model Merging with
>> ECL/EML example (from the examples on the epsilon site) in eclipse,
>> and I get an error on the line:
>> t."alias".exists(a|a.name = s.name);
>> in the Comparison.ecl file. Eclipse says: multiple markers at this line:
>> -mismatched input:'alias'
>> -no viable alternative at input 'alias'
>> -Line Breakpoint:Comparison.ecl [line:16]
>>
>> Can someone tell me what's wrong or what can be done?
>>
>> Bogie
>
>


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Previous Topic:EML/ECL example problem
Next Topic:Why isn't my model recognised?
Goto Forum:
  


Current Time: Tue Jul 22 03:20:37 EDT 2014

Powered by FUDForum. Page generated in 0.01562 seconds