stage3/stage3.hh
changeset 205 96d8b6e006f0
parent 204 8ffa211b7f9a
child 257 90782e241346
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/stage3/stage3.hh	Wed Sep 02 14:05:27 2009 +0200
@@ -0,0 +1,42 @@
+/*
+ * (c) 2009 Catarina da Costa Boucinha
+ *
+ * Offered to the public under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
+ * Public License for more details.
+ *
+ * This code is made available on the understanding that it will not be
+ * used in safety-critical situations without a full and competent review.
+ */
+
+/*
+ * An IEC 61131-3 IL and ST compiler.
+ *
+ * Based on the
+ * FINAL DRAFT - IEC 61131-3, 2nd Ed. (2009-04-24)
+ *
+ */
+
+
+// #include <stdio.h>  /* required for NULL */
+#include <string>
+#include <iostream>
+#include <sstream>
+#include <typeinfo>
+#include <list>
+#include <strings.h>
+
+#include "../util/symtable.hh"
+#include "../util/dsymtable.hh"
+#include "../absyntax/visitor.hh"
+
+#include "visit_expression_type.hh"
+
+
+int stage3(symbol_c *tree_root);
+int type_safety(symbol_c *tree_root);