[Swift-commit] r3337 - trunk/examples
noreply at svn.ci.uchicago.edu
noreply at svn.ci.uchicago.edu
Mon May 31 05:20:20 CDT 2010
Author: davidk
Date: 2010-05-31 05:20:20 -0500 (Mon, 31 May 2010)
New Revision: 3337
Modified:
trunk/examples/foreach.swift
trunk/examples/manyparam.swift
trunk/examples/parameter.swift
trunk/examples/regexp.swift
trunk/examples/types.swift
Log:
Corrections and updates to existing tutorial scripts
Modified: trunk/examples/foreach.swift
===================================================================
--- trunk/examples/foreach.swift 2010-05-31 09:57:16 UTC (rev 3336)
+++ trunk/examples/foreach.swift 2010-05-31 10:20:20 UTC (rev 3337)
@@ -13,7 +13,10 @@
foreach f in inputfiles {
- countfile c<regexp_mapper;source=@f,match="(.*)txt",transform="\1count">;
+ countfile c<regexp_mapper;
+ source=@f,
+ match="(.*)txt",
+ transform="\\1count">;
c = countwords(f);
}
Modified: trunk/examples/manyparam.swift
===================================================================
--- trunk/examples/manyparam.swift 2010-05-31 09:57:16 UTC (rev 3336)
+++ trunk/examples/manyparam.swift 2010-05-31 10:20:20 UTC (rev 3337)
@@ -1,4 +1,4 @@
-type messagefile {}
+type messagefile;
(messagefile t) greeting (string s) {
app {
Modified: trunk/examples/parameter.swift
===================================================================
--- trunk/examples/parameter.swift 2010-05-31 09:57:16 UTC (rev 3336)
+++ trunk/examples/parameter.swift 2010-05-31 10:20:20 UTC (rev 3337)
@@ -1,4 +1,4 @@
-type messagefile {}
+type messagefile;
(messagefile t) greeting (string s) {
app {
Modified: trunk/examples/regexp.swift
===================================================================
--- trunk/examples/regexp.swift 2010-05-31 09:57:16 UTC (rev 3336)
+++ trunk/examples/regexp.swift 2010-05-31 10:20:20 UTC (rev 3337)
@@ -9,7 +9,10 @@
messagefile inputfile <"q16.txt">;
-countfile c<regexp_mapper;source=@inputfile,match="(.*)txt",transform="\1count">;
+countfile c <regexp_mapper;
+ source=@inputfile,
+ match="(.*)txt",
+ transform="\\1count">;
c = countwords(inputfile);
Modified: trunk/examples/types.swift
===================================================================
--- trunk/examples/types.swift 2010-05-31 09:57:16 UTC (rev 3336)
+++ trunk/examples/types.swift 2010-05-31 10:20:20 UTC (rev 3337)
@@ -7,7 +7,7 @@
(messagefile t) greeting (details d) {
app {
- echo "Hello. Your names is" d.name "and you have eaten" d.pies "pies." stdout=@filename(t);
+ echo "Hello. Your name is" d.name "and you have eaten" d.pies "pies." stdout=@filename(t);
}
}
More information about the Swift-commit
mailing list