Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Diff of /sml/trunk/src/cm/semant/group-reg.sml
ViewVC logotype

Diff of /sml/trunk/src/cm/semant/group-reg.sml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 294, Tue May 25 09:06:06 1999 UTC revision 297, Thu May 27 08:29:19 1999 UTC
# Line 14  Line 14 
14      val register : groupreg -> AbsPath.t * GenericVC.Source.inputSource -> unit      val register : groupreg -> AbsPath.t * GenericVC.Source.inputSource -> unit
15      val lookup : groupreg -> AbsPath.t -> GenericVC.Source.inputSource      val lookup : groupreg -> AbsPath.t -> GenericVC.Source.inputSource
16      val registered : groupreg -> AbsPath.t -> bool      val registered : groupreg -> AbsPath.t -> bool
17        val error :
18            groupreg
19            -> AbsPath.t * GenericVC.SourceMap.region
20            -> GenericVC.ErrorMsg.complainer
21  end  end
22    
23  structure GroupReg :> GROUPREG = struct  structure GroupReg :> GROUPREG = struct
# Line 25  Line 29 
29      fun register gr (p, s) = gr := AbsPathMap.insert (!gr, p, s)      fun register gr (p, s) = gr := AbsPathMap.insert (!gr, p, s)
30      fun lookup gr p = valOf (AbsPathMap.find (!gr, p))      fun lookup gr p = valOf (AbsPathMap.find (!gr, p))
31      fun registered gr g = isSome (AbsPathMap.find (!gr, g))      fun registered gr g = isSome (AbsPathMap.find (!gr, g))
32        fun error gr (g, r) = GenericVC.ErrorMsg.error (lookup gr g) r
33  end  end

Legend:
Removed from v.294  
changed lines
  Added in v.297

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