Skip to main content



      Home
Home » Modeling » TMF (Xtext) » From EMF model to DSL
From EMF model to DSL [message #1814141] Wed, 04 September 2019 12:45 Go to next message
Eclipse UserFriend
Hello!

I am new with XTend. I have previously used Xpand for transforming UML (stereotyped class diagrams,etc) to Java code and from an EMF-based model to another text-based format. I wonder if, for using XTend, I need to define a grammar for the source EMF-based metamodel and if there is any tool that automatically generates the grammar from any EMF-based metamodel.

Thank you
Re: From EMF model to DSL [message #1814142 is a reply to message #1814141] Wed, 04 September 2019 13:01 Go to previous messageGo to next message
Eclipse UserFriend
hi, I assume you are speaking of Xtext (Text to model) and not Xtend (Model 2 Text or Model 2 Model)

Xtext supports external / existing metamodels. (Import statement)
There is a special version of a new Xtext project wizard that generates a very basic and rather lengthy grammar
Re: From EMF model to DSL [message #1814314 is a reply to message #1814142] Mon, 09 September 2019 06:24 Go to previous message
Eclipse UserFriend
Thank you for the information.
Bea
Previous Topic:generate with multiple independent grammars
Next Topic:Define a grammar to force the user to add a new line for every new entry in DSL editor
Goto Forum:
  


Current Time: Sat Apr 26 08:21:46 EDT 2025

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

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

Back to the top