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.

Sleepy

From Esolang
Jump to navigation Jump to search

Sleepy is a brainfuck based esoteric programming language created by User:Pineapple. It replaces brainfuck's standard single-character commands with varying counts of the letter "z", while adding a custom increment modifier.

Overview

Sleepy operates on a tape of memory cells with a cell pointer, similar to brainfuck. By default, the increment command adds 1 to the current cell, but this step size can be modified using the custom input command zzzzz.

Commands

Command Brainfuck Description
z > Move the pointer to the next cell.
zz < Move the pointer to the previous cell.
zzz + Add to the current cell's value (default 1, or custom step set by zzzzz).
zzzz - Subtract 1 from the current cell's value.
zzzzz N/A Prompt for user input and set that value as the addition step for zzz.
zzzzzz [ If the current cell is zero, jump forward to the matching zzzzzzz.
zzzzzzz ] If the current cell is non-zero, jump backward to the matching zzzzzz.
zzzzzzzz . Print the current cell's value as an ASCII character.

I/O

  • Input: zzzzz takes numeric input to define the step increment for zzz.
  • Output: zzzzzzzz prints the ASCII character representation of the active cell.

Example programs

Print ASCII character

Increments the current cell 65 times and prints 'A':

zzz zzz zzz zzz zzz zzz zzz zzz zzz zzz
zzz zzz zzz zzz zzz zzz zzz zzz zzz zzz
zzz zzz zzz zzz zzz zzz zzz zzz zzz zzz
zzz zzz zzz zzz zzz zzz zzz zzz zzz zzz
zzz zzz zzz zzz zzz zzz zzz zzz zzz zzz
zzz zzz zzz zzz zzz zzz zzz zzz zzz zzz
zzz zzz zzz zzz zzz
zzzzzzzz

Computational class

Turing-complete, as it directly maps to brainfuck commands.

External resources

  • No external resources yet.