Мне с тобою так повезло

From Esolang
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 string a starts with bit 1 then call b with the rest, otherwise call c with the rest
  • @ab| - Make a pair of a and b
  • <a| - Get the first element of pair a
  • >a| - Get the second element of pair a
  • 0a - Prepend bit 0
  • 1a - Prepend bit 1
  • (a) - High precedence group
  • [a] - Stringify function a

Examples

Cat program

.

Try it online

Invert bits

*@.#|[>.|][1(*@>.|<.||[1(*0(>.|)<.||)][0(*0(>.|)<.||)]|)]|

Try it online

Reverse bits

*0(@.|)[*@.#|[<>.||][*@@>>.||<>.|||<.||[*0(@>>.||10(<>.||)|)<.||][*0(@>>.||11(<>.||)|)<.||]|]|]|

Try it online

Hello, World!

1010101110101110111011101011111010101111101111101010111110111110111111111011111010101111101110101010
1010101110101111111011101110111111111011111010111010111111101010111110111110101011101011111011101010
10111010.

Try it online

Interpreters

Interpreter