parsley.token.descriptions.numeric

Members list

Type members

Classlikes

sealed abstract class BreakCharDesc

This class, and its subtypes, describe how break characters are supported within literals.

This class, and its subtypes, describe how break characters are supported within literals.

Attributes

Since

4.0.0

Companion
object
Source
NumericDesc.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object NoBreakChar.type
class Supported
object BreakCharDesc

This object contains the concrete subtypes of BreakCharDesc.

This object contains the concrete subtypes of BreakCharDesc.

Attributes

Since

4.0.0

Companion
class
Source
NumericDesc.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed abstract class ExponentDesc

This class, and its subtypes, describe how scientific exponent notation can be used within real literals.

This class, and its subtypes, describe how scientific exponent notation can be used within real literals.

Attributes

Since

4.0.0

Companion
object
Source
NumericDesc.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object NoExponents.type
class Supported
object ExponentDesc

This object contains the concrete subtypes of ExponentDesc.

This object contains the concrete subtypes of ExponentDesc.

Attributes

Since

4.0.0

Companion
class
Source
NumericDesc.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class NumericDesc(literalBreakChar: BreakCharDesc, leadingDotAllowed: Boolean, trailingDotAllowed: Boolean, leadingZerosAllowed: Boolean, positiveSign: PlusSignPresence, integerNumbersCanBeHexadecimal: Boolean, integerNumbersCanBeOctal: Boolean, integerNumbersCanBeBinary: Boolean, realNumbersCanBeHexadecimal: Boolean, realNumbersCanBeOctal: Boolean, realNumbersCanBeBinary: Boolean, hexadecimalLeads: Set[Char], octalLeads: Set[Char], binaryLeads: Set[Char], decimalExponentDesc: ExponentDesc, hexadecimalExponentDesc: ExponentDesc, octalExponentDesc: ExponentDesc, binaryExponentDesc: ExponentDesc)

This class describes how numeric literals, in different bases, should be processed lexically.

This class describes how numeric literals, in different bases, should be processed lexically.

Value parameters

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?

Attributes

Since

4.0.0

Companion
object
Source
NumericDesc.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object NumericDesc

This object contains any preconfigured text definitions.

This object contains any preconfigured text definitions.

Attributes

Since

4.0.0

Companion
class
Source
NumericDesc.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed abstract class PlusSignPresence

This class, and its subtypes, describe whether or not the plus sign (+) is allowed in a specific position.

This class, and its subtypes, describe whether or not the plus sign (+) is allowed in a specific position.

Attributes

Since

4.0.0

Companion
object
Source
NumericDesc.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Illegal.type
object Optional.type
object Required.type

This object contains the concrete subtypes for PlusSignPresence.

This object contains the concrete subtypes for PlusSignPresence.

Attributes

Since

4.0.0

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