Skip CONFIGURATION declarations in stage 3 for now, so semantic analysis does not stop when a configuration is encountered.
authorMario de Sousa <msousa@fe.up.pt>
Fri, 10 Jun 2011 06:30:30 +0100
changeset 319 1669977e84f4
parent 318 746a357b8747
child 320 4df13059b982
Skip CONFIGURATION declarations in stage 3 for now, so semantic analysis does not stop when a configuration is encountered.
stage3/visit_expression_type.cc
stage3/visit_expression_type.hh
--- a/stage3/visit_expression_type.cc	Thu Jun 09 17:51:00 2011 +0200
+++ b/stage3/visit_expression_type.cc	Fri Jun 10 06:30:30 2011 +0100
@@ -946,6 +946,16 @@
 
 
 
+/********************************/
+/* B 1.7 Configuration elements */
+/********************************/
+void *visit_expression_type_c::visit(configuration_declaration_c *symbol) {
+  // TODO !!!
+  /* for the moment we must return NULL so semantic analysis of remaining code is not interrupted! */
+  return NULL;
+}
+
+
 /****************************************/
 /* B.2 - Language IL (Instruction List) */
 /****************************************/
--- a/stage3/visit_expression_type.hh	Thu Jun 09 17:51:00 2011 +0200
+++ b/stage3/visit_expression_type.hh	Fri Jun 10 06:30:30 2011 +0100
@@ -237,7 +237,12 @@
     void *visit(array_variable_c *symbol);
     void *visit(structured_variable_c *symbol);
 
-    /****************************************/
+    /********************************/
+    /* B 1.7 Configuration elements */
+    /********************************/
+    void *visit(configuration_declaration_c *symbol);
+
+/****************************************/
     /* B.2 - Language IL (Instruction List) */
     /****************************************/
     /***********************************/