vvp: Remove a dead rule for the .port_info statement.

We left an old rule that matched a port_info statement without a
trailing semicolon. Remove that rule ahead of the release.
This commit is contained in:
Stephen Williams 2020-09-22 14:18:24 -07:00
parent a831108c96
commit fec003bd36
1 changed files with 2 additions and 10 deletions

View File

@ -710,19 +710,11 @@ statement
/* Port information for scopes... currently this is just meta-data for VPI queries */ /* Port information for scopes... currently this is just meta-data for VPI queries */
| K_PORT_INFO T_NUMBER port_type T_NUMBER T_STRING ';' | K_PORT_INFO T_NUMBER port_type T_NUMBER T_STRING ';'
{ compile_port_info( $2 /* port_index */, $3, $4 /* width */, { compile_port_info( $2 /* port_index */, $3, $4 /* width */,
$5 /*&name */ ); } $5 /*&name */ ); }
/* Unfortunately, older versions didn't check for a semicolon at the end of
.port_info statements.
To insure backwards compatablitly with old files, we have a duplicate rule
that doesn't require a semicolon. After version 11, this rule will be
disabled (and can safely be deleted. */
| K_PORT_INFO T_NUMBER port_type T_NUMBER T_STRING
{ if (VERSION_MAJOR > 11)
yyerror("syntax error");
compile_port_info( $2 /* port_index */, $3, $4 /* width */,
$5 /*&name */ ); }
| K_TIMESCALE T_NUMBER T_NUMBER';' | K_TIMESCALE T_NUMBER T_NUMBER';'
{ compile_timescale($2, $3); } { compile_timescale($2, $3); }