Hi,
Here is a very small patch to add a comment line
in the output graph with the bison version number.
Would like to have that in the graph output file.

--- /home/twlevo/etc/bisongit/bison/src/graphviz.c      2010-01-13
20:20:52.000000000 +0100
+++ graphviz.c  2010-02-05 14:34:35.000000000 +0100
@@ -38,6 +38,7 @@
 void
 start_graph (FILE *fout)
 {
+  fprintf (fout, "/* generated with GNU Bison parser generator version
%s. Report bugs to <%s>. http://www.gnu.org/software/bison/ */\n",
VERSION, PACKAGE_BUGREPORT);
   fputs ("digraph Automaton {\n", fout);
 }


Thanks,
Tys Lefering.
--- /home/twlevo/etc/bisongit/bison/src/graphviz.c	2010-01-13 20:20:52.000000000 +0100
+++ graphviz.c	2010-02-05 14:34:35.000000000 +0100
@@ -38,6 +38,7 @@
 void
 start_graph (FILE *fout)
 {
+  fprintf (fout, "/* generated with GNU Bison parser generator version %s. Report bugs to <%s>. http://www.gnu.org/software/bison/ */\n", VERSION, PACKAGE_BUGREPORT);
   fputs ("digraph Automaton {\n", fout);
 }
 

Reply via email to