Differences From Artifact [23c6336384]:

To Artifact [1a32a9e3a2]:


1


2
3
4



5
6
7
8
9
10
11
1
2
3
4


5
6
7
8
9
10
11
12
13
14

+
+

-
-
+
+
+







#! /bin/sh
## Chages the Pascal output from gentran to octave form
# Copyright (C) 2000 by Peter J. Gawthrop

sed 's/begin / /' |\
sed 's/end / /' |\
sed 's/begin$//' |\
sed 's/end$//' |\
sed 's/end;$/;/' |\
sed 's/\[\([0-9,]*\)\]/(\1)/g' |\
sed 's/:=/ = /' |\
sed 's/\*\*/\^/g' |\
sed 's/mtt\([a-z]*\)\([0-9]\)\([0-9]*\)/mtt\1(\2\3)/g' |\
awk '{
  sub(/^[\ ]*/, "", $0)
  sub(/\$$/, ";", $0)

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