From 5dec674c79ec70f3332d3d6dc46b0789cbbd657a Mon Sep 17 00:00:00 2001 From: Christophe Alexandre Date: Tue, 6 May 2003 10:24:43 +0000 Subject: [PATCH] ajout de ; dans les expressions ... --- alliance/src/ocp/src/placer/iocgram.y | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/alliance/src/ocp/src/placer/iocgram.y b/alliance/src/ocp/src/placer/iocgram.y index 615f3302..92331d6e 100644 --- a/alliance/src/ocp/src/placer/iocgram.y +++ b/alliance/src/ocp/src/placer/iocgram.y @@ -33,7 +33,8 @@ char *text; %% file : - | orientation PAROUV expr PARFER file; + | orientation PAROUV expr PARFER file + ; orientation : TOP { if (top_used == 0){ @@ -60,17 +61,20 @@ orientation : TOP { } else yyerror("on ioc file : LEFT declared twice"); } | IGNORE {con_orient = ' ';} + ; expr : - | iopin expr; - | space expr; + | iopin expr + | space expr + ; -iopin : PAROUV IOPIN iopin1 PARFER PTVIRG; +iopin : PAROUV IOPIN iopin1 PARFER PTVIRG + ; -space : SPACE IOCID PTVIRG { - pt_list = add_space(pt_list, con_orient, $2); +space : SPACE IOCID PTVIRG { pt_list = add_space(pt_list, con_orient, $2); } + ; iopin1 : IOCID PTZR { l = 0; @@ -91,6 +95,7 @@ iopin1 : IOCID PTZR { buf[l] = '\0'; pt_list = add_con(pt_list, con_orient, buf); } + ; %% int yyerror (char *str)