Add $recrem to specify syntax.

This commit is contained in:
steve 2003-08-31 21:14:28 +00:00
parent 7c1401a2ba
commit fdb5731b8b
2 changed files with 10 additions and 3 deletions

View File

@ -19,7 +19,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#ifdef HAVE_CVS_IDENT
#ident "$Id: lexor.lex,v 1.84 2003/08/28 04:11:18 steve Exp $"
#ident "$Id: lexor.lex,v 1.85 2003/08/31 21:14:28 steve Exp $"
#endif
# include "config.h"
@ -224,6 +224,8 @@ W [ \t\b\f\r]+
return K_Speriod;
if (strcmp(yytext,"$recovery") == 0)
return K_Srecovery;
if (strcmp(yytext,"$recrem") == 0)
return K_Srecrem;
if (strcmp(yytext,"$setup") == 0)
return K_Ssetup;
if (strcmp(yytext,"$width") == 0)

View File

@ -19,7 +19,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#ifdef HAVE_CVS_IDENT
#ident "$Id: parse.y,v 1.183 2003/08/26 16:26:01 steve Exp $"
#ident "$Id: parse.y,v 1.184 2003/08/31 21:14:28 steve Exp $"
#endif
# include "config.h"
@ -149,7 +149,7 @@ const static struct str_pair_t str_strength = { PGate::STRONG, PGate::STRONG };
%token K_trior K_trireg K_vectored K_wait K_wand K_weak0 K_weak1
%token K_while K_wire
%token K_wor K_xnor K_xor
%token K_Shold K_Speriod K_Srecovery K_Ssetup K_Swidth K_Ssetuphold
%token K_Shold K_Speriod K_Srecovery K_Srecrem K_Ssetup K_Swidth K_Ssetuphold
%token KK_attribute
@ -2197,6 +2197,11 @@ specify_item
{ delete $7;
delete $9;
}
| K_Srecrem '(' spec_reference_event ',' spec_reference_event
',' expression ',' expression spec_notifier_opt ')' ';'
{ delete $7;
delete $9;
}
| K_Swidth '(' spec_reference_event ',' expression ',' expression
spec_notifier_opt ')' ';'
{ delete $5;