Files
Eremey Valetov dd7caf89f6 Accept the 1954 tape and drum formulas, and check an assigned GO TO.
FORTRAN 0 now parses the parenthesized tape and drum statements.
Both tape spellings share one binary record. A drum address is 1..2048
and a transfer may not pass the last word. The read walks the list
once, so a bound stored earlier in that list is the bound that applies.
Section K follows the labeled example rather than the words "opposite"
and "last", which reject it.

An assigned GO TO inside a DO, under FORTRAN I and II, must aim at one
part of the nest or entirely outside it. The local i704 tree still has
no FORTRAN listing.
2026-11-12 16:21:15 -05:00

8 lines
215 B
FortranFixed

C THE BOUND IS READ IN THIS LIST, AND THE TRANSFER STILL STOPS AT 2048.
DIMENSION A(4)
N = 0
WRITE DRUM (1, 2046) 3, 1.0, 2.0
READ DRUM (1, 2046) N, (A(I), I = 1, N)
STOP
END