parsley.token.descriptions.numeric.NumericDesc
See theNumericDesc companion class
This object contains any preconfigured text definitions.
Attributes
Since
4.0.0
Companion
class
Source
NumericDesc.scala
Graph
Reset zoom Hide graph Show graph
Supertypes
trait Product
trait Mirror
trait Matchable
class Any
Self type
Members list
The names of the product elements
The names of the product elements
Attributes
Inherited from:
Mirror
Source
Mirror.scala
Plain definition of numeric literals.
Plain definition of numeric literals. Supports leading zeros; hexadecimal, octal, and binary notation; and exponent notation for all four bases too. Only hexadecimal and octal are enabled for integer numbers, and only decimal for real numbers.
literalBreakChar = BreakCharDesc.NoBreakChar
leadingDotAllowed = false
trailingDotAllowed = false
leadingZerosAllowed = true
positiveSign = PlusSignPresence.Optional
integerNumbersCanBeHexadecimal = true
integerNumbersCanBeOctal = true
integerNumbersCanBeBinary = false
realNumbersCanBeHexadecimal = false
realNumbersCanBeOctal = false
realNumbersCanBeBinary = false
hexadecimalLeads = Set('x', 'X')
octalLeads = Set('o', 'O')
binaryLeads = Set('b', 'B')
decimalExponentDesc = ExponentDesc.Supported(compulsory = false, chars = Set('e', 'E'), base = 10, positiveSign = PlusSignPresence.Optional)
hexadecimalExponentDesc = ExponentDesc.Supported(compulsory = true, chars = Set('p', 'P'), base = 2, positiveSign = PlusSignPresence.Optional)
octalExponentDesc = ExponentDesc.Supported(compulsory = true, chars = Set('e', 'E', 'p', 'P'), base = 2, positiveSign = PlusSignPresence.Optional)
binaryExponentDesc = ExponentDesc.Supported(compulsory = true, chars = Set('e', 'E', 'p', 'P'), base = 2, positiveSign = PlusSignPresence.Optional)
Attributes
Since
4.0.0
Source
NumericDesc.scala