Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » [xtext] about EMF created by xtext(how to have a cyclic class in EMF through grammar)
[xtext] about EMF created by xtext [message #1401770] Wed, 16 July 2014 04:11 Go to next message
duke vah is currently offline duke vahFriend
Messages: 33
Registered: December 2013
Member
Hi,
I wonder if it is possible to have a cyclic emf metamodel through xtext grammar.
For example;
As you know, in UML metamodel we have a structure like this

class Element {
...
ownedElement:Element // ownedElement[]
...
}

I would like to have exactly the same output in automatic emf created by xtext's compile for a specific grammar.
If it's impossible how can I achieve this through other ways because I need to have this is model created in runtime.

Thanks.
Re: [xtext] about EMF created by xtext [message #1402001 is a reply to message #1401770] Wed, 16 July 2014 11:13 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi,

if you solve potential left recursions this is no problem ?!?


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: [xtext] about EMF created by xtext [message #1402002 is a reply to message #1401770] Wed, 16 July 2014 11:13 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi,

if you solve pot. left recursions this is no problem


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:JvmType Reference in XText DSL based on XCore model [Luna]
Next Topic:Cross reference and scoping
Goto Forum:
  


Current Time: Sat Apr 20 03:44:45 GMT 2024

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

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

Back to the top