PIPS
smalltalk-defs.h
Go to the documentation of this file.
1 /*
2 
3  $Id: smalltalk-defs.h 23065 2016-03-02 09:05:50Z coelho $
4 
5  Copyright 1989-2016 MINES ParisTech
6 
7  This file is part of PIPS.
8 
9  PIPS is free software: you can redistribute it and/or modify it
10  under the terms of the GNU General Public License as published by
11  the Free Software Foundation, either version 3 of the License, or
12  any later version.
13 
14  PIPS is distributed in the hope that it will be useful, but WITHOUT ANY
15  WARRANTY; without even the implied warranty of MERCHANTABILITY or
16  FITNESS FOR A PARTICULAR PURPOSE.
17 
18  See the GNU General Public License for more details.
19 
20  You should have received a copy of the GNU General Public License
21  along with PIPS. If not, see <http://www.gnu.org/licenses/>.
22 
23 */
24 #ifndef SMALLTALK_DEFS
25 #define SMALLTALK_DEFS
26 
27 #define EMPTY ""
28 #define NL "\n"
29 #define STSEMICOLON "." NL
30 #define SPACE " "
31 
32 #define OPENBRACKET "["
33 #define CLOSEBRACKET "]"
34 
35 #define OPENPAREN "("
36 #define CLOSEPAREN ")"
37 
38 #define OPENBRACE "{"
39 #define CLOSEBRACE "}"
40 
41 #define BEGINTEMPVAR "|"
42 #define ENDTEMPVAR "|"
43 
44 #define SETVALUE ":="
45 #define RETURNVALUE "^"
46 
47 #define COMMENT "\""
48 
49 #define ST_LE "<="
50 #define ST_PLUS "+"
51 #define ST_MINUS "-"
52 
53 #define ST_WHILETRUE "whileTrue:"
54 
55 #define ST_IFTRUE "ifTrue:"
56 #define ST_IFFALSE "ifFalse:"
57 
58 #define ARRAY "Array"
59 #define ARRAY_NEW "new:"
60 #define ARRAY_AT "at:"
61 #define ARRAY_AT_PUT_1 "at:"
62 #define ARRAY_AT_PUT_2 "put:"
63 
64 #define ARRAY2D "Array2D"
65 #define ARRAY2D_NEW1 "width:"
66 #define ARRAY2D_NEW2 "height:"
67 #define ARRAY2D_AT_AT_1 "at:"
68 #define ARRAY2D_AT_AT_2 "at:"
69 #define ARRAY2D_AT_AT_PUT_1 "at:"
70 #define ARRAY2D_AT_AT_PUT_2 "at:"
71 #define ARRAY2D_AT_AT_PUT_3 "put:"
72 
73 #endif