NumericDesc

parsley.token.descriptions.numeric.NumericDesc
See theNumericDesc companion class
object NumericDesc

This object contains any preconfigured text definitions.

Attributes

Since

4.0.0

Companion
class
Source
NumericDesc.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
Source
Mirror.scala

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete fields

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, leadingZerosAllowed = true)
hexadecimalExponentDesc = ExponentDesc.Supported(compulsory = true, chars = Set('p', 'P'), base = 2, positiveSign = PlusSignPresence.Optional, leadingZerosAllowed = true)
octalExponentDesc = ExponentDesc.Supported(compulsory = true, chars = Set('e', 'E', 'p', 'P'), base = 2, positiveSign = PlusSignPresence.Optional, leadingZerosAllowed = true)
binaryExponentDesc = ExponentDesc.Supported(compulsory = true, chars = Set('e', 'E', 'p', 'P'), base = 2, positiveSign = PlusSignPresence.Optional, leadingZerosAllowed = true)

Attributes

Since

4.0.0

Source
NumericDesc.scala