You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also, it would be better to discuss spec of number literals(sorry if it has been discussed already).
i.e. currently, tokenizer allows hex/bin/octal/decimal numbers while analyzer allows only decimal numbers. This seems inconsistent between them.
EDIT: opened #333 for further discussion of numeric literal representations.
What is wrong?
Tokenizer doesn't tokenize correctly if numeric literals start with 0 followed by non zero value.
For example,
is tokenized into
Also, it would be better to discuss spec of number literals(sorry if it has been discussed already).
i.e. currently, tokenizer allows hex/bin/octal/decimal numbers while analyzer allows only decimal numbers. This seems inconsistent between them.
EDIT: opened #333 for further discussion of numeric literal representations.
How can it be fixed
It would be fixed by tweaking the code below
fe/parser/src/tokenizer/regex.rs
Lines 18 to 21 in 3a7fa34
The text was updated successfully, but these errors were encountered: