1066

From Esolang
Jump to navigation Jump to search

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

In this document, "CJK character" is hereby defined to mean any character in the Unicode CJK Unified Ideographs block. Commands are listed from highest to lowest precedence. All identifiers must be unique.

Command Meaning
xy Do y iff x is not false
x Begin a function named x (x must be a sequence of non-command CJK characters)
xy 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)
xy 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
xy Set the variable named x to y (x must be a sequence of non-command CJK characters)
xy Evaluates to
xy Evaluates to
x Evaluates to
Evaluates to (false)

Examples

Copy a bit of input to STDOUT

兄乙九冖丫乙乞

Negate a bit of input

兄乙九冖丫乙乢乞