author | Mario de Sousa <msousa@fe.up.pt> |
Fri, 02 Feb 2018 18:31:40 +0000 | |
changeset 1068 | 222879991f44 |
parent 826 | 1e6bf9839ece |
permissions | -rw-r--r-- |
181 | 1 |
/* |
265
4d222f46f8cc
Updating license info (with Edouard's permission for relevant files).
Mario de Sousa <msousa@fe.up.pt>
parents:
238
diff
changeset
|
2 |
* matiec - a compiler for the programming languages defined in IEC 61131-3 |
181 | 3 |
* |
265
4d222f46f8cc
Updating license info (with Edouard's permission for relevant files).
Mario de Sousa <msousa@fe.up.pt>
parents:
238
diff
changeset
|
4 |
* Copyright (C) 2003-2011 Mario de Sousa (msousa@fe.up.pt) |
279
c0453b7f99df
Re-generated std lib related code, with updated headers, updated all forgotten headers
Edouard Tisserant
parents:
265
diff
changeset
|
5 |
* Copyright (C) 2007-2011 Laurent Bessard and Edouard Tisserant |
181 | 6 |
* |
265
4d222f46f8cc
Updating license info (with Edouard's permission for relevant files).
Mario de Sousa <msousa@fe.up.pt>
parents:
238
diff
changeset
|
7 |
* This program is free software: you can redistribute it and/or modify |
4d222f46f8cc
Updating license info (with Edouard's permission for relevant files).
Mario de Sousa <msousa@fe.up.pt>
parents:
238
diff
changeset
|
8 |
* it under the terms of the GNU General Public License as published by |
4d222f46f8cc
Updating license info (with Edouard's permission for relevant files).
Mario de Sousa <msousa@fe.up.pt>
parents:
238
diff
changeset
|
9 |
* the Free Software Foundation, either version 3 of the License, or |
4d222f46f8cc
Updating license info (with Edouard's permission for relevant files).
Mario de Sousa <msousa@fe.up.pt>
parents:
238
diff
changeset
|
10 |
* (at your option) any later version. |
4d222f46f8cc
Updating license info (with Edouard's permission for relevant files).
Mario de Sousa <msousa@fe.up.pt>
parents:
238
diff
changeset
|
11 |
* |
4d222f46f8cc
Updating license info (with Edouard's permission for relevant files).
Mario de Sousa <msousa@fe.up.pt>
parents:
238
diff
changeset
|
12 |
* This program is distributed in the hope that it will be useful, |
4d222f46f8cc
Updating license info (with Edouard's permission for relevant files).
Mario de Sousa <msousa@fe.up.pt>
parents:
238
diff
changeset
|
13 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
4d222f46f8cc
Updating license info (with Edouard's permission for relevant files).
Mario de Sousa <msousa@fe.up.pt>
parents:
238
diff
changeset
|
14 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
4d222f46f8cc
Updating license info (with Edouard's permission for relevant files).
Mario de Sousa <msousa@fe.up.pt>
parents:
238
diff
changeset
|
15 |
* GNU General Public License for more details. |
4d222f46f8cc
Updating license info (with Edouard's permission for relevant files).
Mario de Sousa <msousa@fe.up.pt>
parents:
238
diff
changeset
|
16 |
* |
4d222f46f8cc
Updating license info (with Edouard's permission for relevant files).
Mario de Sousa <msousa@fe.up.pt>
parents:
238
diff
changeset
|
17 |
* You should have received a copy of the GNU General Public License |
4d222f46f8cc
Updating license info (with Edouard's permission for relevant files).
Mario de Sousa <msousa@fe.up.pt>
parents:
238
diff
changeset
|
18 |
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
4d222f46f8cc
Updating license info (with Edouard's permission for relevant files).
Mario de Sousa <msousa@fe.up.pt>
parents:
238
diff
changeset
|
19 |
* |
181 | 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 |
/* |
|
265
4d222f46f8cc
Updating license info (with Edouard's permission for relevant files).
Mario de Sousa <msousa@fe.up.pt>
parents:
238
diff
changeset
|
26 |
* An IEC 61131-3 compiler. |
181 | 27 |
* |
28 |
* Based on the |
|
29 |
* FINAL DRAFT - IEC 61131-3, 2nd Ed. (2001-12-10) |
|
30 |
* |
|
31 |
*/ |
|
32 |
||
33 |
||
34 |
/* Decomposes a variable instance name into its constituents, |
|
35 |
* example: |
|
36 |
* window.points[1].coordinate.x |
|
37 |
* |
|
38 |
* will succesfully return |
|
39 |
* - window |
|
40 |
* - points |
|
41 |
* - coordinate |
|
42 |
* - x |
|
43 |
* on succesive calls to decompose_var_instance_name_c::next_part() |
|
44 |
*/ |
|
45 |
||
46 |
||
47 |
||
48 |
#include "decompose_var_instance_name.hh" |
|
49 |
||
50 |
decompose_var_instance_name_c::decompose_var_instance_name_c(symbol_c *variable_instance_name) { |
|
51 |
variable_name = variable_instance_name; |
|
52 |
next_variable_name = NULL; |
|
53 |
current_recursive_variable_name = NULL; |
|
54 |
previously_returned_variable_name = NULL; |
|
826
1e6bf9839ece
Add capability of returning array subscript list while decomposing a struct/array variable.
mjsousa
parents:
825
diff
changeset
|
55 |
current_array_subscript_list = NULL; |
181 | 56 |
} |
57 |
||
826
1e6bf9839ece
Add capability of returning array subscript list while decomposing a struct/array variable.
mjsousa
parents:
825
diff
changeset
|
58 |
/* Get the next element in the strcutured variable */ |
1e6bf9839ece
Add capability of returning array subscript list while decomposing a struct/array variable.
mjsousa
parents:
825
diff
changeset
|
59 |
symbol_c *decompose_var_instance_name_c::get_next() { |
181 | 60 |
/* We must always start from the top! |
61 |
* See note in the structured_variable_c visitor |
|
62 |
* to understand why... |
|
63 |
*/ |
|
826
1e6bf9839ece
Add capability of returning array subscript list while decomposing a struct/array variable.
mjsousa
parents:
825
diff
changeset
|
64 |
current_array_subscript_list = NULL; |
181 | 65 |
symbol_c *res = (symbol_c *)variable_name->accept(*this); |
825
6658fc039264
Code cleanup: Remove unused option = Delete dead code.
mjsousa
parents:
382
diff
changeset
|
66 |
next_variable_name = current_recursive_variable_name; |
181 | 67 |
|
68 |
if (previously_returned_variable_name == res) |
|
825
6658fc039264
Code cleanup: Remove unused option = Delete dead code.
mjsousa
parents:
382
diff
changeset
|
69 |
return NULL; |
6658fc039264
Code cleanup: Remove unused option = Delete dead code.
mjsousa
parents:
382
diff
changeset
|
70 |
|
6658fc039264
Code cleanup: Remove unused option = Delete dead code.
mjsousa
parents:
382
diff
changeset
|
71 |
previously_returned_variable_name = res; |
181 | 72 |
return res; |
73 |
} |
|
74 |
||
826
1e6bf9839ece
Add capability of returning array subscript list while decomposing a struct/array variable.
mjsousa
parents:
825
diff
changeset
|
75 |
/* If the current element in the structured variable is an array, return its subscript_list, |
1e6bf9839ece
Add capability of returning array subscript list while decomposing a struct/array variable.
mjsousa
parents:
825
diff
changeset
|
76 |
* otherwise return NULL |
1e6bf9839ece
Add capability of returning array subscript list while decomposing a struct/array variable.
mjsousa
parents:
825
diff
changeset
|
77 |
*/ |
1e6bf9839ece
Add capability of returning array subscript list while decomposing a struct/array variable.
mjsousa
parents:
825
diff
changeset
|
78 |
list_c *decompose_var_instance_name_c::get_current_arraysubs_list(void) {return current_array_subscript_list;} |
1e6bf9839ece
Add capability of returning array subscript list while decomposing a struct/array variable.
mjsousa
parents:
825
diff
changeset
|
79 |
|
202
da1a8186f86f
Initial (very rough) version of semantic checker (stage3)
Catarina Boucinha <ccb@fe.up.pt>
parents:
181
diff
changeset
|
80 |
/*************************/ |
da1a8186f86f
Initial (very rough) version of semantic checker (stage3)
Catarina Boucinha <ccb@fe.up.pt>
parents:
181
diff
changeset
|
81 |
/* B.1 - Common elements */ |
da1a8186f86f
Initial (very rough) version of semantic checker (stage3)
Catarina Boucinha <ccb@fe.up.pt>
parents:
181
diff
changeset
|
82 |
/*************************/ |
da1a8186f86f
Initial (very rough) version of semantic checker (stage3)
Catarina Boucinha <ccb@fe.up.pt>
parents:
181
diff
changeset
|
83 |
/*******************************************/ |
da1a8186f86f
Initial (very rough) version of semantic checker (stage3)
Catarina Boucinha <ccb@fe.up.pt>
parents:
181
diff
changeset
|
84 |
/* B 1.1 - Letters, digits and identifiers */ |
da1a8186f86f
Initial (very rough) version of semantic checker (stage3)
Catarina Boucinha <ccb@fe.up.pt>
parents:
181
diff
changeset
|
85 |
/*******************************************/ |
da1a8186f86f
Initial (very rough) version of semantic checker (stage3)
Catarina Boucinha <ccb@fe.up.pt>
parents:
181
diff
changeset
|
86 |
/* sometimes (e.g. FB calls) the name of the variable is stored directly in an identifier_c object */ |
da1a8186f86f
Initial (very rough) version of semantic checker (stage3)
Catarina Boucinha <ccb@fe.up.pt>
parents:
181
diff
changeset
|
87 |
void *decompose_var_instance_name_c::visit(identifier_c *symbol) {return (void *)symbol;} |
da1a8186f86f
Initial (very rough) version of semantic checker (stage3)
Catarina Boucinha <ccb@fe.up.pt>
parents:
181
diff
changeset
|
88 |
|
181 | 89 |
/*********************/ |
90 |
/* B 1.4 - Variables */ |
|
91 |
/*********************/ |
|
92 |
void *decompose_var_instance_name_c::visit(symbolic_variable_c *symbol) {return (void *)(symbol->var_name);} |
|
93 |
||
94 |
/********************************************/ |
|
95 |
/* B.1.4.1 Directly Represented Variables */ |
|
96 |
/********************************************/ |
|
97 |
void *decompose_var_instance_name_c::visit(direct_variable_c *symbol) {return (void *)symbol;} |
|
98 |
||
99 |
/*************************************/ |
|
100 |
/* B.1.4.2 Multi-element Variables */ |
|
101 |
/*************************************/ |
|
102 |
/* subscripted_variable '[' subscript_list ']' */ |
|
103 |
// SYM_REF2(array_variable_c, subscripted_variable, subscript_list) |
|
104 |
void *decompose_var_instance_name_c::visit(array_variable_c *symbol) { |
|
826
1e6bf9839ece
Add capability of returning array subscript list while decomposing a struct/array variable.
mjsousa
parents:
825
diff
changeset
|
105 |
if (NULL == symbol->subscript_list) ERROR; // array may not have an empty subscript list! |
1e6bf9839ece
Add capability of returning array subscript list while decomposing a struct/array variable.
mjsousa
parents:
825
diff
changeset
|
106 |
current_array_subscript_list = dynamic_cast<list_c *>(symbol->subscript_list); |
1e6bf9839ece
Add capability of returning array subscript list while decomposing a struct/array variable.
mjsousa
parents:
825
diff
changeset
|
107 |
if (NULL == current_array_subscript_list) ERROR; // if it does not point to a subscript_list_c, then the abstract syntax tree has been changed, and this code needs to be fixed accordingly! |
1e6bf9839ece
Add capability of returning array subscript list while decomposing a struct/array variable.
mjsousa
parents:
825
diff
changeset
|
108 |
|
1e6bf9839ece
Add capability of returning array subscript list while decomposing a struct/array variable.
mjsousa
parents:
825
diff
changeset
|
109 |
/* NOTE: the subscripted_variable may itself be a structure or an array!, so we must recursevily visit! */ |
1e6bf9839ece
Add capability of returning array subscript list while decomposing a struct/array variable.
mjsousa
parents:
825
diff
changeset
|
110 |
/* the next line will call either: |
1e6bf9839ece
Add capability of returning array subscript list while decomposing a struct/array variable.
mjsousa
parents:
825
diff
changeset
|
111 |
* - visit(structured_variable_c *) or visit(array_variable_c *), if the array variable is itself an element of another array os structure |
1e6bf9839ece
Add capability of returning array subscript list while decomposing a struct/array variable.
mjsousa
parents:
825
diff
changeset
|
112 |
* - visit(symbolic_variable_c *) if it is a simple array variable |
181 | 113 |
*/ |
114 |
return symbol->subscripted_variable->accept(*this); |
|
115 |
} |
|
116 |
||
117 |
/* record_variable '.' field_selector */ |
|
118 |
/* WARNING: input and/or output variables of function blocks |
|
119 |
* may be accessed as fields of a tructured variable! |
|
120 |
* Code handling a structured_variable_c must take |
|
121 |
* this into account! |
|
122 |
*/ |
|
123 |
//SYM_REF2(structured_variable_c, record_variable, field_selector) |
|
124 |
void *decompose_var_instance_name_c::visit(structured_variable_c *symbol) { |
|
125 |
/* NOTE: The following code will not work, as structured_variable_c |
|
126 |
* are grouped on the left, and not on the right! |
|
127 |
* |
|
128 |
* example: window.origin.x |
|
129 |
* will result in |
|
130 |
* s1 = structured_variable_c("window, "origin"); |
|
131 |
* s2 = structured_variable_c(s1, "x"); |
|
132 |
* AND NOT |
|
133 |
* s1 = structured_variable_c("origin", "x"); |
|
134 |
* s2 = structured_variable_c("window", s1); |
|
135 |
* |
|
136 |
* as the following code assumes!! |
|
137 |
* |
|
138 |
current_variable_name = symbol->field_selector; |
|
139 |
return symbol->record_variable->accept(*this); |
|
140 |
*/ |
|
141 |
||
142 |
/* The correct code, is therefore more complex... */ |
|
143 |
if (next_variable_name == symbol) { |
|
382
ac6dfec701c9
Fix bug in parser while trying to use IL operator like S1, R1, etc... as standard function block interface variable in structured_variable syntax and bug in code generator while generating code for assignment of function block interface variable using structured_variable syntax
laurent
parents:
279
diff
changeset
|
144 |
return (void *)symbol->field_selector->accept(*this); |
181 | 145 |
} |
146 |
||
826
1e6bf9839ece
Add capability of returning array subscript list while decomposing a struct/array variable.
mjsousa
parents:
825
diff
changeset
|
147 |
current_array_subscript_list = NULL; |
181 | 148 |
current_recursive_variable_name = symbol; |
826
1e6bf9839ece
Add capability of returning array subscript list while decomposing a struct/array variable.
mjsousa
parents:
825
diff
changeset
|
149 |
/* the next line will call either: |
1e6bf9839ece
Add capability of returning array subscript list while decomposing a struct/array variable.
mjsousa
parents:
825
diff
changeset
|
150 |
* - visit(structured_variable_c *) or visit(array_variable_c *), if the record variable has more elements to visit |
1e6bf9839ece
Add capability of returning array subscript list while decomposing a struct/array variable.
mjsousa
parents:
825
diff
changeset
|
151 |
* - visit(symbolic_variable_c *) if it is the last element in the record variable |
1e6bf9839ece
Add capability of returning array subscript list while decomposing a struct/array variable.
mjsousa
parents:
825
diff
changeset
|
152 |
*/ |
1e6bf9839ece
Add capability of returning array subscript list while decomposing a struct/array variable.
mjsousa
parents:
825
diff
changeset
|
153 |
return symbol->record_variable->accept(*this); |
181 | 154 |
} |
155 |
||
382
ac6dfec701c9
Fix bug in parser while trying to use IL operator like S1, R1, etc... as standard function block interface variable in structured_variable syntax and bug in code generator while generating code for assignment of function block interface variable using structured_variable syntax
laurent
parents:
279
diff
changeset
|
156 |
/********************************/ |
ac6dfec701c9
Fix bug in parser while trying to use IL operator like S1, R1, etc... as standard function block interface variable in structured_variable syntax and bug in code generator while generating code for assignment of function block interface variable using structured_variable syntax
laurent
parents:
279
diff
changeset
|
157 |
/* B 2.2 - Operators */ |
ac6dfec701c9
Fix bug in parser while trying to use IL operator like S1, R1, etc... as standard function block interface variable in structured_variable syntax and bug in code generator while generating code for assignment of function block interface variable using structured_variable syntax
laurent
parents:
279
diff
changeset
|
158 |
/********************************/ |
ac6dfec701c9
Fix bug in parser while trying to use IL operator like S1, R1, etc... as standard function block interface variable in structured_variable syntax and bug in code generator while generating code for assignment of function block interface variable using structured_variable syntax
laurent
parents:
279
diff
changeset
|
159 |
void *decompose_var_instance_name_c::visit(LD_operator_c *symbol) {return (void *)&LD_operator_name;} |
ac6dfec701c9
Fix bug in parser while trying to use IL operator like S1, R1, etc... as standard function block interface variable in structured_variable syntax and bug in code generator while generating code for assignment of function block interface variable using structured_variable syntax
laurent
parents:
279
diff
changeset
|
160 |
void *decompose_var_instance_name_c::visit(S_operator_c *symbol) {return (void *)&S_operator_name;} |
ac6dfec701c9
Fix bug in parser while trying to use IL operator like S1, R1, etc... as standard function block interface variable in structured_variable syntax and bug in code generator while generating code for assignment of function block interface variable using structured_variable syntax
laurent
parents:
279
diff
changeset
|
161 |
void *decompose_var_instance_name_c::visit(R_operator_c *symbol) {return (void *)&R_operator_name;} |
ac6dfec701c9
Fix bug in parser while trying to use IL operator like S1, R1, etc... as standard function block interface variable in structured_variable syntax and bug in code generator while generating code for assignment of function block interface variable using structured_variable syntax
laurent
parents:
279
diff
changeset
|
162 |
void *decompose_var_instance_name_c::visit(S1_operator_c *symbol) {return (void *)&S1_operator_name;} |
ac6dfec701c9
Fix bug in parser while trying to use IL operator like S1, R1, etc... as standard function block interface variable in structured_variable syntax and bug in code generator while generating code for assignment of function block interface variable using structured_variable syntax
laurent
parents:
279
diff
changeset
|
163 |
void *decompose_var_instance_name_c::visit(R1_operator_c *symbol) {return (void *)&R1_operator_name;} |
ac6dfec701c9
Fix bug in parser while trying to use IL operator like S1, R1, etc... as standard function block interface variable in structured_variable syntax and bug in code generator while generating code for assignment of function block interface variable using structured_variable syntax
laurent
parents:
279
diff
changeset
|
164 |
void *decompose_var_instance_name_c::visit(CLK_operator_c *symbol) {return (void *)&CLK_operator_name;} |
ac6dfec701c9
Fix bug in parser while trying to use IL operator like S1, R1, etc... as standard function block interface variable in structured_variable syntax and bug in code generator while generating code for assignment of function block interface variable using structured_variable syntax
laurent
parents:
279
diff
changeset
|
165 |
void *decompose_var_instance_name_c::visit(CU_operator_c *symbol) {return (void *)&CU_operator_name;} |
ac6dfec701c9
Fix bug in parser while trying to use IL operator like S1, R1, etc... as standard function block interface variable in structured_variable syntax and bug in code generator while generating code for assignment of function block interface variable using structured_variable syntax
laurent
parents:
279
diff
changeset
|
166 |
void *decompose_var_instance_name_c::visit(CD_operator_c *symbol) {return (void *)&CD_operator_name;} |
ac6dfec701c9
Fix bug in parser while trying to use IL operator like S1, R1, etc... as standard function block interface variable in structured_variable syntax and bug in code generator while generating code for assignment of function block interface variable using structured_variable syntax
laurent
parents:
279
diff
changeset
|
167 |
void *decompose_var_instance_name_c::visit(PV_operator_c *symbol) {return (void *)&PV_operator_name;} |
ac6dfec701c9
Fix bug in parser while trying to use IL operator like S1, R1, etc... as standard function block interface variable in structured_variable syntax and bug in code generator while generating code for assignment of function block interface variable using structured_variable syntax
laurent
parents:
279
diff
changeset
|
168 |
void *decompose_var_instance_name_c::visit(IN_operator_c *symbol) {return (void *)&IN_operator_name;} |
ac6dfec701c9
Fix bug in parser while trying to use IL operator like S1, R1, etc... as standard function block interface variable in structured_variable syntax and bug in code generator while generating code for assignment of function block interface variable using structured_variable syntax
laurent
parents:
279
diff
changeset
|
169 |
void *decompose_var_instance_name_c::visit(PT_operator_c *symbol) {return (void *)&PT_operator_name;} |
ac6dfec701c9
Fix bug in parser while trying to use IL operator like S1, R1, etc... as standard function block interface variable in structured_variable syntax and bug in code generator while generating code for assignment of function block interface variable using structured_variable syntax
laurent
parents:
279
diff
changeset
|
170 |
|
ac6dfec701c9
Fix bug in parser while trying to use IL operator like S1, R1, etc... as standard function block interface variable in structured_variable syntax and bug in code generator while generating code for assignment of function block interface variable using structured_variable syntax
laurent
parents:
279
diff
changeset
|
171 |
identifier_c decompose_var_instance_name_c::LD_operator_name("LD"); |
ac6dfec701c9
Fix bug in parser while trying to use IL operator like S1, R1, etc... as standard function block interface variable in structured_variable syntax and bug in code generator while generating code for assignment of function block interface variable using structured_variable syntax
laurent
parents:
279
diff
changeset
|
172 |
identifier_c decompose_var_instance_name_c::S_operator_name("S"); |
ac6dfec701c9
Fix bug in parser while trying to use IL operator like S1, R1, etc... as standard function block interface variable in structured_variable syntax and bug in code generator while generating code for assignment of function block interface variable using structured_variable syntax
laurent
parents:
279
diff
changeset
|
173 |
identifier_c decompose_var_instance_name_c::R_operator_name("R"); |
ac6dfec701c9
Fix bug in parser while trying to use IL operator like S1, R1, etc... as standard function block interface variable in structured_variable syntax and bug in code generator while generating code for assignment of function block interface variable using structured_variable syntax
laurent
parents:
279
diff
changeset
|
174 |
identifier_c decompose_var_instance_name_c::S1_operator_name("S1"); |
ac6dfec701c9
Fix bug in parser while trying to use IL operator like S1, R1, etc... as standard function block interface variable in structured_variable syntax and bug in code generator while generating code for assignment of function block interface variable using structured_variable syntax
laurent
parents:
279
diff
changeset
|
175 |
identifier_c decompose_var_instance_name_c::R1_operator_name("R1"); |
ac6dfec701c9
Fix bug in parser while trying to use IL operator like S1, R1, etc... as standard function block interface variable in structured_variable syntax and bug in code generator while generating code for assignment of function block interface variable using structured_variable syntax
laurent
parents:
279
diff
changeset
|
176 |
identifier_c decompose_var_instance_name_c::CLK_operator_name("CLK"); |
ac6dfec701c9
Fix bug in parser while trying to use IL operator like S1, R1, etc... as standard function block interface variable in structured_variable syntax and bug in code generator while generating code for assignment of function block interface variable using structured_variable syntax
laurent
parents:
279
diff
changeset
|
177 |
identifier_c decompose_var_instance_name_c::CU_operator_name("CU"); |
ac6dfec701c9
Fix bug in parser while trying to use IL operator like S1, R1, etc... as standard function block interface variable in structured_variable syntax and bug in code generator while generating code for assignment of function block interface variable using structured_variable syntax
laurent
parents:
279
diff
changeset
|
178 |
identifier_c decompose_var_instance_name_c::CD_operator_name("CD"); |
ac6dfec701c9
Fix bug in parser while trying to use IL operator like S1, R1, etc... as standard function block interface variable in structured_variable syntax and bug in code generator while generating code for assignment of function block interface variable using structured_variable syntax
laurent
parents:
279
diff
changeset
|
179 |
identifier_c decompose_var_instance_name_c::PV_operator_name("PV"); |
ac6dfec701c9
Fix bug in parser while trying to use IL operator like S1, R1, etc... as standard function block interface variable in structured_variable syntax and bug in code generator while generating code for assignment of function block interface variable using structured_variable syntax
laurent
parents:
279
diff
changeset
|
180 |
identifier_c decompose_var_instance_name_c::IN_operator_name("IN"); |
ac6dfec701c9
Fix bug in parser while trying to use IL operator like S1, R1, etc... as standard function block interface variable in structured_variable syntax and bug in code generator while generating code for assignment of function block interface variable using structured_variable syntax
laurent
parents:
279
diff
changeset
|
181 |
identifier_c decompose_var_instance_name_c::PT_operator_name("PT"); |
181 | 182 |
|
183 |