We are currently working on new rules that expand the scope of this website to allow more content, and are looking for feedback! See Esolanging:2026 topicality proposal to view and give feedback on the current draft.

Draft:Editing Main Page

From Esolanging
Jump to navigationJump to search

Editing Main Page is an esolang based on an infinite chain of copies of the same program, whose execution paths are affected by the one that comes before it.

Specification

The only state in each copy of the program is its instruction pointer and a single bit; however, each program has control over the next one in the chain. Every program is initialized with the instruction pointer at the first instruction and the bit at 0.

  • F - Flips the program's bit.
  • f - Flips the next program's bit.
  • s - Runs one step of the next program.
  • ?A:B; - Runs A if the program's bit is 1, otherwise runs B.
    • For the purposes of step-counting; ? takes one step to jump to the start of either A or B, : takes one step to jump to the instruction after ;, and ; takes one step and does nothing.

All programs run in an implicit infinite loop; when the instruction pointer reaches the end of the program, it wraps back around to the beginning of the program.