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.

UNBABTIZED

From Esolang
Jump to navigation Jump to search

UNBABTIZED is an esoteric programming language by Gerson Kurz.

Overview

The language works on a memory of 1000 cells to contain integers. The cell address is 0-indexed.

The literal of nonnegative integers is supported.

Syntax

The program is represented as a list of statements, and is separated by a period (.).

Operands

123 for such literal, or °123 to specify the value at such memory address.

Commands

The semantics below is as in actual Python implementation, which differs from what the original page specifies.

!x,y assigns value y to memory address x.

~x,y adds value y to memory address x. Similarly, (x,y subtracts; )x,y multiples; [x,y divides (integer division).

Comparison commands are as follows: Ax,y for less than; §x,y for less than or equal; $x,y for equal; %x,y for greater than; &x,y for greater than or equal; /x,y for not equal.

:x outputs its character; @x outputs its number followed by a newline.

This language has no input commands.

,.CODE.-x is equivalent to do { CODE; } while (mem[x])

Examples

Outputs "Hello World":

:72.:101.:108.:108.:111.:32.:87.:111.:114.:108.:100

Outputs first nine Fibonacci numbers:

!0,1.!1,1.!2,1.!3,1.,.@°0.!4,°0.!0,°1.~4,°0.!1,°4.~2,°3.!5,°2.A5,10.-5

Counts from 0 to 9 (using undocumented feature that non-zero integer is truthy for looping):

,.@°0.~0,1.!1,°0.(1,10.-1

External resources