1231

From Esolang
Jump to navigation Jump to search

1231 is a joke programming language created by User:Earthrulerr in C++. You can access a 1231 editor here. 1231 consists of only numbers in its tags, besides printing text. The language is console based, code is inputted into the console and outputted into the console. Every statement must begin with 0 followed by the statement.

HOW TO USE


0 must be used at the start of each statement.
1 followed by '1' or '2', 1 for single word input, 2 to print multiple words to console.
10 prints a new line to console.
20 prints a space to console.
-0 text comment.
111 clears console/restart.
2 # # # + #
-2 # # # - #
4 # # # * #
-4 # # # / #
6 # # # ^ #
8 # input variable (1,2,3,4,5,6,7,8,9,10) = input. EX: 8 1 Hello sets variable 1 to "Hello". Single line only.
9 # prints value of variable (1,2,3,4,5,6,7,8,9,10) to console.

EXAMPLES


0 1 2 Hello, World! Output: Hello, World!

0 8 1 Hello, 0 8 2 World! 0 9 1 0 10 0 9 2 Output:
Hello,
World!
Sets variable 1 to "Hello," and variable 2 to "World!", then prints variable 1, creates new line, prints variable 2.

0 1 1 A 0 20 0 1 1 cool 0 20 0 1 1 number 0 20 0 1 1 is 0 20 0 4 5 3 Output: A cool number is 15