Paananen Osmo wrote:
  Try with older version of bison. It works.

% bison --version
bison (GNU Bison) 1.35
Indeed it does, thanks for the hint.
It seems my hunch was right, with the attached patch it works with bison 1.35, 1.75 and 1.875.

Again: I am not a yacc/bison expert.. someone should check I did not change the functionality of the conf_yacc.y file.

Sincerely,

Richard van den Berg
*** conf_yacc.y.org     2003-01-16 11:37:34.000000000 +0100
--- conf_yacc.y 2003-01-28 13:41:50.000000000 +0100
***************
*** 143,161 ****
         | TEOF {
              newlinelastinconfig=1;
            YYACCEPT;
!           } ;
         | TNEWLINE 
         | TDBSPEC {
            error(220,"Got @@dbspec.Stopping\n");
          YYACCEPT;
!           } ;
         | TBEGIN_DB {
          error(220,"Got @@begin_db. Stopping\n");
          YYACCEPT;
!           } ;
         | TEND_DB {
          conferror("Error while reading configuration");
!           } ;
         | error {
          conferror("Error while reading configuration");
          YYABORT;
--- 143,161 ----
         | TEOF {
              newlinelastinconfig=1;
            YYACCEPT;
!           }
         | TNEWLINE 
         | TDBSPEC {
            error(220,"Got @@dbspec.Stopping\n");
          YYACCEPT;
!           }
         | TBEGIN_DB {
          error(220,"Got @@begin_db. Stopping\n");
          YYACCEPT;
!           }
         | TEND_DB {
          conferror("Error while reading configuration");
!           }
         | error {
          conferror("Error while reading configuration");
          YYABORT;

Reply via email to