Conversation
Fix minor typo Old grammar would allow exponents with a leading zero, and no trailing zeros
|
|
It is valid, but arbitrary. E+10 is also valid and very much not arbitrary. The rule could be
This reflects the change I proposed, and covers all valid scientific notation, unlike the existing rule which forbids a significant number of valid outputs. |
|
If this rule isn't wrong then the one in |
|
Just to lay it out clearly
The rules are exactly the same except for the last two character groups, so that's why I figure it was a typo. The json_arr.gbnf version looks more correct to me, but do tell me if I am mistaken |
Both changed in the aforementioned PR, one (or both) of them must be wrong, they used to be |
Small fix for typo in the number rule:
This would allow one leading zero and no trailing zeros; e.g. forbidding
e+10,e+100etc. I assume the reverse was intended