We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

Number-code

From Esolang
Jump to navigation Jump to search

Examples

This is a truth machine.

0 8 (9 10 1) 111 2 1111 3 4 2 0 11 3 4 4 6
111 2 1111 3 4 2 0 11 3 4 4 1 02 6 03 01

Syntax

Cmd Description
0 Sets current cell to 0.
1 Adds 1 to the current cell.
2 Next cell.
3 Previous cell.
4 Multiply cell value by next cell value.
5 Divide, same as multiply.
6 Coverts current cell value to ASCII and prints it.
7 Converts a value into a variable, the name is the integers after the 7.
8 Ask the user for input, if not an integer, it will print an Error, the output is put into the current cell.
9 User's output.
01 Ends program.
02 Repeats the value in-between 02 and 03
03 Ends 02 and repeats.
04 Current cell value.

If and conditionals

All conditionals must be enclosed in brackets.

If the conditional is true, it must skip to the next line.

Cmd Description
10 Is equal to
11 Is greater than or equal than
12 Is less than or equal than
13 Is True
14 Is False
100 Set all cell values to 0.
Example Example
Example Example
Example Example
Example Example
Example Example
Example Example
Example Example
Example Example
Example Example
Example Example
Example Example
Example Example
Example Example
Example Example

Errors

If no 01 in program:

You forgot to end the program, unless you want this to run forever.

If NaN, undefined, or null values are in the program:

Did you forget to check your code again? :)

If there are unknown characters:

Nice code, are you too used to symbols? Heh heh.

If 9 is used and 8 was never used:

Did you ask nicely?

If 6 is used and value is undefined:

I don't think blank is a proper piece of code.