[Swift-commit] r4147 - in branches/release-0.92: etc examples

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Sat Feb 26 15:43:39 CST 2011


Author: davidk
Date: 2011-02-26 15:43:39 -0600 (Sat, 26 Feb 2011)
New Revision: 4147

Removed:
   branches/release-0.92/examples/array_iteration.swift
   branches/release-0.92/examples/arraymapper.swift
   branches/release-0.92/examples/diamond.dtm
   branches/release-0.92/examples/file_counter.dtm
   branches/release-0.92/examples/helloworld.dtm
   branches/release-0.92/examples/helloworld_named.dtm
   branches/release-0.92/examples/q8.swift
   branches/release-0.92/examples/range.dtm
Modified:
   branches/release-0.92/etc/tc.data
Log:
Verified that all the tutorial scripts will run in 0.92. Added 'wc' to default tc.data which is used by one of the tutorial examples.
Removed some of the older scripts which are not mentioned in the tutorial and also no longer work.


Modified: branches/release-0.92/etc/tc.data
===================================================================
--- branches/release-0.92/etc/tc.data	2011-02-26 01:23:53 UTC (rev 4146)
+++ branches/release-0.92/etc/tc.data	2011-02-26 21:43:39 UTC (rev 4147)
@@ -16,3 +16,4 @@
 localhost 	sort 		/bin/sort	INSTALLED	INTEL32::LINUX	null
 localhost 	paste 		/bin/paste	INSTALLED	INTEL32::LINUX	null
 localhost 	cp 		/bin/cp         INSTALLED	INTEL32::LINUX	null
+localhost	wc		/usr/bin/wc	INSTALLED	INTEL32::LINUX	null

Deleted: branches/release-0.92/examples/array_iteration.swift
===================================================================
--- branches/release-0.92/examples/array_iteration.swift	2011-02-26 01:23:53 UTC (rev 4146)
+++ branches/release-0.92/examples/array_iteration.swift	2011-02-26 21:43:39 UTC (rev 4147)
@@ -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);

Deleted: branches/release-0.92/examples/arraymapper.swift
===================================================================
--- branches/release-0.92/examples/arraymapper.swift	2011-02-26 01:23:53 UTC (rev 4146)
+++ branches/release-0.92/examples/arraymapper.swift	2011-02-26 21:43:39 UTC (rev 4147)
@@ -1,8 +0,0 @@
-type file {};
-
-file files[]<filesys_mapper;pattern="*">;
-
-foreach f in files {
-   print(f);
-}
-

Deleted: branches/release-0.92/examples/diamond.dtm
===================================================================
--- branches/release-0.92/examples/diamond.dtm	2011-02-26 01:23:53 UTC (rev 4146)
+++ branches/release-0.92/examples/diamond.dtm	2011-02-26 21:43:39 UTC (rev 4147)
@@ -1,33 +0,0 @@
-type file {};
-
-(file f) generate (float p1) {
-    app {
-		generate "-aTOP -T4" "-p" p1 "-o" @f;
-    }
-}
-
-(file f2) process (file f1, string name, float p2) {
-    app {
-		process "-a" name "-T4" "-p" p2 "-i" @f1 "-o" @f2;
-    }
-}
-
-(file f3) combine (file f1, file f2) {
-    app {
-		combine "-aBOTTOM -T4" "-i" @f1 @f2 "-o" @f3;
-    }
-}
-
-(file fd) diamond (float p1, float p2) {
-    file fa;
-    file fb; 
-	file fc;
-    
-    fa = generate(p1);
-    fb = process(fa, "LEFT", p2);
-    fc = process(fa, "RIGHT", p2);
-    fd = combine(fb, fc);
-}
-
-file final<"FINAL">;
-final = diamond(1, 100);

Deleted: branches/release-0.92/examples/file_counter.dtm
===================================================================
--- branches/release-0.92/examples/file_counter.dtm	2011-02-26 01:23:53 UTC (rev 4146)
+++ branches/release-0.92/examples/file_counter.dtm	2011-02-26 21:43:39 UTC (rev 4147)
@@ -1,20 +0,0 @@
-// a two-step workflow that essentially does 
-// ls "/bin" | wc
-
-type file {}
-
-(file f) ls (string s) {
-    app {
-        ls s stdout=@filename(f);
-    }
-}
-
-(file c) wc (file f) {
-    app {
-        wc stdin=@filename(f) stdout=@filename(c);
-    }
-}
-
-file list, count;
-list = ls("/bin");
-count = wc(list);

Deleted: branches/release-0.92/examples/helloworld.dtm
===================================================================
--- branches/release-0.92/examples/helloworld.dtm	2011-02-26 01:23:53 UTC (rev 4146)
+++ branches/release-0.92/examples/helloworld.dtm	2011-02-26 21:43:39 UTC (rev 4147)
@@ -1,8 +0,0 @@
-type file {}						//define a type for file
-(file t) echo (string s) { 			//procedure declaration
-    app {
-        echo s stdout=@filename(t);	//redirect stdout to a file
-    }
-}
-
-file hw = echo("hello world");		//procedure call

Deleted: branches/release-0.92/examples/helloworld_named.dtm
===================================================================
--- branches/release-0.92/examples/helloworld_named.dtm	2011-02-26 01:23:53 UTC (rev 4146)
+++ branches/release-0.92/examples/helloworld_named.dtm	2011-02-26 21:43:39 UTC (rev 4147)
@@ -1,9 +0,0 @@
-type file {}						//define a type for file
-(file t) echo (string s) { 			//procedure declaration
-    app {
-        echo s stdout=@filename(t);	//redirect stdout to a file
-    }
-}
-
-file hw<"helloworld.txt">;		//name the output file
-hw = echo("hello world");		//procedure call

Deleted: branches/release-0.92/examples/q8.swift
===================================================================
--- branches/release-0.92/examples/q8.swift	2011-02-26 01:23:53 UTC (rev 4146)
+++ branches/release-0.92/examples/q8.swift	2011-02-26 21:43:39 UTC (rev 4147)
@@ -1,14 +0,0 @@
-
-type file {} 
-
-(file t) echo (string s) {   
-    app {
-        echo s stdout=@filename(t);
-    }
-}
-
-file inputFiles[] <filesys_mapper;pattern="*">;
-
-file o <"foo.out">;
-o = echo(@filenames(inputFiles));
-

Deleted: branches/release-0.92/examples/range.dtm
===================================================================
--- branches/release-0.92/examples/range.dtm	2011-02-26 01:23:53 UTC (rev 4146)
+++ branches/release-0.92/examples/range.dtm	2011-02-26 21:43:39 UTC (rev 4147)
@@ -1,5 +0,0 @@
-int nums[] = [0:20:2];  // generate a list 0, 2, 4, 6, 8 ...
-
-foreach num in nums {
-	print(num);
-}




More information about the Swift-commit mailing list