parsley.token.numeric

Members list

Concise view

Type members

Classlikes

This object contains the definitions of several types that help enforce that parsers of bounded precision only return types that can losslessly accomodate that precision.

This object contains the definitions of several types that help enforce that parsers of bounded precision only return types that can losslessly accomodate that precision.

Note that, on the JVM, there is no such thing as an unsigned value natively. Instead, the JVM provides a guarantee that overflow is well-defined, and, as such supports operations that work on numbers as if they were unsigned. For this reason, parsley makes no distinction between unsigned and signed numbers.

Attributes

Since:

4.0.0

Source:
BitBounds.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
CanHold.type
abstract class Combined

This class defines a uniform interface for defining parsers for mixed kind numeric literals, independent of how whitespace should be handled after the literal or whether the literal should allow for negative numbers.

This class defines a uniform interface for defining parsers for mixed kind numeric literals, independent of how whitespace should be handled after the literal or whether the literal should allow for negative numbers.

Attributes

Since:

4.0.0

Note:

implementations of this class found within Lexer may employ sharing and refine the non-final defs in this class into val or lazy val when overriding.

Source:
Combined.scala
Graph
Supertypes
class Object
trait Matchable
class Any
abstract class Integer

This class defines a uniform interface for defining parsers for integer literals, independent of how whitespace should be handled after the literal or whether the literal should allow for negative numbers.

This class defines a uniform interface for defining parsers for integer literals, independent of how whitespace should be handled after the literal or whether the literal should allow for negative numbers.

Attributes

Since:

4.0.0

Note:

implementations of this class found within Lexer may employ sharing and refine the non-final defs in this class into val or lazy val when overriding.

Source:
Integer.scala
Graph
Supertypes
class Object
trait Matchable
class Any

This class is used to provide "low-priority" implicits for the types defined within CanHold.

This class is used to provide "low-priority" implicits for the types defined within CanHold.

These implicits are not favoured equally to the implicits defined within CanHold and this means that Scala will not have any ambiguous implicit errors.

Attributes

Since:

4.0.0

Source:
BitBounds.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object CanHold.type
abstract class Real

This class defines a uniform interface for defining parsers for floating literals, independent of how whitespace should be handled after the literal.

This class defines a uniform interface for defining parsers for floating literals, independent of how whitespace should be handled after the literal.

Attributes

Since:

4.0.0

Note:

implementations of this class found within Lexer may employ sharing and refine the non-final defs in this class into val or lazy val when overriding.

Source:
Real.scala
Graph
Supertypes
class Object
trait Matchable
class Any