Overview
Comment:Generate warning instead of error if reserved word used.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 01ca3e89a7f21ab0d24240d2d571cac1bc6c6fd1d1c025e22a63fe21a8df58e3
User & Date: geraint@users.sourceforge.net on 2001-07-28 21:10:18
Other Links: branch diff | manifest | tags
Context
2001-08-01
04:06:07
Added -i dassl for -cc and -oct. check-in: 16431df012 user: geraint@users.sourceforge.net tags: origin/master, trunk
2001-07-28
21:10:18
Generate warning instead of error if reserved word used. check-in: 01ca3e89a7 user: geraint@users.sourceforge.net tags: origin/master, trunk
21:09:22
Eliminated duplicate lines in type.sh. check-in: 87056fd440 user: geraint@users.sourceforge.net tags: origin/master, trunk
Changes

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

9
10
11
12
13
14
15



16
17
18
19
20
21
22
# 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







>
>
>







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.9  2001/07/23 05:16:39  geraint
## Simple filter for Reduce reserved words in sympar.
##
## 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
107
108
109
110
111
112
113


114
115

116
117
118
119
120
121
    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







>
>
|
<
>



<
<
<
110
111
112
113
114
115
116
117
118
119

120
121
122
123



    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 ""
	    echo "*** MTT Warning:"
	    echo "    ${sympar_word} is reserved (Reduce)"

	    echo ""
	fi
    done
done




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