Overview
Comment:Now handles the generic CR (ie = and mtt_e and mtt_f)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 8c76dee5368d9c679710f2660e5a180d971f1c325135ea963575d29deca93073
User & Date: gawthrop@users.sourceforge.net on 2000-10-03 18:46:04
Other Links: branch diff | manifest | tags
Context
2000-10-05
10:13:00
New eqn2ass function.
Started extension to multiports
check-in: 7e1c4527c8 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
2000-10-03
18:46:04
Now handles the generic CR (ie = and mtt_e and mtt_f) check-in: 8c76dee536 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
18:35:04
Removed comment bug check-in: 0f021d0c95 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/abg2sympar_m2txt from [daf0665c64] to [1336460909].

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


# Inform user
echo "Creating $1_sympar.txt"

rm -f mtt_error
# Separation characters
SEPS=';+*/()-'
# Replace by ,
REPS=',,,,,,,'

# This is the main transformation using gawk
tr $SEPS $REPS <  $1_abg.m | \
awk '
function exact_match(name1, name2) {
  return ((match(name1,name2)>0)&&(length(name1)==length(name2)))
}







|

|







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


# Inform user
echo "Creating $1_sympar.txt"

rm -f mtt_error
# Separation characters
SEPS=';+*/()-='
# Replace by ,
REPS=',,,,,,,,'

# This is the main transformation using gawk
tr $SEPS $REPS <  $1_abg.m | \
awk '
function exact_match(name1, name2) {
  return ((match(name1,name2)>0)&&(length(name1)==length(name2)))
}
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
    }
  }
  return matched;
}

BEGIN {
  var = "[%|#]VAR";
  not_an_arg = "effort flow state internal external zero unknown";
  arg_line = "arg = ";
}
{
  ## Explicit VAR declarations
  if (match($1,var)>0) print $2 "\t" system_name;

   ## Implicit declarations from the arg list







|







36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
    }
  }
  return matched;
}

BEGIN {
  var = "[%|#]VAR";
  not_an_arg = "effort flow state internal external zero unknown mtt_e mtt_f";
  arg_line = "arg = ";
}
{
  ## Explicit VAR declarations
  if (match($1,var)>0) print $2 "\t" system_name;

   ## Implicit declarations from the arg list


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