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 08:04 Go to next message
Tim Student is currently offline Tim Student
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 08:08 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian Dietrich
Messages: 4426
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
Re: Generate Diagramm of EMF out of Xtext?? [message #878894 is a reply to message #876860] Wed, 30 May 2012 02:34 Go to previous message
Jan Kohnlein is currently offline Jan Kohnlein
Messages: 572
Registered: July 2009
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
Previous Topic:SerializationFragment generating bad code when grammar mixin
Next Topic:Out of memory during full build
Goto Forum:
  


Current Time: Fri May 24 15:24:42 EDT 2013

Powered by FUDForum. Page generated in 0.03637 seconds