adding some comments.
authormario
Thu, 01 Nov 2007 20:58:56 +0100
changeset 77 fe4ecf7efa79
parent 76 ec7799ec929b
child 78 aead91ec37cd
adding some comments.
stage1_2/iec.y
--- a/stage1_2/iec.y	Thu Nov 01 20:58:38 2007 +0100
+++ b/stage1_2/iec.y	Thu Nov 01 20:58:56 2007 +0100
@@ -1399,11 +1399,13 @@
 	}
 | library library_element_declaration
 	{$$ = $1; $$->add_element($2);}
+/* ERROR_CHECK_BEGIN */
 | library error END_OF_INPUT
 	{$$ = NULL;
 	 print_err_msg(current_filename, @2.first_line, "unknown error.");
 	 yyerrok;
 	}
+/* ERROR_CHECK_END */
 ;
 
 
@@ -3364,8 +3366,10 @@
   identifier
 | prev_declared_derived_function_name
 	{$$ = $1;
-	 if (not(allow_function_overloading))
+	 if (not(allow_function_overloading)) {
+	   fprintf(stderr, "Function overloading not allowed. Invalid identifier %s\n", ((token_c *)($1))->value);
 	   ERROR;
+	 }
 	}
 ;