Overview
Comment:Now uses sympar2global_txt2m for the m bit
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 756ebf543994268f403135a60d276eb364ccd922537251ada71700d84ececf77
User & Date: gawthrop@users.sourceforge.net on 1998-11-18 11:55:51
Other Links: branch diff | manifest | tags
Context
1998-11-18
13:50:29
Removed writeing of EYz matrix check-in: 745f438a69 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
11:55:51
Now uses sympar2global_txt2m for the m bit check-in: 756ebf5439 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
11:42:55
Added "IF MTTNx>0 THEN" to avoid error message when no states check-in: 0fd592aaf1 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/sympar2global_txt2lang from [ccb252fc74] to [bc073c2291].

12
13
14
15
16
17
18



19
20
21
22
23
24
25


###############################################################
## Version control history
###############################################################
## $Id$
## $Log$



## Revision 1.4  1998/07/26 10:50:30  peterg
## Corrected bug.
##
## Revision 1.3  1998/07/26 10:48:18  peterg
## Now strips comments
##
## Revision 1.2  1998/07/25 18:49:00  peterg







>
>
>







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


###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.5  1998/07/26 11:00:18  peterg
## Put in exits-- this all needs a good clean
##
## Revision 1.4  1998/07/26 10:50:30  peterg
## Corrected bug.
##
## Revision 1.3  1998/07/26 10:48:18  peterg
## Now strips comments
##
## Revision 1.2  1998/07/25 18:49:00  peterg
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
cat <<EOF

$Lc====== Set up the global variables ======$Rc
EOF
# Matlab bit
#Write out the variables in matlab global format
if [ "$language" = "m" ]; then
 strip_comments <$1_sympars.txt  |\
  awk '
  BEGIN{
    var = "foobar";
    print "global ..."
  }
  {i++; print tolower($1), "..."; var = $1}
  END{
  print var ";" # Repeat the last variable to avoid the trailing ...
  }'
exit
fi

if [ "$language" = "c" ]; then
  strip_comments <$1_sympars.txt  |\
    awk '{
      i++; print "extern double", tolower($1) ";";







<
<
<
<
|
<
<
<
<
<







56
57
58
59
60
61
62




63





64
65
66
67
68
69
70
cat <<EOF

$Lc====== Set up the global variables ======$Rc
EOF
# Matlab bit
#Write out the variables in matlab global format
if [ "$language" = "m" ]; then




  sympar2global_txt2m $1





exit
fi

if [ "$language" = "c" ]; then
  strip_comments <$1_sympars.txt  |\
    awk '{
      i++; print "extern double", tolower($1) ";";


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