summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorKathy Gray2013-12-03 17:45:53 +0000
committerKathy Gray2013-12-03 17:45:53 +0000
commita740278c7d7aa64e3fade12301108f0e91cd8ee9 (patch)
treeb57ac1d6835fcd06c8e0c7ec677a61b6746a50c8 /src/test
parent362fcca9780c00d23733e1c9b4b3470455fb5ad7 (diff)
Syntax changes per discussion with Peter, as well as L2.ott document clean up.
Could not at this time return lists to [| |] from [|| ||] as the parser cannot distinguish a cast with enum’s syntactic sugar from the start of a parenthesised list (i.e. ( [|3|] ) And there are still conflicts with moving enums to [3], so those changes can’t be pushed in with current parser technology.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test1.sail4
-rw-r--r--src/test/test3.sail4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/test/test1.sail b/src/test/test1.sail
index 128a4a99..5c29f258 100644
--- a/src/test/test1.sail
+++ b/src/test/test1.sail
@@ -2,8 +2,8 @@ default Nat 'i
default Order 'o
default bool b
default forall 'a. list<'a> b
-val forall 'a, 'b . ('a * 'b) -> 'b pure snd
-val forall Type 'i, 'b. ('i * 'b) -> 'i pure fst
+val forall 'a, 'b . ('a * 'b) -> 'b effect pure snd
+val forall Type 'i, 'b. ('i * 'b) -> 'i effect pure fst
typedef int_list [name = "il"] = list<nat>
typedef reco = const struct forall 'i, 'a, 'b. { 'a['i] v; 'b w; }
typedef maybe = const union forall 'a. { Nne; 'a Sme; }
diff --git a/src/test/test3.sail b/src/test/test3.sail
index e77e1b71..89c710bc 100644
--- a/src/test/test3.sail
+++ b/src/test/test3.sail
@@ -7,8 +7,8 @@ val nat -> nat effect { wmem , rmem } MEM_GPU
val ( nat * nat ) -> nat effect { wmem , rmem } MEM_SIZE
(* extern functions *)
-val extern ( nat * nat ) -> nat pure add = "add"
-val extern ( nat * nat ) -> nat pure (deinfix + ) = "add_infix" (* infix plus *)
+val extern ( nat * nat ) -> nat effect pure add = "add"
+val extern ( nat * nat ) -> nat effect pure (deinfix + ) = "add_infix" (* infix plus *)
function nat (deinfix * ) ( (nat) x, (nat) y ) = 42