mirror of
https://github.com/verilator/verilator.git
synced 2025-01-05 22:27:35 +00:00
Match up with Verilog-Perl: add specify operators
git-svn-id: file://localhost/svn/verilator/trunk/verilator@956 77ca24e4-aefa-0310-84f0-b9a241c72d87
This commit is contained in:
parent
9ac0f1accb
commit
c300ab6dd9
@ -568,6 +568,12 @@ escid \\[^ \t\f\r\n]+
|
||||
"~&" {yylval.fileline = CRELINE(); return yP_NAND;}
|
||||
"~|" {yylval.fileline = CRELINE(); return yP_NOR;}
|
||||
"->" {yylval.fileline = CRELINE(); return yP_MINUSGT;}
|
||||
"=>" {yylval.fileline = CRELINE(); return yP_EQGT; }
|
||||
"*>" {yylval.fileline = CRELINE(); return yP_ASTGT; }
|
||||
"+=>" {yylval.fileline = CRELINE(); return yP_PLUSEQGT; }
|
||||
"+*>" {yylval.fileline = CRELINE(); return yP_PLUSASTGT; }
|
||||
"-=>" {yylval.fileline = CRELINE(); return yP_MINUSEQGT; }
|
||||
"-*>" {yylval.fileline = CRELINE(); return yP_MINUSASTGT; }
|
||||
}
|
||||
|
||||
/* Verilog 2001 Operators */
|
||||
|
@ -248,6 +248,12 @@ class AstSenTree;
|
||||
|
||||
%token<fileline> yP_PLUSCOLON "+:"
|
||||
%token<fileline> yP_MINUSCOLON "-:"
|
||||
%token<fileline> yP_EQGT "=>"
|
||||
%token<fileline> yP_ASTGT "*>"
|
||||
%token<fileline> yP_PLUSEQGT "+=>"
|
||||
%token<fileline> yP_PLUSASTGT "+*>"
|
||||
%token<fileline> yP_MINUSEQGT "-=>"
|
||||
%token<fileline> yP_MINUSASTGT "-*>"
|
||||
|
||||
%token<fileline> yPSL_BRA "{"
|
||||
%token<fileline> yPSL_KET "}"
|
||||
@ -1132,6 +1138,9 @@ specifyJunk: dlyTerm {} /* ignored */
|
||||
| yPSL_KET {}
|
||||
| yP_OR_MINUS_GT {}
|
||||
| yP_OR_EQ_GT {}
|
||||
| yP_EQGT {} | yP_ASTGT {}
|
||||
| yP_PLUSEQGT {} | yP_PLUSASTGT {}
|
||||
| yP_MINUSEQGT {} | yP_MINUSASTGT {}
|
||||
|
||||
| error {}
|
||||
;
|
||||
|
Loading…
Reference in New Issue
Block a user