archives

« Bugzilla Issues Index

#1583 — Incorrect grammar for BinaryIntegerLiteral and OctalIntegerLiteral


It currently says

BinaryIntegerLiteral ::
0b BinaryDigit
0B BinaryDigit
BinaryIntegerLiteral BinaryDigit

BinaryDigit :: one of
0 1

Which means 0b0b0b0b0b0b1 is valid but 0b01 is not. It should be

BinaryIntegerLiteral ::
0b BinaryDigits
0B BinaryDigits

BinaryDigits ::
BinaryDigit
BinaryDigits BinaryDigit

BinaryDigit :: one of
0 1

Same goes for OctalIntegerLiteral


fixed in rev17 editor's draft


fixed in rev17, August 23, 2013 draft