Overview
Comment:Added the new MTTpar generation
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 8ff436c5447e6a9416a9cf0d0a603c8cebfa973d24e6378e3b57cf83e34d1723
User & Date: gawthrop@users.sourceforge.net on 2000-02-11 13:35:16
Other Links: branch diff | manifest | tags
Context
2000-02-16
15:05:46
Replaced spurious 8spaces by tab check-in: c87497731e user: gawthrop@users.sourceforge.net tags: origin/master, trunk
2000-02-11
13:35:16
Added the new MTTpar generation check-in: 8ff436c544 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
2000-02-10
18:51:31
Included OFF exp; in subs.r default check-in: f7d2d0f0d9 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/txt2m from [707e2d4334] to [f90e675ca6].

11
12
13
14
15
16
17



18
19
20
21
22
23
24
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27







+
+
+









# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
# %% Version control history
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
# %% $Id$
# %% $Log$
# %% Revision 1.18  1999/11/14 22:22:17  peterg
# %% Removed checks for implicit - now done at command-line level.
# %%
# %% Revision 1.17  1999/11/04 04:54:24  peterg
# %% Removed recreation of smx file.
# %%
# %% Revision 1.16  1999/03/06 02:18:10  peterg
# %% Changed argument list.
# %%
# %% Revision 1.15  1999/02/16 21:44:38  peterg
114
115
116
117
118
119
120
121

122
123
124
125
126
127
128
117
118
119
120
121
122
123

124
125
126
127
128
129
130
131







-
+







      echo "%% Generated by MTT at `date`" >> $1_$2.m
      echo "% Global variable list" >>  $1_$2.m
      sympar2global_txt2m $1 >> $1_$2.m
      ;;
esac

#Write out the variables in m format.
cat  $1_$2.txt |\
cat  $1_$2.txt | grep -v METHOD |\
awk -F#  'BEGIN{
quote = "\047";
doublequote = "\042";
}
{
  N=split($1,a,"=");
  if (N==2) {
159
160
161
162
163
164
165











166
167
168
169
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183







+
+
+
+
+
+
+
+
+
+
+




     -e 's/\[\([0-9]*\)\]/(\1)/g' \
     -e 's/\([^a-zA-Z_]\)t\([^a-zA-Z_]\)/\1mttt\2/g' \
     -e 's/x(/mttx(/g' \
     -e 's/u(/mttu(/g' \
     -e 's/mttmtt/mtt/g' \
     -e 's/#/%/g' \
>> $1_$2.m


if [ "$2" = "numpar" ]; then
    awk '{
       printf("  MTTpar(%i) \t= %s;\n",++i, tolower($1));
     }'< $1_sympar.txt  >>$1_numpar.m
fi









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