Index: mttroot/mtt/bin/trans/lang_matrix.r ================================================================== --- mttroot/mtt/bin/trans/lang_matrix.r +++ mttroot/mtt/bin/trans/lang_matrix.r @@ -11,10 +11,13 @@ % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Version control history % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % $Id$ % % $Log$ +% % Revision 1.4 1998/07/27 17:34:59 peterg +% % Sorted syntax errors +% % % % Revision 1.3 1998/07/27 16:31:10 peterg % % Sorted out to work with mtt_r2m % % % % Revision 1.2 1998/05/23 15:00:27 peterg % % Removed the name = matrix statement - now done by sed. @@ -26,20 +29,26 @@ PROCEDURE Lang_Matrix(); BEGIN - FOR i := 1:MTT_Matrix_n DO + FOR row := 1:MTT_Matrix_n DO BEGIN IF MTT_Matrix_m>1 THEN BEGIN - FOR j := 1:MTT_Matrix_m DO - GENTRAN mtt_matrix(i,j) ::=: mtt_matrix(i,j); + FOR col := 1:MTT_Matrix_m DO + BEGIN + INAME(mtt_t); + GENTRAN mtt_matrix(row,col) ::=: mtt_matrix(row,col); + END; END ELSE - GENTRAN mtt_matrix(i) ::=: mtt_matrix(i,1); + BEGIN + INAME(mtt_o); + GENTRAN mtt_matrix(row) ::=: mtt_matrix(row,1); + END; END END; END;;