/*JIT PARSER BISON FILE*/
%{
#include
#include "heading.h"
using namespace std;
int yyerror(char *s);
int yylex(void);
%}
%union
{
pair* it;
int val;
}
compiling this gives the following error: jitparser.y:15: error: ISO C++
forbids declaration of ‘pair’ with no type
/*JIT PARSER BISON FILE*/
%{
#include
#include "heading.h"
using namespace std;
int yyerror(char *s);
int yylex(void);
%}
%union
{
pair* it;
int val;
}
compiling this gives the following error: jitparser.y:15: error: ISO C++
forbids declaration of ‘pair’ with no type