1 /* |
1 /* |
2 * (c) 2003 Mario de Sousa |
2 * matiec - a compiler for the programming languages defined in IEC 61131-3 |
3 * |
3 * |
4 * Offered to the public under the terms of the GNU General Public License |
4 * Copyright (C) 2003-2011 Mario de Sousa (msousa@fe.up.pt) |
5 * as published by the Free Software Foundation; either version 2 of the |
5 * |
6 * License, or (at your option) any later version. |
6 * This program is free software: you can redistribute it and/or modify |
7 * |
7 * it under the terms of the GNU General Public License as published by |
8 * This program is distributed in the hope that it will be useful, but |
8 * the Free Software Foundation, either version 3 of the License, or |
9 * WITHOUT ANY WARRANTY; without even the implied warranty of |
9 * (at your option) any later version. |
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General |
10 * |
11 * Public License for more details. |
11 * This program is distributed in the hope that it will be useful, |
|
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 * GNU General Public License for more details. |
|
15 * |
|
16 * You should have received a copy of the GNU General Public License |
|
17 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
18 * |
12 * |
19 * |
13 * This code is made available on the understanding that it will not be |
20 * This code is made available on the understanding that it will not be |
14 * used in safety-critical situations without a full and competent review. |
21 * used in safety-critical situations without a full and competent review. |
15 */ |
22 */ |
16 |
23 |
17 /* |
24 /* |
18 * An IEC 61131-3 IL and ST compiler. |
25 * An IEC 61131-3 compiler. |
19 * |
26 * |
20 * Based on the |
27 * Based on the |
21 * FINAL DRAFT - IEC 61131-3, 2nd Ed. (2001-12-10) |
28 * FINAL DRAFT - IEC 61131-3, 2nd Ed. (2001-12-10) |
22 * |
29 * |
23 */ |
30 */ |
105 void *visit(dword_type_name_c *symbol); |
112 void *visit(dword_type_name_c *symbol); |
106 void *visit(lword_type_name_c *symbol); |
113 void *visit(lword_type_name_c *symbol); |
107 void *visit(string_type_name_c *symbol); |
114 void *visit(string_type_name_c *symbol); |
108 void *visit(wstring_type_name_c *symbol); |
115 void *visit(wstring_type_name_c *symbol); |
109 |
116 |
|
117 void *visit(safetime_type_name_c *symbol); |
|
118 void *visit(safebool_type_name_c *symbol); |
|
119 void *visit(safesint_type_name_c *symbol); |
|
120 void *visit(safeint_type_name_c *symbol); |
|
121 void *visit(safedint_type_name_c *symbol); |
|
122 void *visit(safelint_type_name_c *symbol); |
|
123 void *visit(safeusint_type_name_c *symbol); |
|
124 void *visit(safeuint_type_name_c *symbol); |
|
125 void *visit(safeudint_type_name_c *symbol); |
|
126 void *visit(safeulint_type_name_c *symbol); |
|
127 void *visit(safereal_type_name_c *symbol); |
|
128 void *visit(safelreal_type_name_c *symbol); |
|
129 void *visit(safedate_type_name_c *symbol); |
|
130 void *visit(safetod_type_name_c *symbol); |
|
131 void *visit(safedt_type_name_c *symbol); |
|
132 void *visit(safebyte_type_name_c *symbol); |
|
133 void *visit(safeword_type_name_c *symbol); |
|
134 void *visit(safedword_type_name_c *symbol); |
|
135 void *visit(safelword_type_name_c *symbol); |
|
136 void *visit(safestring_type_name_c *symbol); |
|
137 void *visit(safewstring_type_name_c *symbol); |
|
138 |
110 /********************************/ |
139 /********************************/ |
111 /* B 1.3.3 - Derived data types */ |
140 /* B 1.3.3 - Derived data types */ |
112 /********************************/ |
141 /********************************/ |
113 /* simple_type_name ':' simple_spec_init */ |
142 /* simple_type_name ':' simple_spec_init */ |
114 void *visit(simple_type_declaration_c *symbol); |
143 void *visit(simple_type_declaration_c *symbol); |