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/SMLNJ/src/compiler/Semant/pickle/unpickle-sym-pid.sml
ViewVC logotype

View of /sml/branches/SMLNJ/src/compiler/Semant/pickle/unpickle-sym-pid.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 428 - (download) (annotate)
Wed Sep 8 09:47:00 1999 UTC (22 years, 3 months ago)
File size: 926 byte(s)
This commit was manufactured by cvs2svn to create branch 'SMLNJ'.
structure UnpickleSymPid :> sig
    val r_symbol : UnpickleUtil.session * string UnpickleUtil.reader ->
	Symbol.symbol UnpickleUtil.reader
    val r_pid : string UnpickleUtil.reader ->
	PersStamps.persstamp UnpickleUtil.reader
end = struct
    fun r_symbol (session, r_string) = let
	val m = UnpickleUtil.mkMap ()
	fun s () = let
	    fun sym con = con (r_string ())
	    fun rs  #"a" = sym Symbol.varSymbol
	      | rs #"b" = sym Symbol.tycSymbol
	      | rs #"c" = sym Symbol.sigSymbol
	      | rs #"d" = sym Symbol.strSymbol
	      | rs #"e" = sym Symbol.fctSymbol
	      | rs #"f" = sym Symbol.fsigSymbol
	      | rs #"g" = sym Symbol.fixSymbol
	      | rs #"h" = sym Symbol.labSymbol
	      | rs #"i" = sym Symbol.tyvSymbol
	      | rs _ = raise UnpickleUtil.Format
	in
	    UnpickleUtil.share session m rs
	end
    in
	s
    end

    fun r_pid r_string () =
	PersStamps.fromBytes (Byte.stringToBytes (r_string ()))
end


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