Append

From Esolang
Jump to navigation Jump to search

Append is a esolang that works only by appending commands to itself

How it Works

scripts in Append follow this format:

id_1,"string_1":command_(1,1),command_(1,2),...,command_(1,n_1)
id_2,"string_2":command_(2,1),command_(2,2),...,command_(2,n_2)
.
.
.
id_m,"string_m":command_(m,1),command_(m,2),...,command_(m,n_m)

x_1,x_2,...,x_k

here id_i is an identifier used to call the commands, "string_i" is a string outputed when the command is called, command_(i,j) is a command, x_i is a command, n_i is an arbitrary number and m is an arbitrary number

Defining Commands

the command format:

id_i,"string_i":command_(i,1),command_(i,1),command_(i,2),...,command_(i,n_i)

id_i is the string used to call the command, "string_i" will be outputed to the user when the command is called (note: the string "" will not appear as output), the list command_(i,1),command_(i,2),...,command_(i,n_i) is appended to the end of the processing line when the command is called

Running it

the processing line:

x_1,x_2,...,x_k

when the program runs, it will run the commands in the processing in order (including commands added by commands)