SCM Repository
View of /sml/trunk/src/cm/smlfile/skel-exports.sml
Parent Directory
|
Revision Log
Revision 275 -
(download)
(annotate)
Sat May 15 09:54:52 1999 UTC (21 years, 8 months ago) by blume
File size: 679 byte(s)
Sat May 15 09:54:52 1999 UTC (21 years, 8 months ago) by blume
File size: 679 byte(s)
skeleton stuff added (works); error messages improved; SML export analysis
(* * 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.StrDecl l, a) = SS.addList (a, map #name l) | e (SK.FctDecl l, a) = SS.addList (a, map #name l) | e (SK.LocalDecl (l, b), a) = e (b, a) | e (SK.SeqDecl l, a) = foldl e a l | e (SK.OpenDecl _, a) = a (* cannot happen *) | e (SK.DeclRef _, a) = a in e (d, SS.empty) end end
root@smlnj-gforge.cs.uchicago.edu | ViewVC Help |
Powered by ViewVC 1.0.0 |