mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-09 23:53:26 +00:00
verilog: specify polarity to be separate token
This commit is contained in:
parent
ae409d4d81
commit
c6b22f5b7d
2 changed files with 19 additions and 12 deletions
|
@ -518,7 +518,12 @@ import[ \t\r\n]+\"(DPI|DPI-C)\"[ \t\r\n]+function[ \t\r\n]+ {
|
|||
|
||||
".*" { return TOK_WILDCARD_CONNECT; }
|
||||
|
||||
[-+]?[=*]> {
|
||||
[+-] {
|
||||
if (!specify_mode) REJECT;
|
||||
frontend_verilog_yylval.ch = yytext[0];
|
||||
return TOK_SPECIFY_POL;
|
||||
}
|
||||
[=*]> {
|
||||
if (!specify_mode) REJECT;
|
||||
yylval->string = new std::string(yytext);
|
||||
return TOK_SPECIFY_OPER;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue