Alphab

From Esolang
Jump to navigation Jump to search

Alphab [ˈæl.feɪb] uses every latin alphabet letter. It was created in 2023 by CreeperBomb.

Syntax & structure

  • Every character has an assigned bit, which start out as zero when a program begins.
  • Commands are seperated by whitespace (this will be done by spaces on this page).
  • There are four command layouts: all lowercase (flipif), first lowercase (print), first uppercase (jumpif), & all uppercase (query).
  • All lowercase will flip the first's bit if the bits of the ones coming after are all 0 (it will always flip if no letters come after).
  • First uppercase will jump by the first character's unicode value if the bits of the ones coming after are all 1 (it will always jump if no letters come after).
  • If the jump letter has a diacritic, the jump is forewards, otherwise the jump is backwards.
  • In all uppercase, the user can choose to flip every specified bit. Multiple letters are required for all uppercase. To flip one value, write it twice (i.e. "AA", "ÜÜ", etc.)
  • In first lowercase, multiple letters are, once again, required. The bits are used to print a unicode character, if the first bit is 1. Later bits are higher powers of two.

Notice that flipif runs a nor operation and jumpif runs an and operation. This is useful for thinking about how to do something.

Useful code & basic programs

Not a:

 a

Set a to one:

 aa

Set a to zero:

 aa a

A or b on c:

 cc cab

A and b on c (parentheses are for if you want to preserve a & b):

 cc a b c cab (a b)

Hello world program:

 aa aBBBABBA aABABBAA aBBAABAA aBBAABAA aAAAABAA aBBBBBA aAAABAAA aAAAABAA aBABBAAA aBBAABAA aBBABBAA aABBBBA