]>
git.saurik.com Git - bison.git/blob - src/graphviz.h
   1 /* Output Graphviz specification of a state machine generated by Bison. 
   3    Copyright (C) 2006, 2010-2012 Free Software Foundation, Inc. 
   5    This file is part of Bison, the GNU Compiler Compiler. 
   7    This program is free software: you can redistribute it and/or modify 
   8    it under the terms of the GNU General Public License as published by 
   9    the Free Software Foundation, either version 3 of the License, or 
  10    (at your option) any later version. 
  12    This program is distributed in the hope that it will be useful, 
  13    but WITHOUT ANY WARRANTY; without even the implied warranty of 
  14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
  15    GNU General Public License for more details. 
  17    You should have received a copy of the GNU General Public License 
  18    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */ 
  20 /* Written by Paul Eggert and Satya Kiran Popuri.  */ 
  25 /// Begin a Dot graph. 
  26 /// \param fout   output stream. 
  27 void start_graph (FILE *fout
); 
  29 /// Output a Dot node. 
  30 /// \param id     identifier of the node 
  31 /// \param label  human readable label of the node (no Dot escaping needed). 
  32 /// \param fout   output stream. 
  33 void output_node (int id
, char const *label
, FILE *fout
); 
  35 /// Output a Dot edge. 
  36 /// \param source       id of the source node 
  37 /// \param destination  id of the target node 
  38 /// \param label        human readable label of the edge 
  39 ///                     (no Dot escaping needed).  Can be 0. 
  40 /// \param style        Dot style of the edge (e.g., "dotted" or "solid"). 
  41 /// \param fout         output stream. 
  42 void output_edge (int source
, int destination
, char const *label
, 
  43                   char const *style
, FILE *fout
); 
  46 /// \param fout  output stream. 
  47 void finish_graph (FILE *fout
); 
  49 #endif /* ! GRAPHVIZ_H_ */