Files
Eremey Valetov 720f65ad81 Accept the 1954 EQUIVALENCE sentence and subscript expression.
The 10 November 1954 report shares bare names from the first word and allows a three-term subscript, including one product of two subscripts and one level of subscripted subscript. The later offset form and the seven FORTRAN I subscript forms stay in place for FORTRAN I and II. A DO parameter stays on those seven forms, including a zero addend. The type-1 and type-2 condition is the programmer's rule and is not diagnosed. The relative-constant requirement is not checked, because RELATIVE CONSTANTS is still rejected.

The local i704 tree still has no FORTRAN II system tape.
2026-11-12 12:40:41 -05:00

20 lines
446 B
FortranFixed

C A ZERO ADDEND STAYS LEGAL ON A DO PARAMETER AND A SEQUENCE BOUND.
C STDOUT IS THIS RUNTIME. NOT AN I704 LISTING.
DIMENSION N(2), IA(3)
J = 1
N(1) = 1
N(2) = 2
IA(1) = 4
IA(2) = 5
IA(3) = 6
K = 0
DO 10 I = N(J + 0), N(2 * J + 0)
10 K = K + I
M = 0
DO 20 I = N(J - 0), 1
20 M = M + I
PRINT K, M
PRINT (IA(I), I = N(J - 0), N(J + 0))
STOP
END