i was trying to make a readable file or image for people where show the grammar made in Xtext , i figure out how to export into XML but seem that XML file hasnt got my whole grammar inside . Is there any tool which generates a diagram with the XML file?
The Xtext Syntax Graph
view should be helpful for you.
You can open this view in Eclipse by clicking
Window -> Show view -> Other... -> Xtext -> Xtext Syntax Graph
.
It will show a graphical representation of the Xtext grammar
in the currently selected editor view.
With the save-button the diagram can be exported as a PNG image file.
There is also a blog post (with video demo) about this feature.