Alphalang

From Esolang
Jump to navigation Jump to search
This article is not detailed enough and needs to be expanded. Please help us by adding some more information.

Alphalang is an esoteric programming language made by User:Yes in 2022

Instructions

A		Increment cell
B		Decrement cell
C		Set cell to 0
D		Go back one cell
E		Go forward one cell
F		If cell is 0 go forward one cell
G		If cell is 0 go backward one cell
H		If cell is not 0 go forward one cell
I		If cell is not 0 go backward one cell
J		Get input and store ascii value into cell
K		Output ascii character of cell to the screen
L		If cell is 0 skip next instruction
M		If cell is not 0 skip next instruction
N		Output value of cell as a number to the creen
O		Set cell to 255
P		Divide cell number by 2 and round to the nearest whole number
Q		Multiply cell number by 2
R		Round cell to the nearest 10
S		Round cell to the nearest 100
T		If cell is 0 go to next U
U		If cell is not 0 go to next T
V		Set cell to cell modulo 2
W		Set cell to cell modulo 10
X		Move to first cell
Y		If cell is even set value to 1 otherwise set to 0
Z		If cell is odd set value to 1 otherwise set to 0

Turing complete

Alphalang, is, in fact, turing-complete.
The instructions A, B, D, E, J, K, T, and U are backwards compatible with bf, making it turing complete.

Examples

Hello World (adapeted from bf hello world)

AUBUDDUAUBBBETBUDDDTTTEEEBTEBKBBBKEKKEKDDDDBKDAKEEEEEKEKDDKDBK

Cat program

ATJKU

Truth Machine

JBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAETDUNTAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAN

Tools

bf2alpha