NumberLiteral
Configurable base parsers for number literals.
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- NumberLiteral.type
Members list
Type members
Classlikes
Parsers for common sets of digits, like hex or decimal.
Parsers for common sets of digits, like hex or decimal.
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- DigitParsers.type
Attributes
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalstrait CodeParserBasetrait CodeSpanParserclass Objecttrait Matchableclass Any
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
.
Attributes
Parses a decimal float with an optional exponent.
Parses a decimal float with an optional exponent.
Attributes
Parses a decimal integer.
Parses a decimal integer.
Attributes
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
.
Attributes
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
.
Attributes
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
.