perm filename TSTM2C.SAI[CMU,AIL] blob
sn#113939 filedate 1974-08-03 generic text, type T, neo UTF8
00100 BEGIN "TEST"
00200 require "
00300 Now the id is changed to 'LIM',
00400 and we get an 'inifinte' loop in the compiler" message;
00500 INTEGER VAL,NUM;
00600 REQUIRE "⊂⊃<>" DELIMITERS;
00700 DEFINE TSTMAC(TYPE,LIST,DIM)=⊂
00800 REDEFINE LIM=DIM-1;
00900 FORLC N←LIST DOC ⊂
01000 EXTERNAL TYPE ARRAY N[0:1
01100 FORC I←1 STEPC 1 UNTILC LIM DOC ⊂,0:1⊃ ENDC
01200 ];
01300 ⊃
01400 ENDC
01500 ⊃ ;
01600 TSTMAC(INTEGER,<(X,Y,Z)>,3);
01700 TSTMAC(INTEGER,<(E,F,G,H)>,2);
01800 TSTMAC(INTEGER,<(A,B,C,D)>,1);
01900 VAL←A[2];
02000 VAL←B[NUM];
02100 VAL←E[1,NUM];
02200 VAL←X[1,1,1];
02300 END "TEST"