Coem

reminder.coem

The code is annotated: hover to learn more!

 this is a reminder

to breathe?:
     in and out, and thus to
    knowmyself.

let me|myself|I be present
ifI am present:
    let me be breath.

Walkthrough

This coem begins with a comment, which begins with a † (dagger). The text in comments isn’t parsed by the interpreter, so you can write anything in them.

 this is a reminder

We define a function named breathe?. The question mark operator means matches can have zero or one of the previous token, so it can match either breath or breathe. The function takes no arguments, so nothing is written between the two em dashes.

to breathe?:

Another comment in the body of the function. These can be helpful to add in bits of unconstrained language, if you feel like it!

    in and out, and thus to

Here, the keyword know is an alias for print. When the code is run, this statement prints the value of the variable named myself in a comment to the side of the line, as demonstrated below. The dot ends the function block.

   knowmyself. † present

After this function block, we define a variable that matches me, myself, or I, and set it to the string value of “present”.

let me|myself|I be present

In an if statement, we ask if that variable, which we refer to as I, is equal to the string value of “present”. It is, so we call the function that we now call breath. The dot ends the if statement block.

ifI am present:
    let me be breath.