Packages

  • package root
    Definition Classes
    root
  • package parsley
    Definition Classes
    root
  • object io

    This module contains utilities to have parsers interact with IO, including the very useful parseFromFile method (exposed by ParseFromIO)

    This module contains utilities to have parsers interact with IO, including the very useful parseFromFile method (exposed by ParseFromIO)

    Definition Classes
    parsley
    Since

    3.0.0

  • ParseFromIO
c

parsley.io

ParseFromIO

implicit final class ParseFromIO[P, +A] extends AnyRef

This class exposes a method of running parsers from a file.

This extension class operates on values that are convertible to parsers. It enables the use of the parseFromFile method, which can be used to run a parser on the contents of a file.

P

the type of base value that this class is used on (the conversion to Parsley) is summoned automatically.

Source
io.scala
Version

3.0.0

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

Instance Constructors

  1. new ParseFromIO(p: P)(implicit con: (P) => Parsley[A])

    This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.

    This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.

    p

    the value that this class is enabling methods on.

    con

    a conversion that allows values convertible to parsers to be used.

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. def parseFromFile[Err](file: File)(implicit arg0: ErrorBuilder[Err], codec: Codec): Try[Result[Err, A]]

    This method executes a parser, but collects the input to the parser from the given file.

    This method executes a parser, but collects the input to the parser from the given file.

    The file name is used to annotate any error messages. The result of this method handles exceptions and ensures the file has been properly closed.

    file

    the file to load and run against.

    codec

    the encoding of the file.

    returns

    a Try containing a result of either a success with a value of type A or a failure with error message on success, and a failure if an IOException occured.

    Since

    3.0.0

  16. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  17. def toString(): String
    Definition Classes
    AnyRef → Any
  18. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  19. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  20. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped