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 /tests/trunk/bugs/tests.obsolete/bug1354.1.sml
ViewVC logotype

View of /tests/trunk/bugs/tests.obsolete/bug1354.1.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2460 - (download) (annotate)
Sat Apr 28 20:18:10 2007 UTC (12 years, 3 months ago) by gkuan
File size: 751 byte(s)
(* bug1354.1.sml *)

signature IR =
sig
    datatype irexp = EXP of int
end;

signature TYPE =
sig
    structure Ir : IR

    datatype ty = TY of int * Ir.irexp
end;

signature UCONSTRAINT =
sig
    structure Type : TYPE
    structure Ir   : IR
    sharing Ir = Type.Ir

    datatype uconstraint = OP of Type.ty * Ir.irexp
end;

signature CONTEXT = 
sig
    structure UC   : UCONSTRAINT
    structure Type : TYPE = UC.Type
    structure Ir   : IR   = UC.Ir

    datatype context = CONTEXT of (Type.ty * Ir.irexp * UC.uconstraint) list
end;

signature RESOLVE =
sig
    structure Context : CONTEXT
    structure Type    : TYPE        = Context.Type
    structure Ir      : IR          = Context.Ir
    structure UC      : UCONSTRAINT = Context.UC
end;

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