Packages

  • package root

    This is the documentation for Parsley.

    This is the documentation for Parsley.

    Package structure

    The parsley package contains the Parsley class, as well as the Result, Success, and Failure types. In addition to these, it also contains the following packages and "modules" (a module is defined as being an object which mocks a package):

    • parsley.Parsley contains the bulk of the core "function-style" combinators.
    • parsley.combinator contains many helpful combinators that simplify some common parser patterns.
    • parsley.character contains the combinators needed to read characters and strings, as well as combinators to match specific sub-sets of characters.
    • parsley.debug contains debugging combinators, helpful for identifying faults in parsers.
    • parsley.extension contains syntactic sugar combinators exposed as implicit classes.
    • parsley.io contains extension methods to run parsers with input sourced from IO sources.
    • parsley.expr contains the following sub modules:
      • parsley.expr.chain contains combinators used in expression parsing
      • parsley.expr.precedence is a builder for expression parsers built on a precedence table.
      • parsley.expr.infix contains combinators used in expression parsing, but with more permissive types than their equivalents in chain.
      • parsley.expr.mixed contains combinators that can be used for expression parsing, but where different fixities may be mixed on the same level: this is rare in practice.
    • parsley.implicits contains several implicits to add syntactic sugar to the combinators. These are sub-categorised into the following sub modules:
      • parsley.implicits.character contains implicits to allow you to use character and string literals as parsers.
      • parsley.implicits.combinator contains implicits related to combinators, such as the ability to make any parser into a Parsley[Unit] automatically.
      • parsley.implicits.lift enables postfix application of the lift combinator onto a function (or value).
      • parsley.implicits.zipped enables boths a reversed form of lift where the function appears on the right and is applied on a tuple (useful when type inference has failed) as well as a .zipped method for building tuples out of several combinators.
    • parsley.errors contains modules to deal with error messages, their refinement and generation.
    • parsley.lift contains functions which lift functions that work on regular types to those which now combine the results of parsers returning those same types. these are ubiquitous.
    • parsley.ap contains functions which allow for the application of a parser returning a function to several parsers returning each of the argument types.
    • parsley.registers contains combinators that interact with the context-sensitive functionality in the form of registers.
    • parsley.token contains the Lexer class that provides a host of helpful lexing combinators when provided with the description of a language.
    • parsley.position contains parsers for extracting position information.
    • parsley.genericbridges contains some basic implementations of the Parser Bridge pattern (see Design Patterns for Parser Combinators in Scala, or the parsley wiki): these can be used before more specialised generic bridge traits can be constructed.
    Definition Classes
    root
  • package parsley
    Definition Classes
    root
  • package token

    This package provides a wealth of functionality for performing common lexing tasks.

    This package provides a wealth of functionality for performing common lexing tasks.

    It is organised as follows:

    • the main parsing functionality is accessed via Lexer, which provides implementations for the combinators found in the sub-packages given a LexicalDesc.
    • the descriptions sub-package is how a lexical structure can be described, providing the configuration that alters the behaviour of the parsers produced by the Lexer.
    • the other sub-packages contain the high-level interfaces that the Lexer exposes, which can be used to pass whitespace-aware and non-whitespace-aware combinators around in a uniform way.
    • the predicate module contains functionality to help define boolean predicates on characters or unicode codepoints.
    Definition Classes
    parsley
  • package numeric

    This package contains the abstract parsers for parsing numeric literals, like integers and reals.

    This package contains the abstract parsers for parsing numeric literals, like integers and reals.

    Definition Classes
    token
    Since

    4.0.0

  • CanHold
  • Combined
  • Integer
  • LowPriorityImplicits
  • Real

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 Lexer may employ sharing and refine the non-final defs in this class into val or lazy val when overriding.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Real
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def _binary: Parsley[BigDecimal]
    Attributes
    protected[numeric]
  5. def _decimal: Parsley[BigDecimal]
    Attributes
    protected[numeric]
  6. def _hexadecimal: Parsley[BigDecimal]
    Attributes
    protected[numeric]
  7. def _number: Parsley[BigDecimal]
    Attributes
    protected[numeric]
  8. def _octal: Parsley[BigDecimal]
    Attributes
    protected[numeric]
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. lazy val binaryDouble: Parsley[Double]

    This parser will behave the same as binary except it will ensure that the resulting BigDecimal is within the maximum bounds of a double-precision IEEE 754 floating point value.

    This parser will behave the same as binary except it will ensure that the resulting BigDecimal is within the maximum bounds of a double-precision IEEE 754 floating point value. The result is then converted to a Double.

    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.

  11. final def binaryDoubleRounded: Parsley[Double]

    This parser will behave the same as binary except it will round the result to the nearest valid Double.

    This parser will behave the same as binary except it will round the result to the nearest valid Double.

    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.

  12. lazy val binaryExactDouble: Parsley[Double]

    This parser will behave the same as binary except it will ensure that the resulting BigDecimal is an exactly represented double-precision IEEE 754 floating point value.

    This parser will behave the same as binary except it will ensure that the resulting BigDecimal is an exactly represented double-precision IEEE 754 floating point value. The result is then converted to a Double.

    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.

  13. lazy val binaryExactFloat: Parsley[Float]

    This parser will behave the same as binary except it will ensure that the resulting BigDecimal is an exactly represented single-precision IEEE 754 floating point value.

    This parser will behave the same as binary except it will ensure that the resulting BigDecimal is an exactly represented single-precision IEEE 754 floating point value. The result is then converted to a Float.

    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.

  14. lazy val binaryFloat: Parsley[Float]

    This parser will behave the same as binary except it will ensure that the resulting BigDecimal is within the maximum bounds of a single-precision IEEE 754 floating point value.

    This parser will behave the same as binary except it will ensure that the resulting BigDecimal is within the maximum bounds of a single-precision IEEE 754 floating point value. The result is then converted to a Float.

    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.

  15. final def binaryFloatRounded: Parsley[Float]

    This parser will behave the same as binary except it will round the result to the nearest valid Float.

    This parser will behave the same as binary except it will round the result to the nearest valid Float.

    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.

  16. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  17. lazy val decimalDouble: Parsley[Double]

    This parser will behave the same as decimal except it will ensure that the resulting BigDecimal is within the maximum bounds of a double-precision IEEE 754 floating point value.

    This parser will behave the same as decimal except it will ensure that the resulting BigDecimal is within the maximum bounds of a double-precision IEEE 754 floating point value. The result is then converted to a Double.

    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.

  18. final def decimalDoubleRounded: Parsley[Double]

    This parser will behave the same as decimal except it will round the result to the nearest valid Double.

    This parser will behave the same as decimal except it will round the result to the nearest valid Double.

    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.

  19. lazy val decimalExactDouble: Parsley[Double]

    This parser will behave the same as decimal except it will ensure that the resulting BigDecimal is an exactly represented double-precision IEEE 754 floating point value.

    This parser will behave the same as decimal except it will ensure that the resulting BigDecimal is an exactly represented double-precision IEEE 754 floating point value. The result is then converted to a Double.

    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.

  20. lazy val decimalExactFloat: Parsley[Float]

    This parser will behave the same as decimal except it will ensure that the resulting BigDecimal is within the maximum bounds of a single-precision IEEE 754 floating point value.

    This parser will behave the same as decimal except it will ensure that the resulting BigDecimal is within the maximum bounds of a single-precision IEEE 754 floating point value. The result is then converted to a Float.

    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.

  21. lazy val decimalFloat: Parsley[Float]

    This parser will behave the same as decimal except it will ensure that the resulting BigDecimal is within the maximum bounds of a single-precision IEEE 754 floating point value.

    This parser will behave the same as decimal except it will ensure that the resulting BigDecimal is within the maximum bounds of a single-precision IEEE 754 floating point value. The result is then converted to a Float.

    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.

  22. final def decimalFloatRounded: Parsley[Float]

    This parser will behave the same as decimal except it will round the result to the nearest valid Float.

    This parser will behave the same as decimal except it will round the result to the nearest valid Float.

    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.

  23. lazy val double: Parsley[Double]

    This parser will behave the same as number except it will ensure that the resulting BigDecimal is within the maximum bounds of a double-precision IEEE 754 floating point value.

    This parser will behave the same as number except it will ensure that the resulting BigDecimal is within the maximum bounds of a double-precision IEEE 754 floating point value. The result is then converted to a Double.

    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.

  24. final def doubleRounded: Parsley[Double]

    This parser will behave the same as number except it will round the result to the nearest valid Double.

    This parser will behave the same as number except it will round the result to the nearest valid Double.

    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.

  25. def ensureDouble(number: Parsley[BigDecimal], label: LabelWithExplainConfig): Parsley[Double]
    Attributes
    protected[numeric]
  26. def ensureExactDouble(number: Parsley[BigDecimal], label: LabelWithExplainConfig): Parsley[Double]
    Attributes
    protected[numeric]
  27. def ensureExactFloat(number: Parsley[BigDecimal], label: LabelWithExplainConfig): Parsley[Float]
    Attributes
    protected[numeric]
  28. def ensureFloat(number: Parsley[BigDecimal], label: LabelWithExplainConfig): Parsley[Float]
    Attributes
    protected[numeric]
  29. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  30. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  31. lazy val exactDouble: Parsley[Double]

    This parser will behave the same as number except it will ensure that the resulting BigDecimal is an exactly represented double-precision IEEE 754 floating point value.

    This parser will behave the same as number except it will ensure that the resulting BigDecimal is an exactly represented double-precision IEEE 754 floating point value. The result is then converted to a Double.

    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.

  32. lazy val exactFloat: Parsley[Float]

    This parser will behave the same as number except it will ensure that the resulting BigDecimal is an exactly represented single-precision IEEE 754 floating point value.

    This parser will behave the same as number except it will ensure that the resulting BigDecimal is an exactly represented single-precision IEEE 754 floating point value. The result is then converted to a Float.

    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.

  33. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  34. lazy val float: Parsley[Float]

    This parser will behave the same as number except it will ensure that the resulting BigDecimal is within the maximum bounds of a single-precision IEEE 754 floating point value.

    This parser will behave the same as number except it will ensure that the resulting BigDecimal is within the maximum bounds of a single-precision IEEE 754 floating point value. The result is then converted to a Float.

    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.

  35. final def floatRounded: Parsley[Float]

    This parser will behave the same as number except it will round the result to the nearest valid Float.

    This parser will behave the same as number except it will round the result to the nearest valid Float.

    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.

  36. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  37. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  38. lazy val hexadecimalDouble: Parsley[Double]

    This parser will behave the same as hexadecimal except it will ensure that the resulting BigDecimal is within the maximum bounds of a double-precision IEEE 754 floating point value.

    This parser will behave the same as hexadecimal except it will ensure that the resulting BigDecimal is within the maximum bounds of a double-precision IEEE 754 floating point value. The result is then converted to a Double.

    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.

  39. final def hexadecimalDoubleRounded: Parsley[Double]

    This parser will behave the same as hexadecimal except it will round the result to the nearest valid Double.

    This parser will behave the same as hexadecimal except it will round the result to the nearest valid Double.

    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.

  40. lazy val hexadecimalExactDouble: Parsley[Double]

    This parser will behave the same as hexadecimal except it will ensure that the resulting BigDecimal is an exactly represented double-precision IEEE 754 floating point value.

    This parser will behave the same as hexadecimal except it will ensure that the resulting BigDecimal is an exactly represented double-precision IEEE 754 floating point value. The result is then converted to a Double.

    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.

  41. lazy val hexadecimalExactFloat: Parsley[Float]

    This parser will behave the same as hexadecimal except it will ensure that the resulting BigDecimal is an exactly represented single-precision IEEE 754 floating point value.

    This parser will behave the same as hexadecimal except it will ensure that the resulting BigDecimal is an exactly represented single-precision IEEE 754 floating point value. The result is then converted to a Float.

    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.

  42. lazy val hexadecimalFloat: Parsley[Float]

    This parser will behave the same as hexadecimal except it will ensure that the resulting BigDecimal is within the maximum bounds of a single-precision IEEE 754 floating point value.

    This parser will behave the same as hexadecimal except it will ensure that the resulting BigDecimal is within the maximum bounds of a single-precision IEEE 754 floating point value. The result is then converted to a Float.

    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.

  43. final def hexadecimalFloatRounded: Parsley[Float]

    This parser will behave the same as hexadecimal except it will round the result to the nearest valid Float.

    This parser will behave the same as hexadecimal except it will round the result to the nearest valid Float.

    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.

  44. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  45. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  46. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  47. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  48. lazy val octalDouble: Parsley[Double]

    This parser will behave the same as octal except it will ensure that the resulting BigDecimal is within the maximum bounds of a double-precision IEEE 754 floating point value.

    This parser will behave the same as octal except it will ensure that the resulting BigDecimal is within the maximum bounds of a double-precision IEEE 754 floating point value. The result is then converted to a Double.

    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.

  49. final def octalDoubleRounded: Parsley[Double]

    This parser will behave the same as octal except it will round the result to the nearest valid Double.

    This parser will behave the same as octal except it will round the result to the nearest valid Double.

    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.

  50. lazy val octalExactDouble: Parsley[Double]

    This parser will behave the same as octal except it will ensure that the resulting BigDecimal is an exactly represented double-precision IEEE 754 floating point value.

    This parser will behave the same as octal except it will ensure that the resulting BigDecimal is an exactly represented double-precision IEEE 754 floating point value. The result is then converted to a Double.

    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.

  51. lazy val octalExactFloat: Parsley[Float]

    This parser will behave the same as octal except it will ensure that the resulting BigDecimal is an exactly represented single-precision IEEE 754 floating point value.

    This parser will behave the same as octal except it will ensure that the resulting BigDecimal is an exactly represented single-precision IEEE 754 floating point value. The result is then converted to a Float.

    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.

  52. lazy val octalFloat: Parsley[Float]

    This parser will behave the same as octal except it will ensure that the resulting BigDecimal is within the maximum bounds of a single-precision IEEE 754 floating point value.

    This parser will behave the same as octal except it will ensure that the resulting BigDecimal is within the maximum bounds of a single-precision IEEE 754 floating point value. The result is then converted to a Float.

    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.

  53. final def octalFloatRounded: Parsley[Float]

    This parser will behave the same as octal except it will round the result to the nearest valid Float.

    This parser will behave the same as octal except it will round the result to the nearest valid Float.

    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.

  54. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  55. def toString(): String
    Definition Classes
    AnyRef → Any
  56. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  57. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  58. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped