Wariolang

From Esolang
Jump to navigation Jump to search

WarioLang is an esolang inspired by the AI system of Warioware D.I.Y, it is created by discord user CosmicMan08#1975 (User:CosmicMan08).

INSTRUCTIONS

Set [Var] to [Data] ---- Sets a variable of the programmer's choosing to something else of their choosing.

Ask for Input ---- Pauses to let the user type in an input, then the default variable "Input" is set to what they typed.

When [Var] is [Data]: ... ​End ---- Detects if a specific variable is equal to a certain value/string/boolean and runs the code inside if it returns on

Until [Var] is [Data]: ... End ---- Repeatedly reads a set of instructions until a specific variable is equal to a certain value/string/boolean, in which the loop will stop

Action [Name]: ... End ---- Acts as a block of code that can be called on by Call [Function]

Call [Function] ---- Skips to the function called and returns back to the line after the function terminates.

Stop! ---- exits the program/function/if statement/while loop

DATA

Number ---- just a plain number, (ie 1, 2, 5, 5639546798, 3.4, etc)

String ---- any text surrounded by "s

On/Off ---- a binary form of data storage

MISC

Input ---- special variable that is overwritten every time "Ask for Input" is used

Prompt ---- special variable that acts as the output of the program

EXAMPLES

Hello World!

Set Prompt to "Hello World!"

Cat program

Ask for Input
Set Prompt to Input

Truth-machine

Ask for Input
When Input is "0":
   ​Set Prompt to "0"
End
When Input is "1":
   ​Until Off:
       ​Set Prompt to "1"
   ​End
End