Boringscript

From Esolang
Jump to navigation Jump to search
This is still a work in progress. It may be changed in the future.

Boringscript - is a maximally boring and useless esolang, developed by Dmitry Samorodyuk.

commands

' — do nothing
" — do nothing for 1 second
z — wait for 1 second
n — output line feed

Interpreter

we have two interpreters: JS, and Python.

python

import time
print("boringscript interpreter")
for c in input(">>>"):
    if c=="'":pass
    if c=='"':time.sleep(1); pass
    if c=="z":time.sleep(1)
    if c=="n":print("\n")

js

function sleep(ms) {
  return new Promise(resolve => setTimeout(resolve, ms));
}

async function run() {
  console.log("boringscript interpreter");
  const input = prompt(">>>");

  for (const c of input) {
    if (c === "'") {}
    if (c === '"') { await sleep(1000); }
    if (c === "z") { await sleep(1000); }
    if (c === "n") { console.log(""); }
  }
}

run();

examples

'''

''' — nothing, but three times

History

Before creating boringscript, Dmitry was bored. He sat and did nothing for a long time. This inspired him to create esolang in honor of this. Dmitry's goal was to express how boring programming is. But he didn't know how, and that's what led him to boringscript.

Categories