WeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeBasic
WeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeBasic (or WeeB) is a derivative of Weeeeeeeeeeeeeeeeeeeeeeeeeeeeee created by User:None1, which is Weeeeeeeeeeeeeeeeeeeeeeeeeeeeee with some additional syntax.
Syntax
The language is designed to be like BASIC and Weeeeeeeeeeeeeeeeeeeeeeeeeeeeee, and all the commands in Weeeeeeeeeeeeeeeeeeeeeeeeeeeeee is still usable in this language, and the meanings of these commands are not changed (except Start epidemic
and Delevop vaccine
).
Except the syntax in Weeeeeeeeeeeeeeeeeeeeeeeeeeeeee, WeeB also has some additional syntax, including if, if else, print, input, and do while. Overflow and underflow wraps around.
WeeB is not case sensitive.
Note:Unlike Weeeeeeeeeeeeeeeeeeeeeeeeeeeeee, in WeeB, Start epidemic
and Delevop vaccine
are NOPs and lines that start with one of them are comments.
If statement
If Number Of Infections [Conditional operator] [Number] Then CODE End If
Note that the conditional operator and number are MANDATORY, and the conditional operator can be =,<>,< and >
If else statement
If Number Of Infections [Conditional operator] [Number] Then CODE1 Else CODE2 End If
Do while loop
Do CODE Loop While Number Of Infections [Conditional operator] [Number]
or
Do CODE Loop
Print "STRING"
A shortcut for printing a string.
Print the number of infections as a decimal integer.
Input
Input
Read the number of infections as a decimal integer.
Example Programs
Truth Machine
bulk infect If number of Infections <> 48 Then do check number of Infections Loop Else check Number of Infections end If
Alternative
Input If number of Infections = 0 Then Print Else do Print Loop end If
Hello World
Print "Hello World!"
Cat Program (with comments)
Do bulk infect Check number of infections loop while number of infections <> 10 Start epidemic (This is a comment) Delevop vaccine (It only echoes one line of input)
Cat Program (without comments)
Do bulk infect Check number of infections loop while number of infections <> 10
Cat Program (forever)
Do bulk infect Check number of infections loop
Age comparer
Print "How old are you?" If Number of infections > 18 Then Print "You are above 18." End if If Number of infections < 18 Then Print "You are below 18." End if If Number of infections = 18 Then Print "You are 18." End if