Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » OCL XText grammar
OCL XText grammar [message #1730444] Mon, 25 April 2016 19:53 Go to next message
Arne Lange is currently offline Arne LangeFriend
Messages: 6
Registered: April 2015
Junior Member
Hi,

I looked into your xtext grammar and I am wondering how you guys build the software from there. I am trying to create a stand alone xtext ocl grammar for another eclipse based modeling software at my university. My biggest problem is to even get to compile the xtext artefacts so I can start working on the integration into the modeling tool. Do you have any suggestions about how to create a "simple" ocl grammar in xtext?

Thanks in advance.

Arne
Re: OCL XText grammar [message #1730445 is a reply to message #1730444] Mon, 25 April 2016 19:59 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6111
Registered: July 2009
Senior Member
Hi

If you install the OCL OOMPH you will find and ocl.eamples.build plugin
that is full of MWE2 scripts and launch configurations.

What do you mean by a simple OCL grammar. If it's OCL the
EssentialOCL.xtext is what you need. If it's simpler it won't be OCL.

Regards

Ed Willink


On 25/04/2016 20:53, Arne Lange wrote:
> Hi,
>
> I looked into your xtext grammar and I am wondering how you guys build
> the software from there. I am trying to create a stand alone xtext ocl
> grammar for another eclipse based modeling software at my university.
> My biggest problem is to even get to compile the xtext artefacts so I
> can start working on the integration into the modeling tool. Do you
> have any suggestions about how to create a "simple" ocl grammar in xtext?
>
> Thanks in advance.
>
> Arne
Re: OCL XText grammar [message #1730500 is a reply to message #1730445] Tue, 26 April 2016 11:43 Go to previous messageGo to next message
Arne Lange is currently offline Arne LangeFriend
Messages: 6
Registered: April 2015
Junior Member
Thanks for your reply.
My goal is to create a standalone xtext grammar that is easily maintainable and easy to build. I had a quick look at your workflow files and I have to read a lot more about them.
Thansk a lot though.
Re: OCL XText grammar [message #1730505 is a reply to message #1730500] Tue, 26 April 2016 12:20 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6111
Registered: July 2009
Senior Member
Hi

You want to be much clearer about your intentions.

"a standalone xtext grammar that is easily maintainable and easy to
build" could be part of the Eclipse OCL goals, so you are just
duplicating what we do/are trying to do.

Perhaps you have not yet discovered that OCL is an ambiguous language.
It can be easy to build - our MWE2 scripts do that. It should be easier
to maintain once our CS2AS auto-generation takes over after Neon. Keep
an eye out for the ICMT 2016 successor to:

https://ocl2015.lri.fr/OCL_2015_paper_1111_0945.pdf

Regards

Ed Willink

On 26/04/2016 12:43, Arne Lange wrote:
> Thanks for your reply.
> My goal is to create a standalone xtext grammar that is easily
> maintainable and easy to build. I had a quick look at your workflow
> files and I have to read a lot more about them.
> Thansk a lot though.
Re: OCL XText grammar [message #1731026 is a reply to message #1730505] Mon, 02 May 2016 10:44 Go to previous messageGo to next message
Arne Lange is currently offline Arne LangeFriend
Messages: 6
Registered: April 2015
Junior Member
Thanks for the read. I am fairly new to the whole xtext programming. If I wanted to use your grammar implementation what would be the right place for customization? Thanks for your help so far.

regards
Arne
Re: OCL XText grammar [message #1731027 is a reply to message #1731026] Mon, 02 May 2016 10:49 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6111
Registered: July 2009
Senior Member
Hi

If you want to do comparatively simple things you might emulate the
customization in the org.eclipse.qvtd project.

However, I cannot claim that the OCL code is yet easy to customize;
there is a lot to do and we are still developing automation for it.

If you want something much easier to customize today you should look at
Xbase (which has a number of OCL characteritics through shared
functional language influences). Xbase is all-Java and has a much larger
development team.

Regards

Ed Willink



On 02/05/2016 11:44, Arne Lange wrote:
> Thanks for the read. I am fairly new to the whole xtext programming.
> If I wanted to use your grammar implementation what would be the right
> place for customization? Thanks for your help so far.
>
> regards
> Arne
Re: OCL XText grammar [message #1731039 is a reply to message #1731027] Mon, 02 May 2016 12:52 Go to previous message
Arne Lange is currently offline Arne LangeFriend
Messages: 6
Registered: April 2015
Junior Member
thanks for your suggestions. I'll need a while to work through those projects.
Previous Topic:Native validation with custom OCL files
Next Topic:Invalid thread access exception while loading a Complete OCL file
Goto Forum:
  


Current Time: Fri Nov 16 09:45:28 GMT 2018

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

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

Back to the top