We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

1-866-025-4037

From Esolang
Jump to navigation Jump to search

1-866-025-4037 is an esoteric programming language made by User:Dragoneater67 in 2026. It is based on combinatory logic.

Overview

The language uses the K', O, Q and R combinators, represented by k, o, q and r respectively, it uses Unlambda-style syntax that uses ` for application. Application is done lazily in left-to-right order. The basis K'OQR is complete as it can express the BCKW combinators as shown on the table.

Table of combinators
Combinator 1-866-025-4037 expression
B ```rrrq
C ``rrr
I `kk
K ```rrrk
M `o`kk
W `q`o`kk

I/O

The language has 3 special combinators that are used for I/O:

  • 0 -- takes an argument and returns it, has the side effect of outputting 0.
  • 1 -- takes an argument and returns it, has the side effect of outputting 1.
  • ? -- takes 2 arguments, inputs a bit from the user, and if it is equal to 1, return the first argument, else, return the second argument, returns neither on EOF.

Examples

Infinite loop

``o`kk`o`kk

Truth machine

``?``````rrrq``q`o`kk``q`o`kk```rrrk`````rrrq`q`o`kk```rrrq10