BigFish

From Esolang
Jump to navigation Jump to search

BigFish is an esolang made by User:Yes that is based off of Deadfish.

Commands

Command Effect
i[register] Increment the specified [register].
d[register] Decrement the specified [register].
s[register] Square the specified [register].
o[register] Output the specified [register].
new Create a new register, amenable to the next available index.
loop[repetitions]
{
}
Loop the code inbetween { and } the specified [repetitions] number of times.

There are no registers when the program is initially started. The registers are referenced with positive integer indices starting with the value one (1). By creating a new register, the next available subscript is assigned for its designation.

Examples

Make 10 registers

loop 10
{
new
}

Make 3 registers and set them all to 10

new
new
new
loop 10
{
i 1
}
loop 10
{
i 2
}
loop 10
{
i 3
}

Print the numbers 1 to 100 using a nested loop.

new
i 1
loop 10
{
loop 10
{
o 1
i 1
}
}

Print the numbers 1 to 100 using a loop.

new
loop 100
{
i 1
o 1
}

Interpreter

  • Common Lisp implementation of the BigFish programming language.