Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions spwn/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM rust:1.59

RUN git clone https://github.com/Spu7Nix/SPWN-language.git

COPY fizzbuzz.spwn test/fizzbuzz.spwn
RUN cargo run build test/fizzbuzz.spwn -l
8 changes: 8 additions & 0 deletions spwn/fizzbuzz.spwn
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
for i in 1..101 {
match 0 {
==(i % 15): $.print("FizzBuzz"),
==(i % 3): $.print("Fizz"),
==(i % 5): $.print("Buzz"),
else: $.print(i),
}
}