|
1 /* |
|
2 * matiec - a compiler for the programming languages defined in IEC 61131-3 |
|
3 * |
|
4 * Copyright (C) 2012 Mario de Sousa (msousa@fe.up.pt) |
|
5 * |
|
6 * |
|
7 * This program is free software: you can redistribute it and/or modify |
|
8 * it under the terms of the GNU General Public License as published by |
|
9 * the Free Software Foundation, either version 3 of the License, or |
|
10 * (at your option) any later version. |
|
11 * |
|
12 * This program is distributed in the hope that it will be useful, |
|
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
15 * GNU General Public License for more details. |
|
16 * |
|
17 * You should have received a copy of the GNU General Public License |
|
18 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
19 * |
|
20 * |
|
21 * This code is made available on the understanding that it will not be |
|
22 * used in safety-critical situations without a full and competent review. |
|
23 */ |
|
24 |
|
25 /* |
|
26 * An IEC 61131-3 compiler. |
|
27 * |
|
28 * Based on the |
|
29 * FINAL DRAFT - IEC 61131-3, 2nd Ed. (2001-12-10) |
|
30 * |
|
31 */ |
|
32 |
|
33 |
|
34 /* |
|
35 * forced_narrow_candidate_datatypes_c |
|
36 * |
|
37 */ |
|
38 |
|
39 |
|
40 |
|
41 #include "../absyntax_utils/absyntax_utils.hh" |
|
42 #include "narrow_candidate_datatypes.hh" |
|
43 |
|
44 |
|
45 |
|
46 class forced_narrow_candidate_datatypes_c: public narrow_candidate_datatypes_c { |
|
47 |
|
48 private: |
|
49 |
|
50 private: |
|
51 |
|
52 public: |
|
53 forced_narrow_candidate_datatypes_c(symbol_c *ignore); |
|
54 virtual ~forced_narrow_candidate_datatypes_c(void); |
|
55 |
|
56 /****************************************/ |
|
57 /* B.2 - Language IL (Instruction List) */ |
|
58 /****************************************/ |
|
59 /***********************************/ |
|
60 /* B 2.1 Instructions and Operands */ |
|
61 /***********************************/ |
|
62 void *visit(instruction_list_c *symbol); |
|
63 void *visit(il_instruction_c *symbol); |
|
64 // void *visit(il_simple_operation_c *symbol); |
|
65 // void *visit(il_function_call_c *symbol); |
|
66 // void *visit(il_expression_c *symbol); |
|
67 // void *visit(il_jump_operation_c *symbol); |
|
68 // void *visit(il_fb_call_c *symbol); |
|
69 // void *visit(il_formal_funct_call_c *symbol); |
|
70 // void *visit(il_operand_list_c *symbol); |
|
71 // void *visit(simple_instr_list_c *symbol); |
|
72 // void *visit(il_simple_instruction_c*symbol); |
|
73 // void *visit(il_param_list_c *symbol); |
|
74 // void *visit(il_param_assignment_c *symbol); |
|
75 // void *visit(il_param_out_assignment_c *symbol); |
|
76 // void *visit(il_assign_operator_c *symbol); |
|
77 // void *visit(il_assign_operator_c *symbol); |
|
78 |
|
79 }; // forced_narrow_candidate_datatypes_c |
|
80 |
|
81 |
|
82 |
|
83 |
|
84 |
|
85 |
|
86 |
|
87 |