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

SCM Repository

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

Annotation of /sml/trunk/src/MLRISC/visualization/allDisplays.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 601 - (view) (download)

1 : monnier 411 (*
2 :     * This module ties together all the visualization backends.
3 :     *
4 :     * -- Allen
5 :     *)
6 :    
7 : monnier 498 structure AllDisplays : GRAPH_DISPLAY =
8 : monnier 245 struct
9 :    
10 : monnier 498 val viewer = MLRiscControl.getString "viewer"
11 : monnier 245
12 :     fun visualize print =
13 :     (case !viewer of
14 :     "daVinci" => daVinci.visualize print
15 :     | "vcg" => VCG.visualize print
16 : leunga 601 | "dot" => Dot.visualize print
17 : monnier 245 | _ => daVinci.visualize print
18 :     )
19 :    
20 :     fun program() =
21 :     (case !viewer of
22 :     "daVinci" => daVinci.program()
23 :     | "vcg" => VCG.program()
24 : leunga 601 | "dot" => Dot.program()
25 : monnier 245 | _ => daVinci.program()
26 :     )
27 :    
28 :     fun suffix() =
29 :     (case !viewer of
30 :     "daVinci" => daVinci.suffix()
31 :     | "vcg" => VCG.suffix()
32 : leunga 601 | "dot" => Dot.suffix()
33 : monnier 245 | _ => daVinci.suffix()
34 :     )
35 :    
36 :     end

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