|
Re: View AST of my grammar [message #719154 is a reply to message #719026] |
Fri, 26 August 2011 08:34 |
Jan Koehnlein Messages: 760 Registered: July 2009 Location: Hamburg |
Senior Member |
|
|
Well, the AST is an EMF model instance, so any graphical editing
framework for EMF should work (GMF, Graphiti), but will require some
extra work.
Creating a Graphviz .dot file, e.g. with Xtend2, should also be a no
brainer.
I've also implemented the prototype of a generic graphical view that
works fine with any kind of Java object model, but it's not ready to be
published yet.
http://koehnlein.blogspot.com/2011/06/using-xbase-to-define-generic-graphical.html
Am 25.08.11 22:39, schrieb john doe:
> I have built a grammar out using Xtext and created an instance of this
> grammar. Everything works great! After my dsl instance is parsed into an
> abstract syntax tree according to my parser rules, is it possible to
> some sort of graphical representation of the tree? Similar to this:
> http://dslmeinte.files.wordpress.com/2010/08/blog2fig-exampleast1.png
>
> If not, are there any tools out there that will let me do this? Thanks
> for the fantastic framework.
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
---
Get professional support from the Xtext committers at www.typefox.io
|
|
|
|
|
Re: View AST of my grammar [message #719828 is a reply to message #719209] |
Mon, 29 August 2011 06:58 |
Jan Koehnlein Messages: 760 Registered: July 2009 Location: Hamburg |
Senior Member |
|
|
Moritz uses Graphviz a lot to debug the serializer components of Xtext.
Have a look at
org.eclipse.xtext.util.GraphvizDotBuilder
Am 26.08.11 14:03, schrieb john doe:
> @Sebastian yep I tried that. But I was looking for something a little
> more flash.
>
> @Jan I did some searching on Google, but I can't find an example of how
> to do what you outline
>
>> Creating a Graphviz .dot file, e.g. with Xtend2, should also be a no
>> brainer.
>
> Do you know of any examples?
>
> P.S that's a great looking prototype you're working on. Pity it's not
> publishable just yet... :)
>
> Thanks for the help
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
---
Get professional support from the Xtext committers at www.typefox.io
|
|
|
Powered by
FUDForum. Page generated in 0.03637 seconds