package numeric
This package contains the abstract parsers for parsing numeric literals, like integers and reals.
- Source
- token-package.scala
- Since
4.0.0
- Alphabetic
- By Inheritance
- numeric
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- abstract class Combined extends AnyRef
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.
- Since
4.0.0
- Note
implementations of this class found within
Lexer
may employ sharing and refine the non-finaldef
s in this class intoval
orlazy val
when overriding.
- abstract class Integer extends AnyRef
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.
- Since
4.0.0
- Note
implementations of this class found within
Lexer
may employ sharing and refine the non-finaldef
s in this class intoval
orlazy val
when overriding.
- sealed class LowPriorityImplicits extends AnyRef
This class is used to provide "low-priority" implicits for the types defined within
CanHold
. - abstract class Real extends AnyRef
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.
- Since
4.0.0
- Note
implementations of this class found within
Lexer
may employ sharing and refine the non-finaldef
s in this class intoval
orlazy val
when overriding.
Value Members
- 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.- Since
4.0.0