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
- All
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
Lexermay employ sharing and refine the non-finaldefs in this class intovalorlazy valwhen 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
Lexermay employ sharing and refine the non-finaldefs in this class intovalorlazy valwhen 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
Lexermay employ sharing and refine the non-finaldefs in this class intovalorlazy valwhen 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,
parsleymakes no distinction between unsigned and signed numbers.- Since
4.0.0