NumberLiteral

Configurable base parsers for number literals.

class Object
trait Matchable
class Any

Type members

Classlikes

Parsers for common sets of digits, like hex or decimal.

Parsers for common sets of digits, like hex or decimal.

case class NumericParser(digits: Type[Char], prefix: Option[PrefixedParser[String]], underscores: Boolean, exponent: Option[Parser[String]], suffix: Option[Parser[String]], allowFollowingLetter: Boolean) extends CodeParserBase

Value members

Concrete fields

Parses a binary number literal. It must start with 0b or 0B, followed by one or more binary digits, e.g. \0b100110.

Parses a binary number literal. It must start with 0b or 0B, followed by one or more binary digits, e.g. \0b100110.

Parses a decimal float with an optional exponent.

Parses a decimal float with an optional exponent.

Parses a decimal integer.

Parses a decimal integer.

Parses a hexadecimal number literal. It must start with 0x or 0X, followed by one or more hex digits, e.g. \0x25ff7.

Parses a hexadecimal number literal. It must start with 0x or 0X, followed by one or more hex digits, e.g. \0x25ff7.

Parses a hexadecimal float literal. It must start with 0x or 0X, followed by one or more hex digits, e.g. \0x25ff7.fa.

Parses a hexadecimal float literal. It must start with 0x or 0X, followed by one or more hex digits, e.g. \0x25ff7.fa.

Parses an octal number literal. It must start with 0o or 0O, followed by one or more octal digits, e.g. \0o257.

Parses an octal number literal. It must start with 0o or 0O, followed by one or more octal digits, e.g. \0o257.