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 548 - (download) (annotate)
Tue Feb 29 16:38:11 2000 UTC (19 years, 5 months ago) by dbm
Original Path: sml/trunk/tests/bugs/tests/bug1354.1.sml
File size: 751 byte(s)
Initial revision
(* 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