1066
1066 is a functional esolang by User:PythonshellDebugwindow invented in late 2020.
Overview
1066 is a functional esolang based on combinational logic in which every function is pure. Its source uses exclusively CJK characters.
Main function
The character 冖 represents the main function; it is not special in any way, except for the fact that it is run at the start of the program, i.e. it is the program's entry point. If the main function takes N arguments, then the program will read N bits from STDIN (big-endian); if the program halts, the return value of the main function will be left-padded with zeros and printed to STDOUT (again, big-endian).
Commands
"CJK character" means any character in the Unicode CJK Unified Ideographs block. Commands are listed from highest to lowest precedence. All identifiers must be unique.
Command | Meaning |
---|---|
x凹y | Do y iff x is not false |
九x丫 | Begin a function named x (x must be a sequence of non-command CJK characters) |
兄x九y丫 | Begin a function named y which takes x as an argument (x and y must be sequences of non-command CJK characters); any amount of 兄xs can be used |
乞 | End a function |
也x | Call the function named x (x must be a sequence of non-command CJK characters) |
兄x也y | Call the function named x with y as an argument (x must be a sequence of non-command CJK characters); any amount of 兄xs can be used |
x儳y | Set the variable named x to y (x must be a sequence of non-command CJK characters) |
x习y | Evaluates to |
x乡y | Evaluates to |
x乢 | Evaluates to |
乣 | Evaluates to (false) |
Examples
Copy a bit of input to STDOUT
兄乙九冖丫乙乞
Negate a bit of input
兄乙九冖丫乙乢乞