Weirdness in numbers with size suffixes. #8

Open
opened 2025-04-04 18:34:21 +00:00 by omicron · 0 comments
Owner

The current lexer grammar will parse 5:88 into two numbers: 5:8 and 8. This is probably not how we want this to happen. Perhaps a size suffix should allow any number of digits and just be validated to only contain 8, 16, 32 or 64 after the value is converted.

Additionally, it might be worth exploring if size suffix should go into the grammar instead of the lexer.

The current lexer grammar will parse `5:88` into two numbers: `5:8` and `8`. This is probably not how we want this to happen. Perhaps a size suffix should allow any number of digits and just be validated to only contain 8, 16, 32 or 64 after the value is converted. Additionally, it might be worth exploring if size suffix should go into the grammar instead of the lexer.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: omicron/oas#8
No description provided.