ajout de ; dans les expressions ...
This commit is contained in:
parent
89b3c60904
commit
5dec674c79
|
@ -33,7 +33,8 @@ char *text;
|
||||||
|
|
||||||
%%
|
%%
|
||||||
file :
|
file :
|
||||||
| orientation PAROUV expr PARFER file;
|
| orientation PAROUV expr PARFER file
|
||||||
|
;
|
||||||
|
|
||||||
orientation : TOP {
|
orientation : TOP {
|
||||||
if (top_used == 0){
|
if (top_used == 0){
|
||||||
|
@ -60,17 +61,20 @@ orientation : TOP {
|
||||||
} else yyerror("on ioc file : LEFT declared twice");
|
} else yyerror("on ioc file : LEFT declared twice");
|
||||||
}
|
}
|
||||||
| IGNORE {con_orient = ' ';}
|
| IGNORE {con_orient = ' ';}
|
||||||
|
;
|
||||||
|
|
||||||
expr :
|
expr :
|
||||||
| iopin expr;
|
| iopin expr
|
||||||
| space expr;
|
| space expr
|
||||||
|
;
|
||||||
|
|
||||||
|
|
||||||
iopin : PAROUV IOPIN iopin1 PARFER PTVIRG;
|
iopin : PAROUV IOPIN iopin1 PARFER PTVIRG
|
||||||
|
;
|
||||||
|
|
||||||
space : SPACE IOCID PTVIRG {
|
space : SPACE IOCID PTVIRG { pt_list = add_space(pt_list, con_orient, $2);
|
||||||
pt_list = add_space(pt_list, con_orient, $2);
|
|
||||||
}
|
}
|
||||||
|
;
|
||||||
|
|
||||||
iopin1 : IOCID PTZR {
|
iopin1 : IOCID PTZR {
|
||||||
l = 0;
|
l = 0;
|
||||||
|
@ -91,6 +95,7 @@ iopin1 : IOCID PTZR {
|
||||||
buf[l] = '\0';
|
buf[l] = '\0';
|
||||||
pt_list = add_con(pt_list, con_orient, buf);
|
pt_list = add_con(pt_list, con_orient, buf);
|
||||||
}
|
}
|
||||||
|
;
|
||||||
%%
|
%%
|
||||||
|
|
||||||
int yyerror (char *str)
|
int yyerror (char *str)
|
||||||
|
|
Loading…
Reference in New Issue