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.

RAT

From Esolang
Jump to navigation Jump to search
Not to be confused with rat.

RAT is a minimalist esoteric programming language made by User:Dragoneater67 in 2026. It was inspired by the / and \ instructions from GolferNightmare and Эзотерикалық мысық respectively.

Overview

The program is a sequence of instructions executed left-to-right in an implicit infinite loop. There is an infinite tape of bits initialized to all 0s. And the active bit initially set to 1.

RAT instruction table
Instruction Description
> If active is 1, flip the bit at the tape head and move the tape head right.
< If active is 1, move tape head left.
| Toggle active if the bit at the tape head is 1.

Reversibility

RAT is reversible since there is an inverse for each instruction.

Evil RAT instruction table
Instruction Description
> If active is 1, move the tape head left and flip the bit at the tape head.
< If active is 1, move tape head right.
| Toggle active if the bit at the tape head is 1.

Examples

Looping counter

>

External resources