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
floating-literal:
fractional-constant exponent-part[opt] floating-suffix[opt]
digit-sequence exponent-part floating-suffix[opt]
fractional-constant:
digit-sequence[opt]. digit-sequence
digit-sequence .
exponent-part:
e sign[opt] digit-sequence
E sign[opt] digit-sequence
sign: one of
+ -
digit-sequence:
digit
digit-sequence digit
floating-suffix: one of
f l F L
Whereas the IEEE-754 examples always have a the zero in 1.0e300. I'm not sure which is right. C++ definitely allows 1. as a valid constant, but that may be a convenience thing?
I don't have an opinion about which is best, but it would be good in general for parsers to abide by the same restrictions as the spec repo, or to remove the restrictions from the spec repo.
Activity
binji commentedon Jan 28, 2016
This also fails in the spec repo, I just copied the float lexer from there.
jfbastien commentedon Jan 28, 2016
Looking at the C++ grammar:
Whereas the IEEE-754 examples always have a the zero in
1.0e300. I'm not sure which is right. C++ definitely allows1.as a valid constant, but that may be a convenience thing?binji commentedon Jan 28, 2016
Easy enough to support it, so might as well. Fixed in b803868.
sunfishcode commentedon Jan 28, 2016
I don't have an opinion about which is best, but it would be good in general for parsers to abide by the same restrictions as the spec repo, or to remove the restrictions from the spec repo.
jfbastien commentedon Jan 28, 2016
Agreed with @sunfishcode. @rossberg-chromium WDYT we should standardize on?
Merge pull request WebAssembly#29 from WebAssembly/main