From 57faf504dce1046f1936b3ce8fdf135d74ed0cd5 Mon Sep 17 00:00:00 2001 From: practicalswift Date: Tue, 16 Dec 2014 15:07:25 +0100 Subject: [PATCH 1/2] Fix "make test". Add Streem example file. --- src/Makefile | 2 +- src/example.streem | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 src/example.streem diff --git a/src/Makefile b/src/Makefile index bc48768..4c2f2ae 100644 --- a/src/Makefile +++ b/src/Makefile @@ -7,7 +7,7 @@ all : $(TARGET) .PHONY : all test : all - streem example.stm + $(TARGET) < example.streem .PHONY : test y.tab.c : parse.y diff --git a/src/example.streem b/src/example.streem new file mode 100644 index 0000000..2b9e25f --- /dev/null +++ b/src/example.streem @@ -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 From d79ad9f32964292f12f98ec29e4093747b3d0d9b Mon Sep 17 00:00:00 2001 From: practicalswift Date: Wed, 17 Dec 2014 14:17:58 +0100 Subject: [PATCH 2/2] Change file extension to .strm in light of decision in issue #24. --- src/Makefile | 2 +- src/{example.streem => example.strm} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename src/{example.streem => example.strm} (100%) diff --git a/src/Makefile b/src/Makefile index 4c2f2ae..e7d88a5 100644 --- a/src/Makefile +++ b/src/Makefile @@ -7,7 +7,7 @@ all : $(TARGET) .PHONY : all test : all - $(TARGET) < example.streem + $(TARGET) < example.strm .PHONY : test y.tab.c : parse.y diff --git a/src/example.streem b/src/example.strm similarity index 100% rename from src/example.streem rename to src/example.strm