help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: VCG visualization


From: Aaron Jackson
Subject: Re: VCG visualization
Date: Sat, 26 Apr 2008 15:48:21 -0400


On Apr 26, 2008, at 7:27 AM, Derek M Jones wrote:

Paulo,

I am on a Mac and I would like to know if anybody has any suggestion on a free software to visualize vcg files resulting from bison output
or convert them to a bitmap file.

 I find graphviz useful for this kind of thing
 http://www.graphviz.org/

Hello Derek,
I do know and use graphviz regularly for my graph work but I thought
it only worked with the dot format. Is there a way to convert VCG to
dot or is there a way to open VCG natively which I am not aware of?

It has always struck me that it ought to be possible to write an
awk script to create a workable translation, but I have never tried
to write one.

There do seem to be some tools out there (never tried any of them)
http://rw4.cs.uni-sb.de/~sander/html/gsvcg1.html

I found yaccviso http://lo-res.org/~aaron/yaccviso/ . It looks directly at the .y file and generates a dot file. It won't compile on your mac without a small change:

---------------------8<---------------------------------------------
--- malloc.h.orig       2008-04-26 15:43:45.000000000 -0400
+++ malloc.h    2008-04-26 15:44:00.000000000 -0400
@@ -26,7 +26,7 @@
  * descr.:
  */

-#include <malloc.h>
+#include <stdlib.h>
 #include "global.h"

 typedef struct memmap memmap;
-----------------------8<-------------------------------------------

Aaron




reply via email to

[Prev in Thread] Current Thread [Next in Thread]