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

SCM Repository

[diderot] View of /branches/pure-cfg/src/compiler/IL/exit-kind.sml
ViewVC logotype

View of /branches/pure-cfg/src/compiler/IL/exit-kind.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 567 - (download) (annotate)
Thu Feb 24 23:28:06 2011 UTC (8 years, 5 months ago) by jhr
File size: 632 byte(s)
  New file
(* exit-kind.sml
 *
 * COPYRIGHT (c) 2011 The Diderot Project (http://diderot-language.cs.uchicago.edu)
 * All rights reserved.
 *
 * The CFG representation has different kinds of exits, depending on the
 * context and operation.
 *)

structure ExitKind =
  struct

    datatype kind
      = RETURN			(* return from function/method *)
      | ACTIVE			(* normal return from update method *)
      | STABILIZE		(* stabilize in update method *)
      | DIE			(* die in update method *)

    fun toString RETURN = "RETURN"
      | toString ACTIVE = "ACTIVE"
      | toString STABILIZE = "STABILIZE"
      | toString DIE = "DIE"

  end

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