We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

Chaotic Quartet 2: Electric Boogaloo

From Esolang
Jump to navigation Jump to search

Quartet is an esolang by User:Cordership. It has 4 unbounded registers: a, b, c, and d.

Syntax

Command Definition
a plays the violin Increments a.
a stops playing the violin Decrements a.
b plays the violin Increments b.
b stops playing the violin Decrements b.
c plays the viola Increments c.
c stops playing the viola Decrements c.
d plays the cello Increments d.
d stops playing the cello Decrements d.
while register_name is on stage While register register_name is not equal to 0...
register_name exits the stage End while.
register_name grabs their instrument Set register register_name to the user's character input.
register_name puts down their instrument Set register register_name to the user's integer input.
register_name sings Print the value of register register_name as an integer with a trailing space.
register_name shouts Print the value of register register_name modulo 256 as an ASCII character.
register_name yells number Set the value of register register_name to a number.

Programs

Hello, World!

a yells 72
a shouts
a yells 101
a shouts
a yells 108
a shouts
a yells 108
a shouts
a yells 111
a shouts
a yells 44
a shouts
a yells 32
a shouts
a yells 87
a shouts
a yells 111
a shouts
a yells 114
a shouts
a yells 108
a shouts
a yells 100
a shouts
a yells 33
a shouts

Cat program

a grabs their instrument
while a is on stage:
    a shouts
    a grabs their instrument
a exits the stage

Truth-machine

a puts down their instrument
a sings
while a is on stage:
    a sings