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/branches/primop-branch-gkuan/cm/util/symbolordkey.sml
ViewVC logotype

View of /sml/branches/primop-branch-gkuan/cm/util/symbolordkey.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2787 - (download) (annotate)
Sat Sep 29 05:18:54 2007 UTC (13 years, 6 months ago) by gkuan
File size: 366 byte(s)
Creating private branch of sml/branches/primop-branch-3 for experimental Translate rewrite
(*
 * Argument for SetFn and MapFn for the case of symbols.
 *
 * (C) 1999 Lucent Technologies, Bell Laboratories
 *
 * Author: Matthias Blume (blume@kurims.kyoto-u.ac.jp)
 *)
structure SymbolOrdKey = struct
    type ord_key = Symbol.symbol
    fun compare (s1, s2) =
	if Symbol.symbolCMLt (s1, s2) then LESS
	else if Symbol.eq (s1, s2) then EQUAL
	else GREATER
end

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