Overview
Comment:Now optimises using SCOPE
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: f915d777b860d46dfc64989c0dcf48c63c220f93fc5c3d261d8e8654b1c552e1
User & Date: gawthrop@users.sourceforge.net on 2000-08-24 17:12:01
Other Links: branch diff | manifest | tags
Context
2000-08-25
09:23:40
Made both names the same! check-in: d7bc82060c user: gawthrop@users.sourceforge.net tags: origin/master, trunk
2000-08-24
17:12:01
Now optimises using SCOPE check-in: f915d777b8 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
17:11:40
Now optimises as well as segmenting - uses the SCOPE package check-in: 03af8bfc32 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/lang_matrix.r from [0861aec3dd] to [43c5731629].

9
10
11
12
13
14
15



16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35


36

37
38


39

40
41
42
43
44
45


% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% % Version control history
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% % $Id$
% % $Log$



% % 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.
% %
% % Revision 1.1  1998/05/23 10:49:25  peterg
% % Initial revision
% %
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



PROCEDURE Lang_Matrix();
BEGIN
    FOR i := 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);

      END
      ELSE


        GENTRAN mtt_matrix(i) ::=: mtt_matrix(i,1);

    END
END;

END;;









>
>
>















|



|
>
>
|
>


>
>
|
>






9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54


% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% % 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.
% %
% % Revision 1.1  1998/05/23 10:49:25  peterg
% % Initial revision
% %
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



PROCEDURE Lang_Matrix();
BEGIN
    FOR row := 1:MTT_Matrix_n DO
    BEGIN
      IF MTT_Matrix_m>1 THEN
      BEGIN
        FOR col := 1:MTT_Matrix_m DO
            BEGIN
              INAME(mtt_t);
              GENTRAN mtt_matrix(row,col) ::=: mtt_matrix(row,col);
            END;
      END
      ELSE
        BEGIN
          INAME(mtt_o);
          GENTRAN mtt_matrix(row) ::=: mtt_matrix(row,1);
        END;
    END
END;

END;;



MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]