Skip to content

Commit

Permalink
Merge branch 'fix-make-test' of https://github.com/practicalswift/streem
Browse files Browse the repository at this point in the history
 into practicalswift-fix-make-test
  • Loading branch information
matz committed Dec 19, 2014
2 parents a63a29f + d79ad9f commit 83b8456
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ all : $(TARGET)
.PHONY : all

test : all
streem example.stm
$(TARGET) < example.strm
.PHONY : test

y.tab.c : parse.y
Expand Down
14 changes: 14 additions & 0 deletions src/example.strm
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
seq(100) | {|x|
if x % 15 == 0 {
"FizzBuzz"
}
else if x % 3 == 0 {
"Fizz"
}
else if x % 5 == 0 {
"Buzz"
}
else {
x
}
} | STDOUT

0 comments on commit 83b8456

Please sign in to comment.