This class describes how numeric literals, in different bases, should be processed lexically.
Attributes
- binaryExponentDesc
$genericExp binary literals.
- binaryLeads
what characters begin a binary literal following a
0
(may be empty).- decimalExponentDesc
$genericExp decimal literals.
- hexadecimalExponentDesc
$genericExp hexadecimal literals.
- hexadecimalLeads
what characters begin a hexadecimal literal following a
0
(may be empty).- integerNumbersCanBeBinary
$genericInt binary?
- integerNumbersCanBeHexadecimal
$genericInt hexadecimal?
- integerNumbersCanBeOctal
$genericInt octal?
- leadingDotAllowed
can a real number omit a leading 0 before the point?
- leadingZerosAllowed
are extraneous zeros allowed at the start of decimal numbers?
- literalBreakChar
describes if breaks can be found within numeric literals.
- octalExponentDesc
$genericExp octal literals.
- octalLeads
what characters begin an octal literal following a
0
(may be empty).- positiveSign
describes if positive (
+
) signs are allowed, compulsory, or illegal.- realNumbersCanBeBinary
$genericReal binary?
- realNumbersCanBeHexadecimal
$genericReal hexadecimal?
- realNumbersCanBeOctal
$genericReal octal?
- trailingDotAllowed
can a real number omit a trailing 0 after the point?
- Since:
4.0.0
- Companion:
- object
- Source:
- NumericDesc.scala
- Graph
- Supertypes