Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Generate Diagramm of EMF out of Xtext??
Generate Diagramm of EMF out of Xtext?? [message #876860] Fri, 25 May 2012 12:04 Go to next message
Tim Student is currently offline Tim StudentFriend
Messages: 12
Registered: May 2012
Junior Member
Hi Team,

I generated my own Xtext grammar. For documentation purposes, I'd like to automatically create a kind of diagramm or picture that shows the AST or maybe the EMF-Meta model that is generated by Xtext.

Has somebody an Idea, wheater this is possible?
I know, that there are ways to have a graphical editor, that generates the corresponding textual model, but I need it the other way around.

Thanks in advance.
Re: Generate Diagramm of EMF out of Xtext?? [message #876862 is a reply to message #876860] Fri, 25 May 2012 12:08 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13667
Registered: July 2009
Senior Member
Hi,

maybe you should have look at Jan's work.

http://koehnlein.blogspot.de/
http://www.slideshare.net/schwurbel/a-fresh-look-at-graphical-editing-12183802

~Christian


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Generate Diagramm of EMF out of Xtext?? [message #878894 is a reply to message #876860] Wed, 30 May 2012 06:34 Go to previous message
Jan Koehnlein is currently offline Jan KoehnleinFriend
Messages: 760
Registered: July 2009
Location: Hamburg
Senior Member
The generated metamodel resides in the src-gen folder of your runtime
project. You can visualize it with any Ecore diagram editor, e.g. from
the Ecore Tools project.

There is also the Xtext Syntax Graph (Show View->Other->Xtext->) that
visualizes the syntax in a railroad diagram.

Am 25.05.12 14:04, schrieb Tim Student:
> Hi Team,
> I generated my own Xtext grammar. For documentation purposes, I'd like
> to automatically create a kind of diagramm or picture that shows the AST
> or maybe the EMF-Meta model that is generated by Xtext.
>
> Has somebody an Idea, wheater this is possible?
> I know, that there are ways to have a graphical editor, that generates
> the corresponding textual model, but I need it the other way around.
>
> Thanks in advance.


--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com


---
Get professional support from the Xtext committers at www.typefox.io
Previous Topic:SerializationFragment generating bad code when grammar mixin
Next Topic:Out of memory during full build
Goto Forum:
  


Current Time: Thu Dec 03 08:56:34 GMT 2020

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

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

Back to the top