mirror of
https://github.com/verilator/verilator.git
synced 2025-01-05 22:27:35 +00:00
Make -> a token to match verilog-perl
git-svn-id: file://localhost/svn/verilator/trunk/verilator@946 77ca24e4-aefa-0310-84f0-b9a241c72d87
This commit is contained in:
parent
5f6d69affd
commit
a681a6a6d5
@ -567,6 +567,7 @@ escid \\[^ \t\f\r\n]+
|
||||
"~^" {yylval.fileline = CRELINE(); return yP_XNOR;}
|
||||
"~&" {yylval.fileline = CRELINE(); return yP_NAND;}
|
||||
"~|" {yylval.fileline = CRELINE(); return yP_NOR;}
|
||||
"->" {yylval.fileline = CRELINE(); return yP_MINUSGT;}
|
||||
}
|
||||
|
||||
/* Verilog 2001 Operators */
|
||||
@ -588,7 +589,6 @@ escid \\[^ \t\f\r\n]+
|
||||
<PSL>{
|
||||
"{" {yylval.fileline = CRELINE(); return yPSL_BRA;} // Avoid parser hitting concatenate.
|
||||
"}" {yylval.fileline = CRELINE(); return yPSL_KET;} // Avoid parser hitting concatenate.
|
||||
"->" {yylval.fileline = CRELINE(); return yP_LOGIF;}
|
||||
"<->" {yyerrorf("Unsupported: PSL operator not implemented: %s",yytext);} //Unsup in other tools
|
||||
"[*" {yyerrorf("Unsupported: PSL operator not implemented: %s",yytext);} // yP_BRA_STAR
|
||||
"[*]" {yyerrorf("Unsupported: PSL operator not implemented: %s",yytext);} // yP_BRA_STAR_KET
|
||||
|
@ -256,7 +256,7 @@ class AstSenTree;
|
||||
|
||||
//********************
|
||||
// PSL op precedence
|
||||
%right<fileline> yP_LOGIF yP_LOGIFF
|
||||
%right<fileline> yP_MINUSGT yP_LOGIFF /* MinusGT == -> == PSL LogIf operator */
|
||||
%right<fileline> yP_OR_MINUS_GT yP_OR_EQ_GT
|
||||
%left<fileline> prPSLCLK
|
||||
|
||||
@ -927,7 +927,7 @@ exprNoStr: expr yP_OROR expr { $$ = new AstLogOr ($2,$1,$3); }
|
||||
| expr '/' expr { $$ = new AstDiv ($2,$1,$3); }
|
||||
| expr '%' expr { $$ = new AstModDiv ($2,$1,$3); }
|
||||
| expr yP_POW expr { $$ = new AstPow ($2,$1,$3); }
|
||||
| expr yP_LOGIF expr { $$ = new AstLogIf ($2,$1,$3); }
|
||||
| expr yP_MINUSGT expr { $$ = new AstLogIf ($2,$1,$3); }
|
||||
| expr yP_LOGIFF expr { $$ = new AstLogIff ($2,$1,$3); }
|
||||
|
||||
| '-' expr %prec prUNARYARITH { $$ = new AstUnaryMin ($1,$2); }
|
||||
@ -1113,7 +1113,7 @@ specifyJunk: dlyTerm {} /* ignored */
|
||||
| yP_PLUSCOLON {} | yP_MINUSCOLON {}
|
||||
| yP_POW {}
|
||||
|
||||
| yP_LOGIF {}
|
||||
| yP_MINUSGT {}
|
||||
| yP_LOGIFF {}
|
||||
| yPSL_BRA {}
|
||||
| yPSL_KET {}
|
||||
|
Loading…
Reference in New Issue
Block a user