Possibilite de mettre un espace en premier

This commit is contained in:
Christophe Alexandre 2003-04-16 12:16:00 +00:00
parent 5a6c402d1e
commit 1107eff334
2 changed files with 42 additions and 35 deletions

View File

@ -738,15 +738,20 @@ PPlacement::ParseIocFile(PLoconMap& ploconmap)
} }
switch (tmpcon->ORIENT) switch (tmpcon->ORIENT)
{ {
case 'T' : orientation = NORTH; case 'T':
orientation = NORTH;
break; break;
case 'B' : orientation = SOUTH; case 'B':
orientation = SOUTH;
break; break;
case 'L' : orientation = WEST; case 'L':
orientation = WEST;
break; break;
case 'R' : orientation = EAST; case 'R':
orientation = EAST;
break; break;
default: cerr << "Unknown Orientation for connector: " default:
cerr << "Unknown Orientation for connector: "
<< tmpcon->NAME << endl; << tmpcon->NAME << endl;
exit(1); exit(1);
} }

View File

@ -63,7 +63,7 @@ orientation : TOP {
expr : expr :
| iopin expr; | iopin expr;
| iopin space expr; | space expr;
iopin : PAROUV IOPIN iopin1 PARFER PTVIRG; iopin : PAROUV IOPIN iopin1 PARFER PTVIRG;
@ -112,6 +112,7 @@ con_list* add_con(con_list* ptlist, char orient, char* name)
return ptcon; return ptcon;
} }
con_list* add_space(con_list* ptlist, char orient, char *value) con_list* add_space(con_list* ptlist, char orient, char *value)
{ {
con_list* ptcon; con_list* ptcon;
@ -124,6 +125,7 @@ con_list* add_space(con_list* ptlist, char orient, char *value)
return ptcon; return ptcon;
} }
con_list* iocparse(char *file) con_list* iocparse(char *file)
{ {
extern FILE *yyin; extern FILE *yyin;