Reverted semantic error message so that Beremiz can parse them and that user can double-click on error message to open related POU and select the faulty line.
authorEdouard Tisserant
Thu, 07 Apr 2011 11:40:03 +0200
changeset 285 3a60c6ff98b1
parent 284 64a4504633d4
child 288 200efef43c3e
Reverted semantic error message so that Beremiz can parse them and that user can double-click on error message to open related POU and select the faulty line.
stage3/visit_expression_type.cc
--- a/stage3/visit_expression_type.cc	Tue Apr 05 19:42:33 2011 +0100
+++ b/stage3/visit_expression_type.cc	Thu Apr 07 11:40:03 2011 +0200
@@ -58,7 +58,7 @@
                                   (symbol1))
 
 #define STAGE3_ERROR(symbol1, symbol2, msg) {                                          \
-    fprintf(stderr, "semantic error between (%d:%d) and (%d:%d): %s\n",                \
+    fprintf(stderr, "plc.st:%d-%d..%d-%d: error : %s\n",                \
            FIRST_(symbol1,symbol2)->first_line, FIRST_(symbol1,symbol2)->first_column, \
            LAST_(symbol1,symbol2) ->last_line,  LAST_(symbol1,symbol2) ->last_column,  \
            msg);                                                                       \