@Commands

PROC {name}


Description:

Starts the declaration of a procedure with the specified name, which will later be used as the procedure's identifier. All code after this command will be used as the procedure's code. Declaration must be ended with the END command.

Arguments:

STR {name} - the specified procedure's name. Will be used to call the procedure after declaring it using the CALL command.


Example of usage:
SET 0 0; PROC MAIN; SAY %^0; SET 0 (%^0 $+ 1); IF (%^0$<5) CALL MAIN; END; CALL MAIN;
Output:
0 1 2 3 4