From fdb5731b8bbd3db4e0ed6be24078247463caaaa9 Mon Sep 17 00:00:00 2001 From: steve Date: Sun, 31 Aug 2003 21:14:28 +0000 Subject: [PATCH] Add $recrem to specify syntax. --- lexor.lex | 4 +++- parse.y | 9 +++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/lexor.lex b/lexor.lex index 1fc7c8226..244f33a57 100644 --- a/lexor.lex +++ b/lexor.lex @@ -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) diff --git a/parse.y b/parse.y index 623f114dc..9433e33bd 100644 --- a/parse.y +++ b/parse.y @@ -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;