Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] View of /MLRISC/trunk/visualization/allDisplays.sml
ViewVC logotype

View of /MLRISC/trunk/visualization/allDisplays.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2126 - (download) (annotate)
Thu Nov 2 16:11:29 2006 UTC (12 years, 7 months ago) by blume
File size: 838 byte(s)
moved MLRISC to toplevel
(*
 * This module ties together all the visualization backends.
 *
 * -- Allen
 *)

structure AllDisplays : GRAPH_DISPLAY =
struct

   val viewer = MLRiscControl.getString "viewer"

   fun visualize print =
       (case !viewer of
          "daVinci" => daVinci.visualize print
        | "vcg"     => VCG.visualize print
        | "dot"     => Dot.visualize print
        | _         => daVinci.visualize print
       )

   fun program() =
       (case !viewer of
          "daVinci" => daVinci.program()
        | "vcg"     => VCG.program()
        | "dot"     => Dot.program()
        | _         => daVinci.program()
       )

   fun suffix() =
       (case !viewer of
          "daVinci" => daVinci.suffix()
        | "vcg"     => VCG.suffix()
        | "dot"     => Dot.suffix()
        | _         => daVinci.suffix()
       )

end

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0