Empty program: Difference between revisions
Content added Content deleted
(Kotlin snippet replaced) |
m (→{{header|REXX}}: elided versions that specified which type of scripting language it is.) |
||
Line 877: | Line 877: | ||
=={{header|REXX}}== |
=={{header|REXX}}== |
||
An empty (or blank) file is a valid REXX program. |
An empty (or blank) file is a valid REXX program. |
||
===version 0=== |
|||
<lang rexx></lang> |
|||
Some REXX implementations require a special comment [(1<sup>st</sup> word in the comment |
|||
<br>must be REXX (in upper/lower/mixed) case] to distinguish from other types of |
|||
<br>scripting languages, but a null program (or a program with only blanks in it) in those |
|||
<br>other scripting languages are also considered an empty program. |
|||
===version 1=== |
===version 1=== |
||
This program can be empty (no characters), or a program with (only) one or more blanks. |
|||
However, for some REXX implementations the first line has to begin with a REXX comment (that is, '''/*''' --- namely a ''slash'' followed by an ''asterisk'') in order to recognize that the file is a REXX script/EXEC/program: |
|||
<lang rexx> |
<lang rexx></lang> |
||
Some environments (TSO under "MVS", certain IBM SAA environments, and possibly others) require that the first line begin with a (REXX) comment, and the (four) letters '''REXX''' be somewhere on the first line (within the comment). |
|||
<br>The ''REXX'' character string may be in any case (lower/upper/mixed) and cannot contain imbedded whitespace. |
|||
<br><br>SAA: (IBM's) '''S'''ystems '''A'''pplication '''A'''rchitecture |
|||
===version 2=== |
===version 2=== |
||
<lang rexx>/**/</lang> |
|||
===version 3=== |
|||
REXX on MVS/TSO requires REXX to be in within a REXX comment that begins on the first line: |
REXX on MVS/TSO requires REXX to be in within a REXX comment that begins on the first line: |
||
<lang rexx>/*REXX*/</lang> |
<lang rexx>/*REXX*/</lang> |
||
<lang rexx>/*this REXX program calculates if a date is a workday for the XYZ Company.*/</lang> |
|||
=={{header|Rhope}}== |
=={{header|Rhope}}== |