diff --git a/src/comment_parser.y b/src/comment_parser.y index 209c8bba..9c49dc7a 100644 --- a/src/comment_parser.y +++ b/src/comment_parser.y @@ -4,6 +4,7 @@ using namespace std; #include "Assignment.h" #include "expression.h" + #include "printutils.h" #include "value.h" void yyerror(char *); int yylex(void); @@ -125,6 +126,7 @@ word: %% void yyerror(char *msg) { + PRINTD("ERROR IN PARAMETER: Parser error in comments of file \n "); cout< openfilenames; std::string filename; std::string filepath; -extern YYLTYPE parserlloc; -#define yylloc parserlloc - -int yycolumn = 1; -#define YY_USER_ACTION yylloc.first_line = yylloc.last_line = yylineno; \ - yylloc.first_column = yycolumn; yylloc.last_column = yycolumn+yyleng-1; \ - yycolumn += yyleng; %}