* spot/parsetl/scantl.ll: Avoid strtoul for short delays.
This commit is contained in:
parent
216db3aa10
commit
88356645b4
1 changed files with 7 additions and 2 deletions
|
|
@ -222,8 +222,13 @@ eol2 (\n\r)+|(\r\n)+
|
||||||
"first_match" BEGIN(0); return token::OP_FIRST_MATCH;
|
"first_match" BEGIN(0); return token::OP_FIRST_MATCH;
|
||||||
|
|
||||||
/* SVA operators */
|
/* SVA operators */
|
||||||
"##"[0-9]{1,2} {
|
"##"[0-9] {
|
||||||
yylval->num = strtoul(yytext + 2, 0, 10);
|
yylval->num = yytext[2] - '0';
|
||||||
|
return token::OP_DELAY_N;
|
||||||
|
}
|
||||||
|
"##"[0-9][0-9] {
|
||||||
|
yylval->num =
|
||||||
|
yytext[2] * 10 + yytext[3] - '0' * 11;
|
||||||
return token::OP_DELAY_N;
|
return token::OP_DELAY_N;
|
||||||
}
|
}
|
||||||
"##"[0-9]{3,} {
|
"##"[0-9]{3,} {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue