Closed benjreinhart closed 3 years ago
Spec ref:
decimal := integer ('.' [0-9] [0-9_]*)? exponent?
exponent := ('e' | 'E') integer
integer := sign? [0-9] [0-9_]*
sign := '+' | '-'
hex := sign? '0x' hex-digit (hex-digit | '_')*
octal := sign? '0o' [0-7] [0-7_]*
binary := sign? '0b' ('0' | '1') ('0' | '1' | '_')*
Translation:
'0x' hex-digit (hex-digit | '_')*
)exponent
above)
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).
0b
,0o
, and/or0x
, right (e.g.,0b_01
is illegal)?0b01_
?123___456_789
would be illegal?e
orE
?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.
🙏🏻