[Swift-user] trouble with tutorial
Hodgess, Erin
HodgessE at uhd.edu
Tue Jun 16 16:39:01 CDT 2009
Hi all!
This swift procedure doesn't seem to like the print statement(?)
[erin at communicado swift1]$ swift -tc.file tc.data fold9.swift
Could not start execution.
Compile error in procedure invocation at line 21: Procedure print is not declared.
[erin at communicado swift1]$ cat fold9.swift
type counterfile;
(counterfile t) echo(string m) {
app {
echo m stdout=@filename(t);
}
}
(counterfile t) countstep(counterfile i) {
app {
wcl @filename(i) @filename(t);
}
}
counterfile a[] <simple_mapper;prefix="foldout">;
a[0] = echo("793578934574893");
iterate v {
a[v+1] = countstep(a[v]);
print("extract int value ", at extractint(a[v+1]));
} until (@extractint(a[v+1]) <= 1);
[erin at communicado swift1]$ cat tc.data
#NOTE WELL: fields in this file must be separated by tabs, not spaces
# and there must be no trailing whitespace at the end of each line.
#
# sitename app pathname (ignored) (ignored) profiles
localhost echo /bin/echo INSTALLED INTEL32::LINUX null
teraport echo /bin/echo INSTALLED INTEL32::LINUX null
localhost translate /usr/bin/tr INSTALLED INTEL32::LINUX null
localhost R /home/erin/R-2.9.0/bin/R INSTALLED INTEL32::LINUX null
localhost wc /usr/bin/wc INSTALLED INTEL32::LINUX null
localhost convert /usr/bin/convert INSTALLED INTEL32::LINUX null
localhost wcl /home/erin/swift1 INSTALLED INTEL32::LINUX null
Erin M. Hodgess, PhD
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: hodgesse at uhd.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/swift-user/attachments/20090616/bccdfafc/attachment.html>
More information about the Swift-user
mailing list