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 878, Wed Jul 18 17:43:27 2001 UTC revision 879, Thu Jul 19 18:59:38 2001 UTC
# Line 12  Line 12 
12    
13      val new : unit -> groupreg      val new : unit -> groupreg
14      val register :      val register :
15          groupreg -> SrcPath.file * GenericVC.Source.inputSource -> unit          groupreg -> SrcPath.file * Source.inputSource -> unit
16      val lookup : groupreg -> SrcPath.file -> GenericVC.Source.inputSource      val lookup : groupreg -> SrcPath.file -> Source.inputSource
17      val registered : groupreg -> SrcPath.file -> bool      val registered : groupreg -> SrcPath.file -> bool
18      val error :      val error : groupreg ->
19          groupreg                  SrcPath.file * SourceMap.region -> ErrorMsg.complainer
         -> SrcPath.file * GenericVC.SourceMap.region  
         -> GenericVC.ErrorMsg.complainer  
20  end  end
21    
22  structure GroupReg :> GROUPREG = struct  structure GroupReg :> GROUPREG = struct
23    
24      type groupreg = GenericVC.Source.inputSource SrcPathMap.map ref      type groupreg = Source.inputSource SrcPathMap.map ref
25    
26      fun new () = ref SrcPathMap.empty : groupreg      fun new () = ref SrcPathMap.empty : groupreg
27    
# Line 31  Line 29 
29      fun lookup gr p = valOf (SrcPathMap.find (!gr, p))      fun lookup gr p = valOf (SrcPathMap.find (!gr, p))
30          handle Option => raise Fail ("GroupReg.lookup " ^ SrcPath.descr p)          handle Option => raise Fail ("GroupReg.lookup " ^ SrcPath.descr p)
31      fun registered gr g = isSome (SrcPathMap.find (!gr, g))      fun registered gr g = isSome (SrcPathMap.find (!gr, g))
32      fun error gr (g, r) = GenericVC.ErrorMsg.error (lookup gr g) r      fun error gr (g, r) = ErrorMsg.error (lookup gr g) r
33  end  end

Legend:
Removed from v.878  
changed lines
  Added in v.879

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