parsley.token.numeric

Members list

Type members

Classlikes

object CanHold extends LowPriorityImplicits

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
Supertypes
class Object
trait Matchable
class Any
Self type
CanHold.type
abstract class CombinedParsers

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
Supertypes
class Object
trait Matchable
class Any
abstract class IntegerParsers

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
Supertypes
class Object
trait Matchable
class Any
sealed class LowPriorityImplicits

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
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object CanHold.type
abstract class RealParsers

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
Supertypes
class Object
trait Matchable
class Any