summaryrefslogtreecommitdiff
path: root/language/l2.ml
diff options
context:
space:
mode:
authorKathy Gray2014-02-18 15:44:38 +0000
committerKathy Gray2014-02-18 15:44:38 +0000
commit31cec8cf6de8f94c642a4700322e50a26e88e32d (patch)
treefefefde5005596c3d141c31ebe7fb67d1bd723f5 /language/l2.ml
parentfa39bbcf7529903edeb178bca80211386aa817ff (diff)
Adding explicit order to for loops
Diffstat (limited to 'language/l2.ml')
-rw-r--r--language/l2.ml22
1 files changed, 11 insertions, 11 deletions
diff --git a/language/l2.ml b/language/l2.ml
index 02b5276a..b01a25ac 100644
--- a/language/l2.ml
+++ b/language/l2.ml
@@ -73,12 +73,6 @@ base_effect =
type
-effect_aux = (* effect set, of kind Effects *)
- Effect_var of kid
- | Effect_set of (base_effect) list (* effect set *)
-
-
-type
order_aux = (* vector order specifications, of kind Order *)
Ord_var of kid (* variable *)
| Ord_inc (* increasing (little-endian) *)
@@ -86,19 +80,25 @@ order_aux = (* vector order specifications, of kind Order *)
type
+effect_aux = (* effect set, of kind Effects *)
+ Effect_var of kid
+ | Effect_set of (base_effect) list (* effect set *)
+
+
+type
id_aux = (* Identifier *)
Id of x
| DeIid of x (* remove infix status *)
type
-effect =
- Effect_aux of effect_aux * l
+order =
+ Ord_aux of order_aux * l
type
-order =
- Ord_aux of order_aux * l
+effect =
+ Effect_aux of effect_aux * l
type
@@ -266,7 +266,7 @@ and 'a exp_aux = (* Expression *)
| E_app_infix of 'a exp * id * 'a exp (* infix function application *)
| E_tuple of ('a exp) list (* tuple *)
| E_if of 'a exp * 'a exp * 'a exp (* conditional *)
- | E_for of id * 'a exp * 'a exp * 'a exp * 'a exp (* loop *)
+ | E_for of id * 'a exp * 'a exp * 'a exp * order * 'a exp (* loop *)
| E_vector of ('a exp) list (* vector (indexed from 0) *)
| E_vector_indexed of ((int * 'a exp)) list (* vector (indexed consecutively) *)
| E_vector_access of 'a exp * 'a exp (* vector access *)