mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-07 06:33:24 +00:00
Ensure signed constants are correctly parsed, represented, and exported in RTLIL. Add a test to check parsing and exporting
This commit is contained in:
parent
4cddc19994
commit
91e3773b51
4 changed files with 29 additions and 2 deletions
|
@ -88,7 +88,7 @@ USING_YOSYS_NAMESPACE
|
|||
"\\"[^ \t\r\n]+ { rtlil_frontend_yylval.string = strdup(yytext); return TOK_ID; }
|
||||
"$"[^ \t\r\n]+ { rtlil_frontend_yylval.string = strdup(yytext); return TOK_ID; }
|
||||
|
||||
[0-9]+'[01xzm-]* { rtlil_frontend_yylval.string = strdup(yytext); return TOK_VALUE; }
|
||||
[0-9]+'s?[01xzm-]* { rtlil_frontend_yylval.string = strdup(yytext); return TOK_VALUE; }
|
||||
-?[0-9]+ {
|
||||
char *end = nullptr;
|
||||
errno = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue