Brainalpha

From Esolang
Jump to navigation Jump to search

Brainalpha is an esolang invented by User:None1.

Commands

Brainfuck Substitution Argument Description
> A Move the pointer to the right
< B Move the pointer to the left
+ C Increment the memory cell under the pointer
- D Decrement the memory cell under the pointer
. E Output the character at the cell at the pointer
, F Input a character and store it in the cell at the pointer
[ G Jump past the matching H if the cell under the pointer is A
] H Jump back to the matching G

Memory

Unlike standard brainfuck, Brainalpha cells can only be uppercase letters:

ABCDEFGHIJKLMNOPQRSTUVWXYZ

Incrementing Z results in A and decrementing A results in Z.

All letters in memory start out as A's.

When an F command encounters a character (or EOF) that is not an uppercase letter, the current cell is unchanged.

Examples

HI

CCCCCCCECE

HELLOWORLD

CCCCCCCEDDDECCCCCCCEECCCECCCCCCCCEDDDDDDDDECCCEDDDDDDEDDDDDDDDE

Prints HELLOWORLD because of the restrictions of the language.

Uppercase letter-restricted Cat Program (never terminates)

CGAFEBH

Caesar encryption (never terminates)

Accepts only uppercase letters, adds the order of every input letter by 1, for example, input is INPUT and output is JOQVU.

CGAFCEBH

This program is much easier than in brainfuck (because you don't need to subtract by 65, modulo by 26 and add by 65 and stuff)! And what's more, you don't need to know the ASCII table! And what's more, this is why Brainalpha is created!

External Resources