SCM Repository
[diderot] Diff of /trunk/src/compiler/simplify/simple.sml
Diff of /trunk/src/compiler/simplify/simple.sml
Parent Directory
|
Revision Log
|
Patch
3 |
* COPYRIGHT (c) 2010 The Diderot Project (http://diderot-language.cs.uchicago.edu) |
* COPYRIGHT (c) 2010 The Diderot Project (http://diderot-language.cs.uchicago.edu) |
4 |
* All rights reserved. |
* All rights reserved. |
5 |
* |
* |
6 |
* A simplified AST representation of a Diderot program |
* A simplified AST representation of a Diderot program. This representation has the property |
7 |
|
* that the arguments to ifs, operators, etc. are variables and that the rhs of assignments |
8 |
|
* consist of a single operation. It is not, however, a single-assignment representation. |
9 |
*) |
*) |
10 |
|
|
11 |
structure Simple = |
structure Simple = |
18 |
datatype program = Program of { |
datatype program = Program of { |
19 |
globals : var list, |
globals : var list, |
20 |
globalInit : block, |
globalInit : block, |
21 |
actors : actor list |
strands : strand list |
22 |
(* initialization *) |
(* initialization *) |
23 |
} |
} |
24 |
|
|
25 |
and actor = Actor of { |
and strand = Strand of { |
26 |
name : Atom.atom, |
name : Atom.atom, |
27 |
params : var list, |
params : var list, |
28 |
state : var list, |
state : var list, |
|
Legend:
Removed from v.510 |
|
changed lines |
|
Added in v.511 |
|
|