equal
deleted
inserted
replaced
138 symbol->elements[i]->accept(*this); |
138 symbol->elements[i]->accept(*this); |
139 } |
139 } |
140 } |
140 } |
141 |
141 |
142 /* Assert that this algorithm managed to remove all NULL datatypes! */ |
142 /* Assert that this algorithm managed to remove all NULL datatypes! */ |
|
143 /* NOTE: The forced_narrow_candidate_datatypes_c assumes that the original IEC 61131-3 source code does not have any bugs! |
|
144 * This means we cannot run this assertion here, as the compiler will bork in the presence of bug in the code being compiled! Not good!! |
|
145 */ |
|
146 /* |
143 for(int i = symbol->n-1; i >= 0; i--) { |
147 for(int i = symbol->n-1; i >= 0; i--) { |
144 if (NULL == symbol->elements[i]->datatype) |
148 if (NULL == symbol->elements[i]->datatype) |
145 ERROR; |
149 ERROR; |
146 } |
150 } |
147 |
151 */ |
148 return NULL; |
152 return NULL; |
149 } |
153 } |
150 |
154 |
151 |
155 |
152 |
156 |