Мне с тобою так повезло
Jump to navigation
Jump to search
Paradigm(s) | Functional |
---|---|
Designed by | User:Hakerh400 |
Appeared in | 2021 |
Computational class | Turing complete |
Major implementations | Interpreter |
File extension(s) | .txt |
Мне с тобою так повезло is a functional Turing-complete esoteric programming language invented by User:Hakerh400 in 2021.
Overview
This language operates on strings. Everything is a string, including functions. Each function can be stringified and each string can be executed.
Functions
.
- Get the current argument as a string#
- Get the current function as a string*abc|
- If stringa
starts with bit1
then callb
with the rest, otherwise callc
with the rest@ab|
- Make a pair ofa
andb
<a|
- Get the first element of paira
>a|
- Get the second element of paira
0a
- Prepend bit 01a
- Prepend bit 1(a)
- High precedence group[a]
- Stringify functiona
Examples
Cat program
.
Invert bits
*@.#|[>.|][1(*@>.|<.||[1(*0(>.|)<.||)][0(*0(>.|)<.||)]|)]|
Reverse bits
*0(@.|)[*@.#|[<>.||][*@@>>.||<>.|||<.||[*0(@>>.||10(<>.||)|)<.||][*0(@>>.||11(<>.||)|)<.||]|]|]|
Hello, World!
1010101110101110111011101011111010101111101111101010111110111110111111111011111010101111101110101010 1010101110101111111011101110111111111011111010111010111111101010111110111110101011101011111011101010 10111010.