%union with STL

2009-05-22 Thread Paritosh Aggarwal
/*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

Fwd: %union with STL

2009-05-22 Thread Paritosh Aggarwal
/*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