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/trunk/compiler/ElabData/syntax/varcon.sig
ViewVC logotype

View of /sml/trunk/compiler/ElabData/syntax/varcon.sig

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4431 - (download) (as text) (annotate)
Tue Sep 19 20:09:13 2017 UTC (2 years, 9 months ago) by jhr
File size: 744 byte(s)
working on new primops
(* varcon.sig
 *
 * COPYRIGHT (c) 2017 The Fellowship of SML/NJ (http://www.smlnj.org)
 * All rights reserved.
 *)

signature VARCON = 
sig

  datatype var
    = VALvar of				(* ordinary variables *)
        {path : SymPath.path,
	 typ : Types.ty ref,
	 btvs : Types.tyvar list ref,
         access : Access.access,
         prim   : PrimopId.prim_id}
    | OVLDvar of			(* overloaded identifier *)
        {name : Symbol.symbol,
	 options: {indicator: Types.ty, variant: var} list,
	 scheme: Types.tyfun}
    | ERRORvar

  type datacon = Types.datacon

  datatype value
    = VAL of var
    | CON of datacon

  val mkVALvar : Symbol.symbol * Access.access ->  var

  val bogusCON : datacon
  val bogusEXN : datacon

end (* signature VARCON *)

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