Overview
Comment:Simple filter for Reduce reserved words in sympar.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: f9e5428fcbc51c3cb5531d0baef6dc9529569953af823c98852c4e18d7d6af5e
User & Date: geraint@users.sourceforge.net on 2001-07-23 05:16:39
Other Links: branch diff | manifest | tags
Context
2001-07-23
23:20:27
Now only writes to type.sh and cbg.m when causality is completed. check-in: 55fa7613d6 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
05:16:39
Simple filter for Reduce reserved words in sympar. check-in: f9e5428fcb user: geraint@users.sourceforge.net tags: origin/master, trunk
03:35:29
Updated file structure (mtt/bin). check-in: 30a2b9d6d7 user: geraint@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/mtt_make_sympar from [7cd064f8ce] to [c0862769f2].

9
10
11
12
13
14
15



16
17
18
19
20
21
22
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25







+
+
+







# Copyright (C) 2000 by Peter J. Gawthrop

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.8  2001/07/04 06:00:12  gawthrop
## Fixed a funny with tr - changed SEPS and REPS - something to do with ^
##
## Revision 1.7  2001/04/13 07:14:12  geraint
## Implemented lower level lbl.txt recognition of #NOT[V|P]AR
##
## Revision 1.6  2001/04/10 12:54:50  gawthrop
## Minor fixes for sensitivity versions
##
## Revision 1.5  2000/11/03 14:57:06  peterg
90
91
92
93
94
95
96






















93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121







+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
        for (j=1;j<=i;j++){
          printf("%s%s", comma, sysname[j]);
          comma=",";
        }
        printf("\n")

}' < mtt_sympar.txt >$filename

reserved_words=`\
    cat ${MTT_LIB}/reduce/reserved_words.txt	|\
    awk '{printf "%s ", $0}'			|\
    tr [a-z] [A-Z]`
sympar_words=`\
    cat ${filename}				|\
    cut -f1					|\
    awk '{printf "%s ", $0}'			|\
    tr [a-z] [A-Z]`
flag=0
for reserved_word in ${reserved_words}; do
    for sympar_word in ${sympar_words}; do
	if [ ${sympar_word} = ${reserved_word} ]; then
	    echo "*** MTT Error: ${sympar_word} is reserved (Reduce)"
	    flag=1
	fi
    done
done
if [ ${flag} -eq 1 ]; then
    exit 1;
fi

Added mttroot/mtt/lib/reduce/reserved_words.make version [098f123485].
















1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
#! /bin/sh

reduce_reserved_word_manual_page=${1:-"/usr/local/reduce/doc/manual/appenda.tex"}
output="reserved_words.txt"

cat $reduce_reserved_word_manual_page                   |\
    tr "\n" " "                                         |\
    sed 's/\\\_/_/g'                                    |\
    sed 's/\\tt\ \([A-Za-z0-9_]*\)/\"\1\"/g'            |\
    tr " " "\n"                                         |\
    sed 's/\{//g'                                       |\
    sed 's/\}//g'                                       |\
    awk -F\" '(NF==3) { printf "%s\n",$2 }'             |\
    sort -u						\
> $output

Added mttroot/mtt/lib/reduce/reserved_words.txt version [727a3fd398].
























































































































































































































































































1
2
3
4
5
6
7
8
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
ABS
ACOS
ACOSH
ACOT
ACOTH
ACSC
ACSCH
ADJPREC
ALGEBRAIC
ALGINT
ALLBRANCH
ALLFAC
AND
ANTISYMMETRIC
APPEND
ARGLENGTH
ARRAY
ASEC
ASECH
ASIN
ASINH
ATAN
ATAN2
ATANH
BEGIN
BFSPACE
BYE
CARD_NO
CEILING
CLEAR
CLEARRULES
COEFF
COEFFN
COFACTOR
COMBINEEXPT
COMBINELOGS
COMMENT
COMP
COMPLEX
CONJ
CONS
CONT
COS
COSH
COT
COTH
CRAMER
CREF
CSC
CSCH
DECOMPOSE
DEFINE
DEFN
DEG
DEMO
DEN
DEPEND
DET
DF
DIFFERENCE
DILOG
DISPLAY
DIV
DO
E
ECHO
ED
EDITDEF
EI
END
EPS
EQ
EQUAL
ERF
ERRCONT
EVALLHSEQP
EVAL_MODE
EVEN
EVENP
EXP
EXPANDLOGS
EXPR
EXPT
EZGCD
FACTOR
FACTORIAL
FACTORIZE
FEXPR
FIRST
FIX
FIXP
FLOOR
FOR
FORALL
FOREACH
FORT
FORT_WIDTH
FREEOF
FULLROOTS
G
GCD
GEQ
GO
GOTO
GREATERP
HIGH_POW
HYPOT
I
IF
IFACTOR
IMPART
IN
INDEX
INFINITY
INFIX
INPUT
INT
INTEGER
INTERPOL
INTSTR
K
KORDER
LAMBDA
LCM
LCOF
LENGTH
LEQ
LESSP
LET
LHS
LINEAR
LINELENGTH
LISP
LIST
LISTARGP
LISTARGS
LN
LOAD
LOAD_PACKAGE
LOG
LOG10
LOGB
LOW_POW
LTERM
MACRO
MAINVAR
MASS
MAT
MATCH
MATEIGEN
MATRIX
MAX
MCD
MEMBER
MEMQ
MIN
MINUS
MKID
MODULAR
MSG
MSHELL
MULTIPLICITIES
NAT
NEQ
NERO
NEXTPRIME
NIL
NODEPEND
NONCOM
NONZERO
NOSPLIT
NOSPUR
NULLSPACE
NUM
NUMBERP
ODD
OFF
ON
OPERATOR
OR
ORDER
ORDP
OUT
OUTPUT
PART
PAUSE
PERIOD
PF
PI
PLUS
PRECEDENCE
PRECISE
PRECISION
PRET
PRI
PRIMEP
PRINT_PRECISION
PROCEDURE
PRODUCT
QUIT
QUOTIENT
RANDOM
RANDOM_NEW_SEED
RANK
RAT
RATARG
RATIONAL
RATIONALIZE
RATPRI
REAL
REDERR
REDUCT
REMAINDER
REMFAC
REMIND
REPART
REPEAT
REST
RESULTANT
RETRY
RETURN
REVERSE
REVPRI
RHS
RLISP88
ROOT_MULTIPLICITY
ROUND
ROUNDALL
ROUNDBF
ROUNDED
SAVEAS
SAVESTRUCTR
SCALAR
SEC
SECH
SECOND
SET
SETMOD
SETQ
SHARE
SHOWRULES
SHOWTIME
SHUT
SIGN
SIN
SINH
SMACRO
SOLVE
SOLVESINGULAR
SPUR
SQRT
STRUCTR
SUB
SUM
SYMBOLIC
SYMMETRIC
T
TAN
TANH
THIRD
TIME
TIMES
TP
TRA
TRACE
TRFAC
TRIGFORM
TRINT
UNTIL
VARNAME
VECDIM
VECTOR
WEIGHT
WHEN
WHERE
WHILE
WRITE
WS
WTLEVEL


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