Gellybeans is a scripting language built primarily for Mathfinder, a Discord bot. Check out the MF wiki for more information.
Gellybeans supports:
- Integer math, interpolated strings, bools, arrays
- Variable assignment
- Dice expressions (1d20, 3d6)
- Conditionals
- For loops
- Functions
fizzbuzz = -> (count)
{
** i : 0..count : {
i % 3 == 0 && i % 5 == 0 ?? {
print("FizzBuzz");
} : i % 3 == 0 {
print("Fizz)";
} : i % 5 == 0 {
print("Buzz");
} : {
print(i);
}
}
}
Input (from Mathfinder)
Output