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

SCM Repository

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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 567 - (view) (download)

1 : jhr 567 (* exit-kind.sml
2 :     *
3 :     * COPYRIGHT (c) 2011 The Diderot Project (http://diderot-language.cs.uchicago.edu)
4 :     * All rights reserved.
5 :     *
6 :     * The CFG representation has different kinds of exits, depending on the
7 :     * context and operation.
8 :     *)
9 :    
10 :     structure ExitKind =
11 :     struct
12 :    
13 :     datatype kind
14 :     = RETURN (* return from function/method *)
15 :     | ACTIVE (* normal return from update method *)
16 :     | STABILIZE (* stabilize in update method *)
17 :     | DIE (* die in update method *)
18 :    
19 :     fun toString RETURN = "RETURN"
20 :     | toString ACTIVE = "ACTIVE"
21 :     | toString STABILIZE = "STABILIZE"
22 :     | toString DIE = "DIE"
23 :    
24 :     end

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