How to get rid of warnings in Bison?

2013-07-30 Thread Bernd Clausen
Hi, I get a lot of warnings in my project. Here is one excerpt of my grammar file: stmtlist : stmt ';'   { printf(".."); } | stmtlist stmt ';'  { printf(".."); } ; 1. line -> warning: unused value: $1 2. line -> warning: unused value: $2 The problem is that I don't want to use

Bison error handling

2013-01-26 Thread Bernd Clausen
I have the following destructor specified for strings like IDENT. %destructor { printf ("free at line %d: %s\n",@$.first_line, $$->c_str()); delete($$); } Now I have the following input. The first line is valid, the second line isn't (identifier is missing): ConfigParam p; ConfigPara