SETANDCOUNT

From Esolang
Jump to navigation Jump to search
This article is not detailed enough and needs to be expanded. Please help us by adding some more information.

Introduction & Syntax

SETANDCOUNT (SAC for short) is a language for storing in an ordered list.There is SAC syntax:

  • Numbers 1-8:Add 1 to the first n (input number) items in the list. If the item added to the list is less than 0, add the opposite number of items to the list before execution. If the item added to the list is equal to 0, stop running.
  • Number 0:Jump to the position item of the number following 0 and set this item to the opposite of the second number following 0.
  • Number 9:If the list does not shrink before the instruction, the code jumps to the number represented by the number between the 9 and the first 0 after the 9.

There is no IO in this language, but you can just stuff one yourself. I don't think the operation when the item is equal to 0 is really useful, so I may update its usage later.


Good Luck.