Binary

From Esolang
Jump to navigation Jump to search
Not to be confused with Bynary.

Credits

This language is made by User:DimensionDoors. It is his first one. Yay!

Language extended by User:Europe2048, you can still extend more if you want!

Syntax

The only characters are 0 and 1. (obviously!) Any other characters are ignored and can be used as comments, meaning you may split your code into bytes if you want. The first eight characters determine the function.

00000000 print for strings
00000001 initialize a variable (variable (no prefix and suffix) then value)
00000010 convert a variable (no prefix or suffix) from a number to a string, and vice versa
00000011 print for variables (no prefix and suffix)
00000100 [ in bf
00000101 if
00000110 equal to...
00000111 not equal to...
00001000 greater than...
00001001 less than...
00001010 greater or equal to...
00001011 less than or equal to...
00001100 ] in bf
00001101 else if
00001110 ask user for input, then store it in variable
00001111 number prefix
00010000 like : in python
00010101 else
00011111 repeat ___ times
00100000 number prefix
00100001 string prefix
00100010 number suffix
00100011 string suffix
00100101 condition suffix
00110000 define a function (function name, parameters, then commands)
00110001 function definition suffix
01000000 addition
01000001 subtraction
01000010 multiplication
01000011 division
01000100 exponentiation
01000101 random number between two given numbers
01000110 square root
01000111 modulo
11000000-11001111 reserved for variables
11010000-11011111 reserved for parameters
11100000-11111110 reserved for custom functions
11111111 end the program (optional)

Variables are words (in ascii or just a number) that hold a value (you probably knew that). Numbers are stored as 32-bit floats. Strings are stored as UTF-16.

Ideas

None yet!

Cat

00001110 11000000 input one character to first variable
00000011 11000000 print first variable

External resources