Bundle

From Esolang
Jump to navigation Jump to search

Bundle is a simple esoteric programming language created by Lanksy.

Bundle Syntax

Bundle commands remeseble shell commands. Every command must be written in lowercase, except for arguments.

Variables can be embedded into an argument by surrounding the variable name in the following pattern:

${variable}

Bundle Commands

username

Will set the variable called res to the username of the person running the bundle. If the user is logged out, will return null.

clear

Will clear the entire console.

loop

Will loop the entire bundle forever.

stoploop

Will stop the loop.

randomise [max]

Will set the variable called res to a random number from 1to the maximum number.

write [text]

Will write the provided text to the console.

writeln [text]

Will write the provided text to the console in a new line.

ask [prompt]

Will ask the provided prompt to the user and set the answer to a variable called res.

def [name] = [value]

Will set a new variable with the name and value provided.

if [value] = [value]

If the comparison provided is true, the next line will run. Otherwise, it will skip the next line. The != comparison can also be used.

+ [name]

Will increment the variable with the name provided.

add [value], [value]

Will add the 2 values together and set the result to a variable called res.

sub [value], [value]

Will subtract the 2 values together and set the result to a variable called res.

mul [value], [value]

Will multiply the 2 values together and set the result to a variable called res.

div [value], [value]

Will divide the 2 values together and set the result to a variable called res.