From: borutr Date: Wed, 7 Aug 2002 21:18:23 +0000 (+0000) Subject: - added missing ending ';' to rules to get rid of bison warnings X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=a20699a3fb6fca78aedba6c08fb786ae1f66d808;p=fw%2Fsdcc - added missing ending ';' to rules to get rid of bison warnings git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2059 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/SDCC.y b/src/SDCC.y index ac4503c4..adf00af5 100644 --- a/src/SDCC.y +++ b/src/SDCC.y @@ -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