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

1 : monnier 245 functor AllDisplaysFn (val viewer : string ref) :
2 :     sig
3 :     include GRAPH_DISPLAY
4 :     val viewer : string ref
5 :     end =
6 :     struct
7 :    
8 :     val viewer = viewer
9 :    
10 :     fun visualize print =
11 :     (case !viewer of
12 :     "daVinci" => daVinci.visualize print
13 :     | "vcg" => VCG.visualize print
14 :     | _ => daVinci.visualize print
15 :     )
16 :    
17 :     fun program() =
18 :     (case !viewer of
19 :     "daVinci" => daVinci.program()
20 :     | "vcg" => VCG.program()
21 :     | _ => daVinci.program()
22 :     )
23 :    
24 :     fun suffix() =
25 :     (case !viewer of
26 :     "daVinci" => daVinci.suffix()
27 :     | "vcg" => VCG.suffix()
28 :     | _ => daVinci.suffix()
29 :     )
30 :    
31 :     end

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