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

SCM Repository

[diderot] View of /branches/vis15/src/compiler/cfg-ir/global-var-kind.sml
ViewVC logotype

View of /branches/vis15/src/compiler/cfg-ir/global-var-kind.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3837 - (download) (annotate)
Mon May 9 16:38:09 2016 UTC (3 years, 2 months ago) by jhr
File size: 618 byte(s)
  Working on merge
(* global-var-kind.sml
 *
 * This code is part of the Diderot Project (http://diderot-language.cs.uchicago.edu)
 *
 * COPYRIGHT (c) 2015 The University of Chicago
 * All rights reserved.
 *)

structure GlobalVarKind : sig

    datatype t = ConstVar | InputVar | OutputVar | GlobalVar

    val toString : t -> string
    val same : t * t -> bool

  end = struct

    datatype t = ConstVar | InputVar | OutputVar | GlobalVar

    fun toString ConstVar = "const"
      | toString InputVar = "input"
      | toString OutputVar = "output"
      | toString GlobalVar = "global"

    fun same (k1 : t, k2) = (k1 = k2)

  end

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