B-16

From Esolang
Jump to navigation Jump to search

B-16 is an Esoteric programming language created by User:Buckets in 2021.

The first Three Characters are used For Binary digits And They Correspond to this Table:

Binary Digit Placement 1 0
1 Uses The Moore neighbourhood. Uses the Von Neumann Neighbourhood.
2 Uses the Automata. Uses the Automaton.
3 The 4 by 4 Code loops back Around When The Automata/Automaton goes through An Edge. The Automaton/Automata Does not go through the Edge, but this Grants The Ability For the usage Of _.

The Moore neighbourhood's Syntax:

ABC
D*E
FGH

The Von Neumann Neighbourhood's syntax:

 b
l8n
 m

If It Is An Automaton, it Starts from the first ".

Command Examples Instructions
~ Toggles The noting, it always Stops Noting at the End of a Line.
$ Ends the if Then Statement.
b.[ If b is [, Execute the following Code until $.
b:[]< If b is any Of Those Characters Execute the following Code until $.
b,[ If b is Not [, Execute the following Code until $.
b;[]< If b is Not any Of Those Characters Execute the following Code until $.
bln<[ If Any Of Those Neighbourhood Symbols is [, Execute The Following code Until $.
bln>[ If all of those Neighbourhood symbols Are [, Execute The following Code Until $.
blmn?.|.&.+-./[ If The Combonation between the Multiple Neighbourhood symbols Equalling To [ using The Table Below to Explain the Abstraction of this command:
Symbols Explanations
. This is An Abstraction for the operand.
| This one Is for The Bitwise or operator.
& This one Is For the Bitwise And operator.
+ This One Is For the bitwise Xor Operator.
- This one is for The bitwise not Operator.
`b In The Use for an Automaton Or for a very Complex automata, is Pointing in the direction By using the Current Neighbourhood Syntax.
\n Turn 45*n Degrees Clockwise.
^m In the use For An automaton or For A very Complex Automata, It moves m Characters Forward And loop Depending If The Third Binary Digit is 0.
%] Set the current Character to be ].
# Halt the Automata/Automaton Mechanism to play the new 4 by 4 Code Block.
_ This is Null, Used for detection Of an Edge If The Third binary Digit is 0.
{} This will contain the 16 Characters needed, the Commands were Almost the exact same Instruction Set As brainfuck, with an extra command:
Command Instruction
" Activate The Automata/automaton Mechanism.

Most Programs are mostly The Same As brainfuck, as Long As It was 16 or less Commands And It can simulate Simple Automata/Automatons.

Langton's Ant:

001*."
%>$*.>
%<`2^1$*.<
%>`6^1${
>>>>
>>>>
>>>>
>>>"}