The purpose of this programming language is that all variables are shared with all Network-Headache programs running, everywhere. Every step (a fixed amount of time), a list of all running programs is made, ordered randomly, and one step is executed of each program, in that order. Variable names are all uppercase letters, nothing else. Numbers are infinitely long non-negative integers.
a-b: Subtraction, absolute value
a$b: INTERCAL mingle
a~b: INTERCAL select
(a) XOR (2a). So binary
(a): Value of
a, used to control precedence.
- Numbers are in base ten, variable names can be used anywhere numbers can.
SET a=b: Sets the value of variable
IN a: Reads input, and stores it in variable
OUT a: Outputs
SKIP: Skips a command in the next program which will execute a step. Wastes its turn, and its line.
LABEL a: Labels the current location as number
DO a: If the label
aexists, push the current location to stack and go to
FORGET a: Works like INTERCAL forget command.
EXIT: Works like INTERCAL
DO RESUME #1. If the stack is empty, ends program execution.