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.
- Source
- Real.scala
- 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.
- Alphabetic
- By Inheritance
- Real
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
binary: Parsley[BigDecimal]
This parser will parse a single real number literal, which is in binary form (base 2).
This parser will parse a single real number literal, which is in binary form (base 2).
- Since
4.0.0
- To do
examples
- Note
the exact behaviour of this parser is decided by the implementations given in
Lexer, which will depend on user-defined configuration. Please see the relevant documentation of these specific objects.
-
abstract
def
decimal: Parsley[BigDecimal]
This parser will parse a single real number literal, which is in decimal form (base 10).
This parser will parse a single real number literal, which is in decimal form (base 10).
- Since
4.0.0
- To do
examples
- Note
the exact behaviour of this parser is decided by the implementations given in
Lexer, which will depend on user-defined configuration. Please see the relevant documentation of these specific objects.
-
abstract
def
hexadecimal: Parsley[BigDecimal]
This parser will parse a single real number literal, which is in hexadecimal form (base 16).
This parser will parse a single real number literal, which is in hexadecimal form (base 16).
- Since
4.0.0
- To do
examples
- Note
the exact behaviour of this parser is decided by the implementations given in
Lexer, which will depend on user-defined configuration. Please see the relevant documentation of these specific objects.
-
abstract
def
number: Parsley[BigDecimal]
This parser will parse a single number literal, which may be in many different forms/bases depending on the configuration provided.
This parser will parse a single number literal, which may be in many different forms/bases depending on the configuration provided.
- Since
4.0.0
- To do
examples
- Note
the exact behaviour of this parser is decided by the implementations given in
Lexer, which will depend on user-defined configuration. Please see the relevant documentation of these specific objects.
-
abstract
def
octal: Parsley[BigDecimal]
This parser will parse a single real number literal, which is in octal form (base 8).
This parser will parse a single real number literal, which is in octal form (base 8).
- Since
4.0.0
- To do
examples
- Note
the exact behaviour of this parser is decided by the implementations given in
Lexer, which will depend on user-defined configuration. Please see the relevant documentation of these specific objects.
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
_binary: Parsley[BigDecimal]
- Attributes
- protected[numeric]
-
def
_decimal: Parsley[BigDecimal]
- Attributes
- protected[numeric]
-
def
_hexadecimal: Parsley[BigDecimal]
- Attributes
- protected[numeric]
-
def
_number: Parsley[BigDecimal]
- Attributes
- protected[numeric]
-
def
_octal: Parsley[BigDecimal]
- Attributes
- protected[numeric]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
lazy val
binaryDouble: Parsley[Double]
This parser will behave the same as
binaryexcept it will ensure that the resultingBigDecimalis within the maximum bounds of a double-precision IEEE 754 floating point value.This parser will behave the same as
binaryexcept it will ensure that the resultingBigDecimalis within the maximum bounds of a double-precision IEEE 754 floating point value. The result is then converted to aDouble.- Since
4.0.0
- Note
the exact behaviour of this parser is decided by the implementations given in
,Lexer, which will depend on user-defined configuration. Please see the relevant documentation of these specific objects.the validation is performed when the value is within the precision range, and rounding to the nearest exact value will still occur.
-
final
def
binaryDoubleRounded: Parsley[Double]
This parser will behave the same as
binaryexcept it will round the result to the nearest validDouble.This parser will behave the same as
binaryexcept it will round the result to the nearest validDouble.- Annotations
- @inline()
- Since
4.0.0
- Note
the exact behaviour of this parser is decided by the implementations given in
,Lexer, which will depend on user-defined configuration. Please see the relevant documentation of these specific objects.if the values are too big or too negatively big, they will be rounded to the corresponding infinity.
-
lazy val
binaryExactDouble: Parsley[Double]
This parser will behave the same as
binaryexcept it will ensure that the resultingBigDecimalis an exactly represented double-precision IEEE 754 floating point value.This parser will behave the same as
binaryexcept it will ensure that the resultingBigDecimalis an exactly represented double-precision IEEE 754 floating point value. The result is then converted to aDouble.- Since
4.0.0
- Note
the exact behaviour of this parser is decided by the implementations given in
,Lexer, which will depend on user-defined configuration. Please see the relevant documentation of these specific objects.the number is considered exact when it can be losslessly represented in binary.
-
lazy val
binaryExactFloat: Parsley[Float]
This parser will behave the same as
binaryexcept it will ensure that the resultingBigDecimalis an exactly represented single-precision IEEE 754 floating point value.This parser will behave the same as
binaryexcept it will ensure that the resultingBigDecimalis an exactly represented single-precision IEEE 754 floating point value. The result is then converted to aFloat.- Since
4.0.0
- Note
the exact behaviour of this parser is decided by the implementations given in
,Lexer, which will depend on user-defined configuration. Please see the relevant documentation of these specific objects.the number is considered exact when it can be losslessly represented in binary.
-
lazy val
binaryFloat: Parsley[Float]
This parser will behave the same as
binaryexcept it will ensure that the resultingBigDecimalis within the maximum bounds of a single-precision IEEE 754 floating point value.This parser will behave the same as
binaryexcept it will ensure that the resultingBigDecimalis within the maximum bounds of a single-precision IEEE 754 floating point value. The result is then converted to aFloat.- Since
4.0.0
- Note
the exact behaviour of this parser is decided by the implementations given in
,Lexer, which will depend on user-defined configuration. Please see the relevant documentation of these specific objects.the validation is performed when the value is within the precision range, and rounding to the nearest exact value will still occur.
-
final
def
binaryFloatRounded: Parsley[Float]
This parser will behave the same as
binaryexcept it will round the result to the nearest validFloat.This parser will behave the same as
binaryexcept it will round the result to the nearest validFloat.- Annotations
- @inline()
- Since
4.0.0
- Note
the exact behaviour of this parser is decided by the implementations given in
,Lexer, which will depend on user-defined configuration. Please see the relevant documentation of these specific objects.if the values are too big or too negatively big, they will be rounded to the corresponding infinity.
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
lazy val
decimalDouble: Parsley[Double]
This parser will behave the same as
decimalexcept it will ensure that the resultingBigDecimalis within the maximum bounds of a double-precision IEEE 754 floating point value.This parser will behave the same as
decimalexcept it will ensure that the resultingBigDecimalis within the maximum bounds of a double-precision IEEE 754 floating point value. The result is then converted to aDouble.- Since
4.0.0
- Note
the exact behaviour of this parser is decided by the implementations given in
,Lexer, which will depend on user-defined configuration. Please see the relevant documentation of these specific objects.the validation is performed when the value is within the precision range, and rounding to the nearest exact value will still occur.
-
final
def
decimalDoubleRounded: Parsley[Double]
This parser will behave the same as
decimalexcept it will round the result to the nearest validDouble.This parser will behave the same as
decimalexcept it will round the result to the nearest validDouble.- Annotations
- @inline()
- Since
4.0.0
- Note
the exact behaviour of this parser is decided by the implementations given in
,Lexer, which will depend on user-defined configuration. Please see the relevant documentation of these specific objects.if the values are too big or too negatively big, they will be rounded to the corresponding infinity.
-
lazy val
decimalExactDouble: Parsley[Double]
This parser will behave the same as
decimalexcept it will ensure that the resultingBigDecimalis an exactly represented double-precision IEEE 754 floating point value.This parser will behave the same as
decimalexcept it will ensure that the resultingBigDecimalis an exactly represented double-precision IEEE 754 floating point value. The result is then converted to aDouble.- Since
4.0.0
- Note
the exact behaviour of this parser is decided by the implementations given in
,Lexer, which will depend on user-defined configuration. Please see the relevant documentation of these specific objects.the number is considered exact when it can be losslessly represented in binary.
-
lazy val
decimalExactFloat: Parsley[Float]
This parser will behave the same as
decimalexcept it will ensure that the resultingBigDecimalis within the maximum bounds of a single-precision IEEE 754 floating point value.This parser will behave the same as
decimalexcept it will ensure that the resultingBigDecimalis within the maximum bounds of a single-precision IEEE 754 floating point value. The result is then converted to aFloat.- Since
4.0.0
- Note
the exact behaviour of this parser is decided by the implementations given in
,Lexer, which will depend on user-defined configuration. Please see the relevant documentation of these specific objects.the number is considered exact when it can be losslessly represented in binary.
-
lazy val
decimalFloat: Parsley[Float]
This parser will behave the same as
decimalexcept it will ensure that the resultingBigDecimalis within the maximum bounds of a single-precision IEEE 754 floating point value.This parser will behave the same as
decimalexcept it will ensure that the resultingBigDecimalis within the maximum bounds of a single-precision IEEE 754 floating point value. The result is then converted to aFloat.- Since
4.0.0
- Note
the exact behaviour of this parser is decided by the implementations given in
,Lexer, which will depend on user-defined configuration. Please see the relevant documentation of these specific objects.the validation is performed when the value is within the precision range, and rounding to the nearest exact value will still occur.
-
final
def
decimalFloatRounded: Parsley[Float]
This parser will behave the same as
decimalexcept it will round the result to the nearest validFloat.This parser will behave the same as
decimalexcept it will round the result to the nearest validFloat.- Annotations
- @inline()
- Since
4.0.0
- Note
the exact behaviour of this parser is decided by the implementations given in
,Lexer, which will depend on user-defined configuration. Please see the relevant documentation of these specific objects.if the values are too big or too negatively big, they will be rounded to the corresponding infinity.
-
lazy val
double: Parsley[Double]
This parser will behave the same as
numberexcept it will ensure that the resultingBigDecimalis within the maximum bounds of a double-precision IEEE 754 floating point value.This parser will behave the same as
numberexcept it will ensure that the resultingBigDecimalis within the maximum bounds of a double-precision IEEE 754 floating point value. The result is then converted to aDouble.- Since
4.0.0
- Note
the exact behaviour of this parser is decided by the implementations given in
,Lexer, which will depend on user-defined configuration. Please see the relevant documentation of these specific objects.the validation is performed when the value is within the precision range, and rounding to the nearest exact value will still occur.
-
final
def
doubleRounded: Parsley[Double]
This parser will behave the same as
numberexcept it will round the result to the nearest validDouble.This parser will behave the same as
numberexcept it will round the result to the nearest validDouble.- Annotations
- @inline()
- Since
4.0.0
- Note
the exact behaviour of this parser is decided by the implementations given in
,Lexer, which will depend on user-defined configuration. Please see the relevant documentation of these specific objects.if the values are too big or too negatively big, they will be rounded to the corresponding infinity.
-
def
ensureDouble(number: Parsley[BigDecimal]): Parsley[Double]
- Attributes
- protected[numeric]
-
def
ensureExactDouble(number: Parsley[BigDecimal]): Parsley[Double]
- Attributes
- protected[numeric]
-
def
ensureExactFloat(number: Parsley[BigDecimal]): Parsley[Float]
- Attributes
- protected[numeric]
-
def
ensureFloat(number: Parsley[BigDecimal]): Parsley[Float]
- Attributes
- protected[numeric]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
lazy val
exactDouble: Parsley[Double]
This parser will behave the same as
numberexcept it will ensure that the resultingBigDecimalis an exactly represented double-precision IEEE 754 floating point value.This parser will behave the same as
numberexcept it will ensure that the resultingBigDecimalis an exactly represented double-precision IEEE 754 floating point value. The result is then converted to aDouble.- Since
4.0.0
- Note
the exact behaviour of this parser is decided by the implementations given in
,Lexer, which will depend on user-defined configuration. Please see the relevant documentation of these specific objects.the number is considered exact when it can be losslessly represented in binary.
-
lazy val
exactFloat: Parsley[Float]
This parser will behave the same as
numberexcept it will ensure that the resultingBigDecimalis an exactly represented single-precision IEEE 754 floating point value.This parser will behave the same as
numberexcept it will ensure that the resultingBigDecimalis an exactly represented single-precision IEEE 754 floating point value. The result is then converted to aFloat.- Since
4.0.0
- Note
the exact behaviour of this parser is decided by the implementations given in
,Lexer, which will depend on user-defined configuration. Please see the relevant documentation of these specific objects.the number is considered exact when it can be losslessly represented in binary.
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
lazy val
float: Parsley[Float]
This parser will behave the same as
numberexcept it will ensure that the resultingBigDecimalis within the maximum bounds of a single-precision IEEE 754 floating point value.This parser will behave the same as
numberexcept it will ensure that the resultingBigDecimalis within the maximum bounds of a single-precision IEEE 754 floating point value. The result is then converted to aFloat.- Since
4.0.0
- Note
the exact behaviour of this parser is decided by the implementations given in
,Lexer, which will depend on user-defined configuration. Please see the relevant documentation of these specific objects.the validation is performed when the value is within the precision range, and rounding to the nearest exact value will still occur.
-
final
def
floatRounded: Parsley[Float]
This parser will behave the same as
numberexcept it will round the result to the nearest validFloat.This parser will behave the same as
numberexcept it will round the result to the nearest validFloat.- Annotations
- @inline()
- Since
4.0.0
- Note
the exact behaviour of this parser is decided by the implementations given in
,Lexer, which will depend on user-defined configuration. Please see the relevant documentation of these specific objects.if the values are too big or too negatively big, they will be rounded to the corresponding infinity.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
lazy val
hexadecimalDouble: Parsley[Double]
This parser will behave the same as
hexadecimalexcept it will ensure that the resultingBigDecimalis within the maximum bounds of a double-precision IEEE 754 floating point value.This parser will behave the same as
hexadecimalexcept it will ensure that the resultingBigDecimalis within the maximum bounds of a double-precision IEEE 754 floating point value. The result is then converted to aDouble.- Since
4.0.0
- Note
the exact behaviour of this parser is decided by the implementations given in
,Lexer, which will depend on user-defined configuration. Please see the relevant documentation of these specific objects.the validation is performed when the value is within the precision range, and rounding to the nearest exact value will still occur.
-
final
def
hexadecimalDoubleRounded: Parsley[Double]
This parser will behave the same as
hexadecimalexcept it will round the result to the nearest validDouble.This parser will behave the same as
hexadecimalexcept it will round the result to the nearest validDouble.- Annotations
- @inline()
- Since
4.0.0
- Note
the exact behaviour of this parser is decided by the implementations given in
,Lexer, which will depend on user-defined configuration. Please see the relevant documentation of these specific objects.if the values are too big or too negatively big, they will be rounded to the corresponding infinity.
-
lazy val
hexadecimalExactDouble: Parsley[Double]
This parser will behave the same as
hexadecimalexcept it will ensure that the resultingBigDecimalis an exactly represented double-precision IEEE 754 floating point value.This parser will behave the same as
hexadecimalexcept it will ensure that the resultingBigDecimalis an exactly represented double-precision IEEE 754 floating point value. The result is then converted to aDouble.- Since
4.0.0
- Note
the exact behaviour of this parser is decided by the implementations given in
,Lexer, which will depend on user-defined configuration. Please see the relevant documentation of these specific objects.the number is considered exact when it can be losslessly represented in binary.
-
lazy val
hexadecimalExactFloat: Parsley[Float]
This parser will behave the same as
hexadecimalexcept it will ensure that the resultingBigDecimalis an exactly represented single-precision IEEE 754 floating point value.This parser will behave the same as
hexadecimalexcept it will ensure that the resultingBigDecimalis an exactly represented single-precision IEEE 754 floating point value. The result is then converted to aFloat.- Since
4.0.0
- Note
the exact behaviour of this parser is decided by the implementations given in
,Lexer, which will depend on user-defined configuration. Please see the relevant documentation of these specific objects.the number is considered exact when it can be losslessly represented in binary.
-
lazy val
hexadecimalFloat: Parsley[Float]
This parser will behave the same as
hexadecimalexcept it will ensure that the resultingBigDecimalis within the maximum bounds of a single-precision IEEE 754 floating point value.This parser will behave the same as
hexadecimalexcept it will ensure that the resultingBigDecimalis within the maximum bounds of a single-precision IEEE 754 floating point value. The result is then converted to aFloat.- Since
4.0.0
- Note
the exact behaviour of this parser is decided by the implementations given in
,Lexer, which will depend on user-defined configuration. Please see the relevant documentation of these specific objects.the validation is performed when the value is within the precision range, and rounding to the nearest exact value will still occur.
-
final
def
hexadecimalFloatRounded: Parsley[Float]
This parser will behave the same as
hexadecimalexcept it will round the result to the nearest validFloat.This parser will behave the same as
hexadecimalexcept it will round the result to the nearest validFloat.- Annotations
- @inline()
- Since
4.0.0
- Note
the exact behaviour of this parser is decided by the implementations given in
,Lexer, which will depend on user-defined configuration. Please see the relevant documentation of these specific objects.if the values are too big or too negatively big, they will be rounded to the corresponding infinity.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
lazy val
octalDouble: Parsley[Double]
This parser will behave the same as
octalexcept it will ensure that the resultingBigDecimalis within the maximum bounds of a double-precision IEEE 754 floating point value.This parser will behave the same as
octalexcept it will ensure that the resultingBigDecimalis within the maximum bounds of a double-precision IEEE 754 floating point value. The result is then converted to aDouble.- Since
4.0.0
- Note
the exact behaviour of this parser is decided by the implementations given in
,Lexer, which will depend on user-defined configuration. Please see the relevant documentation of these specific objects.the validation is performed when the value is within the precision range, and rounding to the nearest exact value will still occur.
-
final
def
octalDoubleRounded: Parsley[Double]
This parser will behave the same as
octalexcept it will round the result to the nearest validDouble.This parser will behave the same as
octalexcept it will round the result to the nearest validDouble.- Annotations
- @inline()
- Since
4.0.0
- Note
the exact behaviour of this parser is decided by the implementations given in
,Lexer, which will depend on user-defined configuration. Please see the relevant documentation of these specific objects.if the values are too big or too negatively big, they will be rounded to the corresponding infinity.
-
lazy val
octalExactDouble: Parsley[Double]
This parser will behave the same as
octalexcept it will ensure that the resultingBigDecimalis an exactly represented double-precision IEEE 754 floating point value.This parser will behave the same as
octalexcept it will ensure that the resultingBigDecimalis an exactly represented double-precision IEEE 754 floating point value. The result is then converted to aDouble.- Since
4.0.0
- Note
the exact behaviour of this parser is decided by the implementations given in
,Lexer, which will depend on user-defined configuration. Please see the relevant documentation of these specific objects.the number is considered exact when it can be losslessly represented in binary.
-
lazy val
octalExactFloat: Parsley[Float]
This parser will behave the same as
octalexcept it will ensure that the resultingBigDecimalis an exactly represented single-precision IEEE 754 floating point value.This parser will behave the same as
octalexcept it will ensure that the resultingBigDecimalis an exactly represented single-precision IEEE 754 floating point value. The result is then converted to aFloat.- Since
4.0.0
- Note
the exact behaviour of this parser is decided by the implementations given in
,Lexer, which will depend on user-defined configuration. Please see the relevant documentation of these specific objects.the number is considered exact when it can be losslessly represented in binary.
-
lazy val
octalFloat: Parsley[Float]
This parser will behave the same as
octalexcept it will ensure that the resultingBigDecimalis within the maximum bounds of a single-precision IEEE 754 floating point value.This parser will behave the same as
octalexcept it will ensure that the resultingBigDecimalis within the maximum bounds of a single-precision IEEE 754 floating point value. The result is then converted to aFloat.- Since
4.0.0
- Note
the exact behaviour of this parser is decided by the implementations given in
,Lexer, which will depend on user-defined configuration. Please see the relevant documentation of these specific objects.the validation is performed when the value is within the precision range, and rounding to the nearest exact value will still occur.
-
final
def
octalFloatRounded: Parsley[Float]
This parser will behave the same as
octalexcept it will round the result to the nearest validFloat.This parser will behave the same as
octalexcept it will round the result to the nearest validFloat.- Annotations
- @inline()
- Since
4.0.0
- Note
the exact behaviour of this parser is decided by the implementations given in
,Lexer, which will depend on user-defined configuration. Please see the relevant documentation of these specific objects.if the values are too big or too negatively big, they will be rounded to the corresponding infinity.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()