esolang

Wierd

The program is a drawing of wires; the angle of each turn in the wire is the instruction.

1997 · esolangs.org

Tested with 4 examples and 7 known programs · Hello World on Try It Online: identical · Test method

Run it

Example

Expected output

a

Output


What it is

Wierd, from Colagioia's reference wierd.c: turn angles are instructions; x the row, y the column, from 1; 135-degree get/put follows its code

How its machine works

Its machine has a two-dimensional program, wires drawn in characters.

Examples

Example

Expected output

a

Output


Example

Expected output

(nothing)

Output


Example

Expected output

abc

Output


Quirks

  • A run stops after 3,000,000 steps.

Two-dimensional languages

Stack-based

Write your own in Run Convert a program from Wierd

Implementation

JavaScript interpreter, source and command line

A JavaScript interpreter, used in the browser and on the command line. Id: wierd.

Command line

shib run wierd -e '*     ******
 *   *    *
  ***    *
        *
       *
     * *
      **
       *
' --input 'abc'
shib manual wierd

Source

Module
langs/grid/index.js
Interpreter
langs/grid/wierd.js

Docs: Kernel instructions · The .shib format · Command line · Adding a language

Source esolangs.org (CC0) · Edit on esolangs.org