Whenever

From Esolang
Jump to navigation Jump to search
This article is not detailed enough and needs to be expanded. Please help us by adding some more information.

Whenever is an esoteric programming language by David Morgan-Mar, with no sense of urgency. The program code is like a to-do list: the interpreter is free to execute statements in any order it chooses. However, a line may contain a clause specifying that it cannot be executed until certain conditions are true. There are no control flow structures or variables.

Syntax

Whenever code must include line-numbers manually typed by the user.
So,

1 1#9

is valid, however,

1#9

is invalid.

Commands

The following is a list of all valid Whenever commands.

(linenumber)#(numberoftimestoaddorremove)
(linenumber)#read()
print()

Compound statements:

defer()
again() ;
forget() ;

Built-in functions:

N()
U()

Math

Built in operators:

+
-
*
/
==
&&
||
!

External resources