frg 1.0.0

Compiled programming language with frogs!
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
void(int) fizzbuzz = (index) {
    str output = ""
    if index % 3 == 0 {
        output = (output.to_owned() + "Fizz").leak()
    }
    if index % 5 == 0 {
        output = (output.to_owned() + "Buzz").leak()
    }
    if output == "" {
        output = (output.to_owned() + @str(index)).leak()
    }
    @println("{output}")
}

(1..=100).for_each((i) {
    fizzbuzz(i)
})