ccb@204: /* ccb@204: * (c) 20099 Catarina da Costa Boucinha ccb@204: * ccb@204: * Offered to the public under the terms of the GNU General Public License ccb@204: * as published by the Free Software Foundation; either version 2 of the ccb@204: * License, or (at your option) any later version. ccb@204: * ccb@204: * This program is distributed in the hope that it will be useful, but ccb@204: * WITHOUT ANY WARRANTY; without even the implied warranty of ccb@204: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General ccb@204: * Public License for more details. ccb@204: * ccb@204: * This code is made available on the understanding that it will not be ccb@204: * used in safety-critical situations without a full and competent review. ccb@204: */ ccb@204: ccb@204: /* ccb@204: * An IEC 61131-3 IL and ST compiler. ccb@204: * ccb@204: * Based on the ccb@204: * FINAL DRAFT - IEC 61131-3, 2nd Ed. (2009-04-24) ccb@204: * ccb@204: */ ccb@204: ccb@204: #include "stage3.hh" ccb@204: ccb@204: int type_safety(symbol_c *tree_root){ ccb@204: visit_expression_type_c visit_expression_type(tree_root); ccb@204: ccb@204: (*tree_root).accept(visit_expression_type); ccb@204: ccb@204: return 0; ccb@204: } ccb@204: ccb@204: int stage3(symbol_c *tree_root){ ccb@204: return type_safety(tree_root); ccb@204: }