Hello, <br><br>I just started with swift today, so excuse my lack of knowledge. I have the following code:<br><br>type messagefile;<br>type string;<br><br>app (messagefile t) parse(messagefile n) {<br> string v = @regexp("abcdefghi", "c(def)g","monkey"); <br>
echo @extractint(n) stdout=@filename(t);<br>}<br><br>app (messagefile t) greeting() {<br>echo "Hello, world!" stdout=@filename(t);<br>}<br><br>messagefile outfile <"hello.txt">;<br>messagefile input <"compile.txt">;<br>
<br>outfile = parse(input);<br><br><br><br>I get an error: Could not compile SwiftScript source: line 6:10: expecting a semicolon, found '='<br><br>I found that there are mappers that can be used to declare variables (namely files), but are these required?<br>
<br><br>