3
0
Fork 0
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:
Eddie Hung 2020-02-19 11:45:19 -08:00
parent ae409d4d81
commit c6b22f5b7d
2 changed files with 19 additions and 12 deletions

View file

@ -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;