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 498 - (view) (download)
Original Path: sml/branches/SMLNJ/src/MLRISC/visualization/allDisplays.sml

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 :     | _ => daVinci.visualize print
17 :     )
18 :    
19 :     fun program() =
20 :     (case !viewer of
21 :     "daVinci" => daVinci.program()
22 :     | "vcg" => VCG.program()
23 :     | _ => daVinci.program()
24 :     )
25 :    
26 :     fun suffix() =
27 :     (case !viewer of
28 :     "daVinci" => daVinci.suffix()
29 :     | "vcg" => VCG.suffix()
30 :     | _ => daVinci.suffix()
31 :     )
32 :    
33 :     end

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