-
-
Notifications
You must be signed in to change notification settings - Fork 77
Closed
Labels
questionFurther information is requestedFurther information is requested
Description
Hello... I am looking for some clarification around a couple things related to numbers.
(Apologize in advance if this is obvious to everyone, I am new to implementing parsers and interpreting language specs).
- For numbers that specify a radix, the radix MUST be followed by a respective digit, correct? For example, an underscore cannot immediately follow
0b,0o, and/or0x, right (e.g.,0b_01is illegal)? - If there was a trailing underscore, the lexer would NOT include that in the number literal, but instead probably treat that as the start of an identifier (which I think is then illegal from the parser's POV), e.g.,
0b01_? - Only a single underscore is valid in between digits, so
123___456_789would be illegal? - In decimal numbers, can an underscore appear after an exponent denoted with
eorE?
If folks think it would be helpful to make any of the above worded more explicitly in the spec, I'd be happy to take a stab at that.
🙏🏻
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested