File tree Expand file tree Collapse file tree 7 files changed +3
-105
lines changed
compiler/src/dotty/tools/dotc/parsing
_docs/reference/other-new-features
project/resources/referenceReplacements Expand file tree Collapse file tree 7 files changed +3
-105
lines changed Original file line number Diff line number Diff line change @@ -884,7 +884,7 @@ object Scanners {
884884 nextChar()
885885 ch match {
886886 case 'x' | 'X' => base = 16 ; nextChar()
887- case 'b' | 'B' => base = 2 ; nextChar()
887+ // case 'b' | 'B' => base = 2 ; nextChar()
888888 case _ => base = 10 ; putChar('0' )
889889 }
890890 if (base != 10 && ! isNumberSeparator(ch) && digit2int(ch, base) < 0 )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -332,10 +332,9 @@ Literal ::= [‘-’] integerLiteral
332332### Integer Literals
333333
334334``` ebnf
335- integerLiteral ::= (decimalNumeral | hexNumeral | binaryNumeral ) [‘L’ | ‘l’]
335+ integerLiteral ::= (decimalNumeral | hexNumeral) [‘L’ | ‘l’]
336336decimalNumeral ::= ‘0’ | digit [{digit | ‘_’} digit]
337337hexNumeral ::= ‘0’ (‘x’ | ‘X’) hexDigit [{hexDigit | ‘_’} hexDigit]
338- binaryNumeral ::= ‘0’ (‘b’ | ‘B’) binaryDigit [{binaryDigit | ‘_’} binaryDigit]
339338```
340339
341340Values of type ` Int ` are all integer numbers between $-2\^ {31}$ and $2\^ {31}-1$, inclusive.
@@ -358,7 +357,7 @@ The numeric ranges given by these types are:
358357The digits of a numeric literal may be separated by arbitrarily many underscores for purposes of legibility.
359358
360359> ``` scala
361- > 0 21_000 0x7F - 42L 0xFFFF_FFFF 0b0100_0010
360+ > 0 21_000 0x7F - 42L 0xFFFF_FFFF
362361> ```
363362
364363### Floating Point Literals
Original file line number Diff line number Diff line change @@ -81,7 +81,6 @@ subsection:
8181 - page : reference/other-new-features/safe-initialization.md
8282 - page : reference/other-new-features/type-test.md
8383 - page : reference/other-new-features/experimental-defs.md
84- - page : reference/other-new-features/binary-literals.md
8584 - title : Other Changed Features
8685 directory : changed-features
8786 index : reference/changed-features/changed-features.md
Original file line number Diff line number Diff line change @@ -77,7 +77,6 @@ subsection:
7777 - page : reference/other-new-features/safe-initialization.md
7878 - page : reference/other-new-features/type-test.md
7979 - page : reference/other-new-features/experimental-defs.md
80- - page : reference/other-new-features/binary-literals.md
8180 - title : Other Changed Features
8281 directory : changed-features
8382 index : reference/changed-features/changed-features.md
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments