The match_number function is fully aware that it saw a ., e, or E and is capable of emitting something more refined than a token_kind::number (token_kind::integer and token_kind::decimal). This will save parse_number from doing the double scan with characters.find_first_of(".eE"), which might help parsing performance.
The
match_number
function is fully aware that it saw a.
,e
, orE
and is capable of emitting something more refined than atoken_kind::number
(token_kind::integer
andtoken_kind::decimal
). This will saveparse_number
from doing the double scan withcharacters.find_first_of(".eE")
, which might help parsing performance.