WeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeBasic++

From Esolang
Jump to navigation Jump to search

WeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeBasic++ or WeeB++ is a derivative of WeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeBasic, which is a derivative of Weeeeeeeeeeeeeeeeeeeeeeeeeeeeee. It's created by User:None1. The esolang is invented to implement brainfuck.

Syntax

WeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeBasic++ derives all the commands in WeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeBasic, except that the Delevop vaccine restores its role as a command for program termination (but it doesn't need to be in the end of the program).

It operates on a tape with 8 bit cells and a pointer, all the commands in WeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeBasic only access the cell where the pointer is pointing at.

Extra commands

Command        Meaning
Next house     Move the pointer to the cell right after it.

Previous house Move the pointer to the cell right before it.

Exit Do        Exit a do while Loop

Example Programs

brainfuck

do
bulk infect
if number of Infections = 43 Then
Next house
infect person
Previous house
End If
Loop while number of Infections <> 10
Next house
check Number of Infections

brainfuck

do
bulk infect
if number of Infections = 91 Then
Exit Do
end If
Loop while number of Infections <> 10

Turing completeness

The esolang is Turing complete because any brainfuck program can be translated into a WeeB++ program.