Tellurium

From Esolang
Jump to navigation Jump to search
Tellurium
Paradigm(s) imperative
Designed by User:M654
Appeared in 2016
Memory system cell-based
Computational class Unknown
Reference implementation Tellurium
File extension(s) .tl

Tellurium is an esoteric, tape-based programming language invented in 2016 by User:M654 with code-golf challenges in mind.

History

Tellurium was originally called Brainfish, and was supposed to be a combination of brainf*ck and Deadfish. It was later renamed Tellurium.

Instructions

Tellurium currently has the following commands:

Command Meaning
> Move one cell up the tape
< Move one cell down the tape
e Move ten cells up the tape
E Move ten cells down the tape
h Move 100 cells up the tape
H Move 100 cells down the tape
+ Add one to the selected cell
- Subtract one from the selected cell
/ Add ten to the selected cell
\ Subtract ten from the selected cell
" Add 100 to the selected cell
' Subtract 100 from the selected cell
^ Output the selected cell's value
! Convert the selected cell's value to an ASCII character and output it
% Converts a character in the selected sell to an ASCII value
a Takes the selected cell and the next cell and adds them together into the selected cell
s Takes the selected cell and the next cell and subtracts them into the selected cell
m Takes the selected cell and the next cell and multiplies them into the selected cell
d Takes the selected cell and the next cell and divides them into the selected cell
i Read input and store it in the selected cell
µ Read a string until the ~ command and store it in the selected cell
~ End a µ-command
& Enters string manipulation mode
. Exits the program/exits string manipulation mode
r Reverses the selected cell's value (string manipulation mode)
u Makes the selected cell's value uppercase (string manipulation mode)
l Makes the selected cell's value lowercase (string manipulation mode)

Turing-completeness

Tellurium is Turing-complete, as Tellurium's commands can mimic brainf*ck's.

Brainf*ck Tellurium
+ +
- -
> >
< <
, !
. i
[ {
] }

Examples

Hello, world!

µHello, world!~^

Cat program

i!

Simple calculator

i>i<a!

Interpreters

Python

The original Tellurium interpreter written in Python is available at GitHub here.