A simple interpreted toy language created as a programming challenge/exercise.
- Install Rust & Cargo
- Clone this repository
- type "cargo run --release"
- executable can be found in the target directory, and a source file can be passed as an argument to the executable
Current state of the "programming language" is still very volatile and evolving.
An implementation of FizzBuzz in GiffiScript.
import "io"; // needed for 'print()'
let idx = 0;
while idx < 100 {
idx = idx + 1;
if idx % 15 == 0 {
print("FizzBuzz");
}
else if idx % 3 == 0 {
print("Fizz");
}
else if idx % 5 == 0 {
print("Buzz");
}
else {
print(idx);
}
}