updated branch

This commit is contained in:
amarjeetkapoor1 2016-06-26 21:50:05 +05:30
parent 662773bae9
commit 02b735c6ae
2 changed files with 2 additions and 7 deletions

View file

@ -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<<msg<<endl;
argument=NULL;
}

View file

@ -103,13 +103,6 @@ std::vector<std::string> 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;
%}