SCM Repository
View of /sml/trunk/src/compiler/ElabData/syntax/varcon.sml
Parent Directory
|
Revision Log
Revision 903 -
(download)
(annotate)
Mon Aug 20 19:34:06 2001 UTC (19 years, 6 months ago) by blume
File size: 1243 byte(s)
Mon Aug 20 19:34:06 2001 UTC (19 years, 6 months ago) by blume
File size: 1243 byte(s)
library debugprof.cm extracted
(* varcon.sml * * (C) 2001 Lucent Technologies, Bell Labs *) structure VarCon : VARCON = struct local structure A = Access structure T = Types structure S = Symbol structure SP = SymPath in datatype var = VALvar of (* ordinary variables *) {path : SP.path, typ : T.ty ref, access : A.access, info : II.ii} | OVLDvar of (* overloaded identifier *) {name : S.symbol, options: {indicator: T.ty, variant: var} list ref, scheme: T.tyfun} | ERRORvar type datacon = T.datacon datatype value = VAL of var | CON of datacon fun mkVALvar (id, acc) = VALvar{path = SP.SPATH [id], typ = ref T.UNDEFty, access = acc, info = II.Null} val bogusCON = T.DATACON{name=S.varSymbol "bogus", typ=T.WILDCARDty, rep=A.CONSTANT 0, const=true, lazyp=false, sign=A.CSIG(0,1)} val bogusEXN = T.DATACON{name=S.varSymbol "bogus", typ=CoreBasicTypes.exnTy, rep=A.CONSTANT 0, const=true, lazyp=false, sign=A.CNIL} end (* local *) end (* structure VarCon *)
root@smlnj-gforge.cs.uchicago.edu | ViewVC Help |
Powered by ViewVC 1.0.0 |