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 /sml/trunk/src/cm/tools/dir/classify.sml
ViewVC logotype

View of /sml/trunk/src/cm/tools/dir/classify.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 756 - (download) (annotate)
Thu Dec 14 16:01:33 2000 UTC (19 years, 8 months ago) by blume
File size: 724 byte(s)
dir tool added
(*
 * The classifier for the tool for processing filesystem directories that
 * contain other source files.
 * (We keep this classifier separate to be able to register it without
 * registering the tool itself.  This classifier does not rely on filename
 * suffixes, so we cannot rely on automatic loading of plugins.)
 *
 *   (C) 2000 Lucent Technologies, Bell Laboratories
 *
 * Author: Matthias Blume (blume@kurims.kyoto-u.ac.jp)
 *)
structure DirToolClassify = struct
    val class = "dir"
    local
	open Tools
	fun classify { name, mkfname } =
	    (if OS.FileSys.isDir (mkfname ()) then SOME class
	     else NONE)
	    handle _ => NONE
    in
        val _ = registerClassifier (GEN_CLASSIFIER classify)
    end
end

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