I have a bison-flex project working on linux ubuntu vmPlayer, and for some reason I have a warning I can't get off.. this is the beginning of my file, and my program (extra.y is bison file) does start with "lines":
%{
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <string.h>
#include <iostream>
#include <map>
#include <math.h>
#include <algorithm>
int yylex();
void yyerror(const char*)
char dollarOrWave=' ';
%}
%left OR
%left AND
%union {
int int_val;
char* str_val;
} //THIS IS LINE 70 !!
%token<int_val> T_INT
%token<str_val> STREXP
%type<int_val> expr
%type<str_val> stringExp
%start lines
%%
lines:
line { }//checkDollars(); }//checkDollars(); }
| lines line { checkDollars(); numStringVarsFlag=0; }
;
Warning:
extra.y:70 parser name defined to default :"parse"
Searching I've seen that: Bison grammar warnings but it still gives me that warning.. ..HELP??