Make semantic error message compatible with beremiz
authorEdouard Tisserant
Mon, 04 Apr 2011 18:54:55 +0200
changeset 273 beb05fe75e0c
parent 272 579db02bebd9
child 278 050d31dd7c74
Make semantic error message compatible with beremiz
stage3/visit_expression_type.cc
--- a/stage3/visit_expression_type.cc	Mon Apr 04 17:19:35 2011 +0200
+++ b/stage3/visit_expression_type.cc	Mon Apr 04 18:54:55 2011 +0200
@@ -57,7 +57,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);                                                                       \