Topple

From Esolang
Jump to navigation Jump to search

Topple, created by H33T33, was developed using C.

Topple (conditionally) ignores whitespace, which means you can cram everything into one line. Good luck with that though.

Overview

Command Description Example Output
. "Admits” a given character
  • Does not ignore whitespace
a.b.c. None
@ Outputs all admitted characters and clears them a.b.c. @ abc
& Outputs all admitted characters without clearing them a.b.c. & abc
: Outputs and clears an admitted character at a given index
  • Does not ignore whitespace
a.b.c. 0: a
; Takes admitted character from a given index and copies it.
  • Does not ignore whitespace
a.b.c. 0;. @ abca
= Defines variables
  • Does not ignore whitespace
a=1 None
^ Calls variables
  • Does not ignore whitespace
a=1 a^. @ 1
! Takes user input !. @ Whatever the user inputs
? Compares two values and returns ‘1’ if the two are the same or ‘0’ if the two are not the same. The two values are then deleted. a.b.?. @ 0
# Returns a random number between 0 and 9 #. @ 0-9
< FOR Loop, loops based on a given amount (last admitted data, deleted upon use) 3.<a.@> aaa
( IF Statement, conditionally runs code based on a given character (last admitted data, deleted upon use) 1.(a.@) a
+ Increments an admitted character at a given index
  • Does not ignore whitespace
1.2.3. 0+@ 124
- Decrements an admitted character at a given index
  • Does not ignore whitespace
1.2.3. 0-@ 122
* Quits the program

Special Characters

Character Description
\ New Line (\n)

Topple is still in development. A file containing the source code will be provided in the near future, along with multiple examples of the syntax and how to use the language.