Buttons

From Esolang
Jump to navigation Jump to search
This is still a work in progress. It may be changed in the future.

Buttons is a 2D esolang created by User:AnotherUser05.

Syntax

This esolang uses ASCII art of buttons, like this:

[_]
|||

And a pushed button looks like this:

‎‎
[_]

A button needs to be pushed in order to work. The symbol replacing the _ is the command. Buttons are placed next to each other.

  • _ - Nothing.
  • + - Increase the accumulator.
  • - - Decrease the accumulator.
  • ! - If the accumulator is 0, then toggle the next button.
  • * - Toggle the next button.
  • & - Skip the next button.
  • : - Get a 1 or a 0 from the user, if it's a 1, then toggle the next button.
  • ; - Set the accummulator to the user's input.
  • . - Output the accumulator as an ASCII character.
  • , - Output the accumulator.
  • > - Jump to the previous <.
  • { - Jump to the next }.
  • = - Set the accumulator to 0.
  • x - Terminate the program.

Examples

Truth Machine

    [{]         
[:] ||| [,] [x] [}] [+] [<] [,] [>]

Cat Programs

    [+]
[:] ||| [,] [x]
‎
[;] [,] [x]
‎
[<] [;] [,] [>]