SCM Repository
View of /sml/trunk/src/cm/smlfile/skel-exports.sml
Parent Directory
|
Revision Log
Revision 651 -
(download)
(annotate)
Thu Jun 1 18:34:03 2000 UTC (20 years, 7 months ago) by monnier
File size: 631 byte(s)
Thu Jun 1 18:34:03 2000 UTC (20 years, 7 months ago) by monnier
File size: 631 byte(s)
bring revisions from the vendor branch to the trunk
(* * Get the toplevel exports from a skeleton. * * (C) 1999 Lucent Technologies, Bell Laboratories * * contact: Matthias Blume (blume@cs.princeton.edu) *) signature SKELEXPORTS = sig val exports : Skeleton.decl -> SymbolSet.set end structure SkelExports :> SKELEXPORTS = struct structure SK = Skeleton structure SS = SymbolSet fun exports d = let fun e (SK.Bind (s, _), a) = SS.add (a, s) | e (SK.Local (l, b), a) = e (b, a) | e (SK.Par l, a) = foldl e a l | e (SK.Seq l, a) = foldl e a l | e (SK.Open _, a) = a (* cannot happen *) | e (SK.Ref _, a) = a in e (d, SS.empty) end end
root@smlnj-gforge.cs.uchicago.edu | ViewVC Help |
Powered by ViewVC 1.0.0 |