NumberLiteral

laika.parse.code.common.NumberLiteral$
object NumberLiteral

Configurable base parsers for number literals.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

object DigitParsers

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

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

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
case class NumericParser(digits: Type[Char], prefix: Option[PrefixedParser[String]], underscores: Boolean, exponent: Option[Parser[String]], suffix: Option[Parser[String]], allowFollowingLetter: Boolean) extends CodeParserBase

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait PrefixedParser[Seq[CodeSpan]]
class Parser[Seq[CodeSpan]]
class Object
trait Matchable
class Any
Show all

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.

Attributes