Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] View of /trunk/src/ast/var.sml
ViewVC logotype

View of /trunk/src/ast/var.sml

Parent Directory Parent Directory | Revision Log Revision Log

Revision 72 - (download) (annotate)
Sat May 22 22:48:47 2010 UTC (12 years, 1 month ago) by jhr
File size: 441 byte(s)
  Working on typechecker
(* var.sml
 * COPYRIGHT (c) 2010 The Diderot Project (http://diderot.cs.uchicago.edu)
 * All rights reserved.

structure Var =

    datatype var = datatype AST.var

    datatype var_kind = datatype AST.var_kind

    fun typeOf (V{ty, ...}) = ty
    fun kindOf (V{kind, ...}) = kind

    fun new (name, kind, ty) = let
	  val id = Stamp.new()
	    V{name=Atom.toString name, id=id, kind=kind, ty=([], ty)}


ViewVC Help
Powered by ViewVC 1.0.0