- added missing ending ';' to rules to get rid of bison warnings
authorborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Wed, 7 Aug 2002 21:18:23 +0000 (21:18 +0000)
committerborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Wed, 7 Aug 2002 21:18:23 +0000 (21:18 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2059 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/SDCC.y

index ac4503c4488c5fe6aa7a4eab080a97969cb84fdb..adf00af5e642856e55aa64e2b5e90b53d4e38d96 100644 (file)
@@ -1015,6 +1015,7 @@ pointer
                 default:
                   // this could be just "constant" 
                   // werror(W_PTR_TYPE_INVALID);
+                    ;
                 }
             }
             else 
@@ -1171,6 +1172,7 @@ abstract_declarator2
        $1->next=p;
      }
    }
+   ;
 
 initializer
    : assignment_expr                { $$ = newiList(INIT_NODE,$1); }
@@ -1312,6 +1314,7 @@ while : WHILE  {  /* create and push the continue , break & body labels */
                  sprintf (lbuff,"_whilebody_%d",Lblnum++);
                  $$ = newSymbol(lbuff,NestLevel);
                }
+   ;
 
 do : DO {  /* create and push the continue , break & body Labels */
            static int Lblnum = 0 ;
@@ -1326,6 +1329,8 @@ do : DO {  /* create and push the continue , break & body Labels */
           sprintf (lbuff,"_dobody_%d",Lblnum++);
           $$ = newSymbol (lbuff,NestLevel);       
         }
+   ;
+
 for : FOR { /* create & push continue, break & body labels */
             static int Lblnum = 0 ;
          
@@ -1342,6 +1347,7 @@ for : FOR { /* create & push continue, break & body labels */
            sprintf (lbuff,"_forcond_%d",Lblnum++);
            STACK_PUSH(forStack,newSymbol(lbuff,NestLevel));
           }
+   ;
 
 iteration_statement  
    : while '(' expr ')'  statement