File tree 7 files changed +3
-105
lines changed
compiler/src/dotty/tools/dotc/parsing
_docs/reference/other-new-features
project/resources/referenceReplacements 7 files changed +3
-105
lines changed Original file line number Diff line number Diff line change @@ -884,7 +884,7 @@ object Scanners {
884
884
nextChar()
885
885
ch match {
886
886
case 'x' | 'X' => base = 16 ; nextChar()
887
- case 'b' | 'B' => base = 2 ; nextChar()
887
+ // case 'b' | 'B' => base = 2 ; nextChar()
888
888
case _ => base = 10 ; putChar('0' )
889
889
}
890
890
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
332
332
### Integer Literals
333
333
334
334
``` ebnf
335
- integerLiteral ::= (decimalNumeral | hexNumeral | binaryNumeral ) [‘L’ | ‘l’]
335
+ integerLiteral ::= (decimalNumeral | hexNumeral) [‘L’ | ‘l’]
336
336
decimalNumeral ::= ‘0’ | digit [{digit | ‘_’} digit]
337
337
hexNumeral ::= ‘0’ (‘x’ | ‘X’) hexDigit [{hexDigit | ‘_’} hexDigit]
338
- binaryNumeral ::= ‘0’ (‘b’ | ‘B’) binaryDigit [{binaryDigit | ‘_’} binaryDigit]
339
338
```
340
339
341
340
Values 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:
358
357
The digits of a numeric literal may be separated by arbitrarily many underscores for purposes of legibility.
359
358
360
359
> ``` scala
361
- > 0 21_000 0x7F - 42L 0xFFFF_FFFF 0b0100_0010
360
+ > 0 21_000 0x7F - 42L 0xFFFF_FFFF
362
361
> ```
363
362
364
363
### Floating Point Literals
Original file line number Diff line number Diff line change @@ -81,7 +81,6 @@ subsection:
81
81
- page : reference/other-new-features/safe-initialization.md
82
82
- page : reference/other-new-features/type-test.md
83
83
- page : reference/other-new-features/experimental-defs.md
84
- - page : reference/other-new-features/binary-literals.md
85
84
- title : Other Changed Features
86
85
directory : changed-features
87
86
index : reference/changed-features/changed-features.md
Original file line number Diff line number Diff line change @@ -77,7 +77,6 @@ subsection:
77
77
- page : reference/other-new-features/safe-initialization.md
78
78
- page : reference/other-new-features/type-test.md
79
79
- page : reference/other-new-features/experimental-defs.md
80
- - page : reference/other-new-features/binary-literals.md
81
80
- title : Other Changed Features
82
81
directory : changed-features
83
82
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