Cocomelon

From Esolang
Jump to navigation Jump to search

Cocomelon is an esolang made by User:Tommyaweosme.

Commands

Cocomelon is related to Shakespeare in that they both resemble works of art.

The start should be:

*cocomelon intro*

Then, you declare variables.

time to (sensible words before) [variable name] and [number code]

The number code is this:

0 walk
1 eat
2 drink
3 sleep
4 dream
5 play
10 run
20 jump
50 talk
100 swim

To save 27 to a variable named kitchen, you would use this line:

time to go to the kitchen and jump play eat

Then, as all cocomelon songs, you repeat the number code two times and then the line again.

The full 27 kitchen verse would be:

time to go to the kitchen and jump play eat
jump play eat
jump play eat
time to go to the kitchen and jump play eat

To do things with values together, you do this:

(sensible words before) [variable 1] and (sensible words before) [variable 2] with [function code]

Savepoints

The function codes are:

add friends
subtract daddy
multiply mommy
divide baby

So, in order to subtract kitchen from bed, you would use this:

go to the kitchen and go to bed with daddy

The result goes in the first variable, by the way.

In order to output something, just use quotes.

In order to output a variable, just use this:

and we (sensible words before) [variable]

For user input, use this:

"What do you think?"

And if you want to save a string or user input to a variable, use this.

(sensible words before) [variable]
[string]

For a Brainfuck brackets, use these two lines for the opening and closing

[ "Yeah! (sensible words before) [variable]"
] "Yeah!!"

Scripts

Hello World

*cocomelon intro*
"Hello, world!"

Cat

*cocomelon intro*
time to go outside and walk
walk
walk
time to go outside and walk
go outside
"What do you think?"
and we go outside

Truth machine

*cocomelon intro*
time to go to the kitchen and walk
walk
walk
time to go to the kitchen and walk
go to the kitchen
"What do you think?"
"Yeah! Go to the kitchen!"
and we go to the kitchen
"Yeah!!"

Kiwiscript

*cocomelon intro*
"kiwi"

A+B problem

*cocomelon intro*
time to go to the kitchen and walk
walk
walk
time to go to the kitchen and walk
time to go outside and walk
walk
walk
time to go outside
go to the kitchen
"What do you think?"
go outside
"What do you think?"
go outside and go to the kitchen with friends
and we go outside