esolang

Grounded

Every line is an hour of being grounded, and at 9:30PM you go to bed.

Cinnamony, 2023 · Turing complete: no · ●●○ moderate · esolangs.org

Tested with 2 known programs · Test method

Run it

Expected: HELLOWORLD

The idea

Cinnamony made Grounded in 2023, after a time of being grounded from the computer. The program is the grounding. It starts on Friday at 7:30AM, every command takes an hour, and at 9:30PM the only thing left to do is sleep. Three days of grounding make a program of exactly 45 commands, 14 and a sleep for each day. Bothering your parents adds a day, so 15 more.

Read the story

What you do in those hours drives a small tape machine. Making plushie movies counts up, uninstalling an app counts down, watching cartoons moves along the tape and making a book prints a letter.

The machine

CommandDoes
make plushie movieAdd 1 to the cell
make plushie movie seriesAdd 10
uninstall app on tabletTake 1 away
daydreamDouble the cell
watch steven universe watch adventure timeMove right or left
make bookPrint the cell as a letter, 1 is A and 26 is Z
readRead a letter into the cell
waitNothing, at most twice in a row
tech labNothing, and only on Saturday at 12:30PM
bother parentsOne more day of grounding
sleepGo to bed at 9:30PM and wake at 7:30AM

A // starts a comment. There are no loops and no jumps, so a program runs once from top to bottom and the calendar fixes its length. A sleep at any other hour, or a program that stops while still grounded, is an error. The specification leaves daydream open, and this implementation doubles the cell.

Example

The Hello world.

The Hello world. Each comment gives the time after its line. The bother parents on Sunday night buys the Monday it needs for the last L and the D.

Five cells hold the letters. The third prints the O of HELLO on Saturday, then the O, R and L of WORLD, counting down from R to L across Sunday night.

The cat reads one letter on Friday morning and prints it at once. The rest of the grounding still has to be served, and it fills those three days with 39 daydreams.

Further

Also in Jokes

Write your own in Run Convert a program from Grounded

Implementation

JavaScript interpreter, source and command line

A JavaScript interpreter, used in the browser and on the command line. Id: grounded.

Command line

shib run grounded program.txt --input 'G'

The program is long; save it as program.txt first.

shib manual grounded

Source

Module
langs/wiki/ports.js
Interpreter
langs/wiki/grounded.js

Docs: Kernel instructions · The .shib format · Command line · Adding a language

Source esolangs.org (CC0) · Edit on esolangs.org