Lexer deficiencies with numbers #2177
Labels
topics: error-handling
Issues involving the way SAW responds to an error condition
type: bug
Issues reporting bugs or unexpected/unwanted behavior
usability
An issue that impedes efficient understanding and use
Milestone
This does not strike me as user-friendly behavior:
Observe that it treats
0b2
as0
followed by the identifierb2
rather than as a malformed binary constant. Similar things happen with0xg
and0o8
.I think it would be better to match [digit]alnum* as number first and then reject malformed ones, as that's what people generally expect in this day and age.
The text was updated successfully, but these errors were encountered: