[Swift-commit] r3451 - branches/tests-01/examples

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Wed Jul 21 16:22:39 CDT 2010


Author: wozniak
Date: 2010-07-21 16:22:39 -0500 (Wed, 21 Jul 2010)
New Revision: 3451

Added:
   branches/tests-01/examples/array_index.swift
   branches/tests-01/examples/array_iteration.swift
   branches/tests-01/examples/array_wildcard.swift
   branches/tests-01/examples/arraymapper.swift
   branches/tests-01/examples/default.swift
Removed:
   branches/tests-01/examples/array_index.dtm
   branches/tests-01/examples/array_iteration.dtm
   branches/tests-01/examples/array_wildcard.dtm
   branches/tests-01/examples/arraymapper.dtm
   branches/tests-01/examples/default.dtm
Log:
Move *.dtm -> *.swift


Deleted: branches/tests-01/examples/array_index.dtm
===================================================================
--- branches/tests-01/examples/array_index.dtm	2010-07-21 21:22:09 UTC (rev 3450)
+++ branches/tests-01/examples/array_index.dtm	2010-07-21 21:22:39 UTC (rev 3451)
@@ -1,13 +0,0 @@
-type file {}
-
-
-(file t) echo_array (string s[]) {
-    app {
-        echo s[0] s[1] s[2] stdout=@filename(t);
-    }
-}
-
-string greetings[] = ["how","are","you"];
-file hw = echo_array(greetings);
-
-

Copied: branches/tests-01/examples/array_index.swift (from rev 3445, branches/tests-01/examples/array_index.dtm)
===================================================================
--- branches/tests-01/examples/array_index.swift	                        (rev 0)
+++ branches/tests-01/examples/array_index.swift	2010-07-21 21:22:39 UTC (rev 3451)
@@ -0,0 +1,13 @@
+type file {}
+
+
+(file t) echo_array (string s[]) {
+    app {
+        echo s[0] s[1] s[2] stdout=@filename(t);
+    }
+}
+
+string greetings[] = ["how","are","you"];
+file hw = echo_array(greetings);
+
+

Deleted: branches/tests-01/examples/array_iteration.dtm
===================================================================
--- branches/tests-01/examples/array_iteration.dtm	2010-07-21 21:22:09 UTC (rev 3450)
+++ branches/tests-01/examples/array_iteration.dtm	2010-07-21 21:22:39 UTC (rev 3451)
@@ -1,17 +0,0 @@
-type file {}
-
-(file f) echo (string s) {
-    app {
-        echo s stdout=@filename(f);
-    }
-}
-
-(file fa[]) echo_batch (string sa[]) {
-    foreach string s, i in sa {
-        fa[i] = echo(s);
-    }
-}
-
-string sa[] = ["hello","hi there","how are you"];
-file fa[];
-fa = echo_batch(sa);

Copied: branches/tests-01/examples/array_iteration.swift (from rev 3445, branches/tests-01/examples/array_iteration.dtm)
===================================================================
--- branches/tests-01/examples/array_iteration.swift	                        (rev 0)
+++ branches/tests-01/examples/array_iteration.swift	2010-07-21 21:22:39 UTC (rev 3451)
@@ -0,0 +1,17 @@
+type file {}
+
+(file f) echo (string s) {
+    app {
+        echo s stdout=@filename(f);
+    }
+}
+
+(file fa[]) echo_batch (string sa[]) {
+    foreach string s, i in sa {
+        fa[i] = echo(s);
+    }
+}
+
+string sa[] = ["hello","hi there","how are you"];
+file fa[];
+fa = echo_batch(sa);

Deleted: branches/tests-01/examples/array_wildcard.dtm
===================================================================
--- branches/tests-01/examples/array_wildcard.dtm	2010-07-21 21:22:09 UTC (rev 3450)
+++ branches/tests-01/examples/array_wildcard.dtm	2010-07-21 21:22:39 UTC (rev 3451)
@@ -1,13 +0,0 @@
-type file {}
-
-
-(file t) echo_wildcard (string s[]) {
-    app {
-        echo s[*] stdout=@filename(t);
-    }
-}
-
-string greetings[] = ["how","are","you"];
-file hw = echo_wildcard(greetings);	
-
-

Copied: branches/tests-01/examples/array_wildcard.swift (from rev 3445, branches/tests-01/examples/array_wildcard.dtm)
===================================================================
--- branches/tests-01/examples/array_wildcard.swift	                        (rev 0)
+++ branches/tests-01/examples/array_wildcard.swift	2010-07-21 21:22:39 UTC (rev 3451)
@@ -0,0 +1,13 @@
+type file {}
+
+
+(file t) echo_wildcard (string s[]) {
+    app {
+        echo s[*] stdout=@filename(t);
+    }
+}
+
+string greetings[] = ["how","are","you"];
+file hw = echo_wildcard(greetings);	
+
+

Deleted: branches/tests-01/examples/arraymapper.dtm
===================================================================
--- branches/tests-01/examples/arraymapper.dtm	2010-07-21 21:22:09 UTC (rev 3450)
+++ branches/tests-01/examples/arraymapper.dtm	2010-07-21 21:22:39 UTC (rev 3451)
@@ -1,8 +0,0 @@
-type file {};
-
-file files[]<filesys_mapper;pattern="*">;
-
-foreach f in files {
-   print(f);
-}
-

Copied: branches/tests-01/examples/arraymapper.swift (from rev 3445, branches/tests-01/examples/arraymapper.dtm)
===================================================================
--- branches/tests-01/examples/arraymapper.swift	                        (rev 0)
+++ branches/tests-01/examples/arraymapper.swift	2010-07-21 21:22:39 UTC (rev 3451)
@@ -0,0 +1,8 @@
+type file {};
+
+file files[]<filesys_mapper;pattern="*">;
+
+foreach f in files {
+   print(f);
+}
+

Deleted: branches/tests-01/examples/default.dtm
===================================================================
--- branches/tests-01/examples/default.dtm	2010-07-21 21:22:09 UTC (rev 3450)
+++ branches/tests-01/examples/default.dtm	2010-07-21 21:22:39 UTC (rev 3451)
@@ -1,11 +0,0 @@
-type file {}
-
-(file t) echo (string s="hello world") { //s has a default value
-    app {
-        echo s stdout=@filename(t);		//redirect stdout to a file
-    }
-}
-
-file hw1, hw2;
-hw1 = echo();		// procedure call using the default value
-hw2 = echo(s="hello again"); // using a different value

Copied: branches/tests-01/examples/default.swift (from rev 3445, branches/tests-01/examples/default.dtm)
===================================================================
--- branches/tests-01/examples/default.swift	                        (rev 0)
+++ branches/tests-01/examples/default.swift	2010-07-21 21:22:39 UTC (rev 3451)
@@ -0,0 +1,11 @@
+type file {}
+
+(file t) echo (string s="hello world") { //s has a default value
+    app {
+        echo s stdout=@filename(t);		//redirect stdout to a file
+    }
+}
+
+file hw1, hw2;
+hw1 = echo();		// procedure call using the default value
+hw2 = echo(s="hello again"); // using a different value




More information about the Swift-commit mailing list