← ZIO Parser docs

Printer

zio.parser.Printer
See thePrinter companion trait
object Printer

Attributes

Companion
trait
Source
Printer.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Printer.type

Members list

Type members

Classlikes

final case class Contramap[Err, Err2, Out, Value2, Value](printer: Printer[Err, Out, Value], from: Value2 => Value) extends Printer[Err2, Out, Value2]

Attributes

Source
Printer.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Printer[Err2, Out, Value2]
trait VersionSpecificPrinter[Err2, Out, Value2]
class Object
trait Matchable
class Any
Show all
final case class ContramapEither[Err, Err2, Out, Value2, Value](printer: Printer[Err, Out, Value], from: Value2 => Either[Err2, Value]) extends Printer[Err2, Out, Value2]

Attributes

Source
Printer.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Printer[Err2, Out, Value2]
trait VersionSpecificPrinter[Err2, Out, Value2]
class Object
trait Matchable
class Any
Show all
final case class Fail[+Err](failure: Err) extends Printer[Err, Nothing, Any]

Attributes

Source
Printer.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Printer[Err, Nothing, Any]
trait VersionSpecificPrinter[Err, Nothing, Any]
class Object
trait Matchable
class Any
Show all
final case class Failed[+Err](failure: ParserError[Err]) extends Printer[Err, Nothing, Any]

Attributes

Source
Printer.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Printer[Err, Nothing, Any]
trait VersionSpecificPrinter[Err, Nothing, Any]
class Object
trait Matchable
class Any
Show all
final case class FlatMapValue[Err, Out, Value](f: Value => Printer[Err, Out, Nothing]) extends Printer[Err, Out, Value]

Attributes

Source
Printer.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Printer[Err, Out, Value]
trait VersionSpecificPrinter[Err, Out, Value]
class Object
trait Matchable
class Any
Show all
final case class Ignore[Err, Out, Value, Value2](printer: Printer[Err, Out, Value], matches: Value2, from: Value) extends Printer[Err, Out, Value2]

Attributes

Source
Printer.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Printer[Err, Out, Value2]
trait VersionSpecificPrinter[Err, Out, Value2]
class Object
trait Matchable
class Any
Show all
final case class Lazy[Err, Out, Value](inner: () => Printer[Err, Out, Value]) extends Printer[Err, Out, Value]

Attributes

Source
Printer.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Printer[Err, Out, Value]
trait VersionSpecificPrinter[Err, Out, Value]
class Object
trait Matchable
class Any
Show all
final case class MapError[Err, Err2, Out, Value](printer: Printer[Err, Out, Value], mapPrinterErr: Err => Err2) extends Printer[Err2, Out, Value]

Attributes

Source
Printer.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Printer[Err2, Out, Value]
trait VersionSpecificPrinter[Err2, Out, Value]
class Object
trait Matchable
class Any
Show all
final case class Optional[Err, Out, Value](printer: Printer[Err, Out, Value]) extends Printer[Err, Out, Option[Value]]

Attributes

Source
Printer.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Printer[Err, Out, Option[Value]]
trait VersionSpecificPrinter[Err, Out, Option[Value]]
class Object
trait Matchable
class Any
Show all
final case class OrElse[Err, Err2, Out, Out2, Value2, Value](left: Printer[Err, Out, Value], right: Printer[Err2, Out2, Value2]) extends Printer[Err2, Out2, Value2]

Attributes

Source
Printer.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Printer[Err2, Out2, Value2]
trait VersionSpecificPrinter[Err2, Out2, Value2]
class Object
trait Matchable
class Any
Show all
final case class OrElseEither[Err, Err2, Out, Out2, Value2, Value](left: Printer[Err, Out, Value], right: Printer[Err2, Out2, Value2]) extends Printer[Err2, Out2, Either[Value, Value2]]

Attributes

Source
Printer.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Printer[Err2, Out2, Either[Value, Value2]]
trait VersionSpecificPrinter[Err2, Out2, Either[Value, Value2]]
class Object
trait Matchable
class Any
Show all
final case class ParseRegex[Err](regex: Regex, onFailure: Option[Err]) extends Printer[Err, Char, Chunk[Char]]

Attributes

Source
Printer.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Printer[Err, Char, Chunk[Char]]
class Object
trait Matchable
class Any
Show all
final case class ParseRegexLastChar[Err](regex: Regex, onFailure: Option[Err]) extends Printer[Err, Char, Char]

Attributes

Source
Printer.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Printer[Err, Char, Char]
class Object
trait Matchable
class Any
Show all
final case class Passthrough[-Value, +Result]() extends Printer[Nothing, Result, Value]

Attributes

Source
Printer.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Printer[Nothing, Result, Value]
trait VersionSpecificPrinter[Nothing, Result, Value]
class Object
trait Matchable
class Any
Show all
final case class ProvideValue[Err, Out, Value](printer: Printer[Err, Out, Value], value: Value) extends Printer[Err, Out, Any]

Attributes

Source
Printer.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Printer[Err, Out, Any]
trait VersionSpecificPrinter[Err, Out, Any]
class Object
trait Matchable
class Any
Show all
final case class Repeat[Err, Out, Value](printer: Printer[Err, Out, Value], min: Int, max: Option[Int]) extends Printer[Err, Out, Chunk[Value]]

Attributes

Source
Printer.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Printer[Err, Out, Chunk[Value]]
trait VersionSpecificPrinter[Err, Out, Chunk[Value]]
class Object
trait Matchable
class Any
Show all
final case class SkipRegex(regex: Regex, printAs: Chunk[Char]) extends Printer[Nothing, Char, Unit]

Attributes

Source
Printer.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Printer[Nothing, Char, Unit]
trait VersionSpecificPrinter[Nothing, Char, Unit]
class Object
trait Matchable
class Any
Show all
final case class Succeed(value: Any) extends Printer[Nothing, Nothing, Any]

Attributes

Source
Printer.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Printer[Nothing, Nothing, Any]
trait VersionSpecificPrinter[Nothing, Nothing, Any]
class Object
trait Matchable
class Any
Show all
final case class Zip[Err, Err2, Out, Out2, Value2, Value, ZippedValue](left: Printer[Err, Out, Value], right: Printer[Err2, Out2, Value2], unzipValue: ZippedValue => (Value, Value2)) extends Printer[Err2, Out2, ZippedValue]

Attributes

Source
Printer.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Printer[Err2, Out2, ZippedValue]
trait VersionSpecificPrinter[Err2, Out2, ZippedValue]
class Object
trait Matchable
class Any
Show all
final case class ZipLeft[Err, Err2, Out, Out2, Value2, Value](left: Printer[Err, Out, Value], right: Printer[Err2, Out2, Value2]) extends Printer[Err2, Out2, Value]

Attributes

Source
Printer.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Printer[Err2, Out2, Value]
trait VersionSpecificPrinter[Err2, Out2, Value]
class Object
trait Matchable
class Any
Show all
final case class ZipRight[Err, Err2, Out, Out2, Value2, Value](left: Printer[Err, Out, Value], right: Printer[Err2, Out2, Value2]) extends Printer[Err2, Out2, Value2]

Attributes

Source
Printer.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Printer[Err2, Out2, Value2]
trait VersionSpecificPrinter[Err2, Out2, Value2]
class Object
trait Matchable
class Any
Show all

Inherited and Abstract types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
Source
Mirror.scala

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete methods

def any[T]: Printer[Nothing, T, T]

Printer that just emits its input value

Printer that just emits its input value

Attributes

Source
Printer.scala
def apply[Out](value: => Out)(implicit ev: Out =!= Char): Printer[String, Out, Unit]

Printer that emits the given value

Printer that emits the given value

Attributes

Source
Printer.scala
def byValue[Err, Out, Value](f: Value => Printer[Err, Out, Nothing]): Printer[Err, Out, Value]

Printer determined by a function on the input value

Printer determined by a function on the input value

Attributes

Source
Printer.scala
def char(value: Char): Printer[String, Char, Unit]

Printer that prints a given character and results in unit

Printer that prints a given character and results in unit

Attributes

Source
Printer.scala
def charIn(chars: Char*): Printer[String, Char, Char]

Printer that prints a single character if it matches any of the given 'chars'

Printer that prints a single character if it matches any of the given 'chars'

Attributes

Source
Printer.scala
def charNotIn(chars: Char*): Printer[String, Char, Char]

Printer that prints a single character except if it matches any of the given 'chars'

Printer that prints a single character except if it matches any of the given 'chars'

Attributes

Source
Printer.scala
def exactly[Out](value: Out)(implicit ev: Out =!= Char): Printer[String, Out, Out]

Printer that emits the input if it is equals to 'value'. Otherwise fails

Printer that emits the input if it is equals to 'value'. Otherwise fails

Attributes

Source
Printer.scala
def exactly[Err, Out](value: Out, failure: Err)(implicit ev: Out =!= Char): Printer[Err, Out, Out]

Printer that emits the input if it is equals to 'value'. Otherwise fails with 'failure'

Printer that emits the input if it is equals to 'value'. Otherwise fails with 'failure'

Attributes

Source
Printer.scala
def except[Out](value: Out)(implicit ev: Out =!= Char): Printer[String, Out, Out]

Printer that emits the input except if it is equals to 'value', in which case it fails

Printer that emits the input except if it is equals to 'value', in which case it fails

Attributes

Source
Printer.scala
def except[Err, Out](value: Out, failure: Err)(implicit ev: Out =!= Char): Printer[Err, Out, Out]

Printer that emits the input except if it is equals to 'value', in which case it fails with 'failure'

Printer that emits the input except if it is equals to 'value', in which case it fails with 'failure'

Attributes

Source
Printer.scala
def fail[Err](failure: Err): Printer[Err, Nothing, Any]

Printer that does not print anything and fails with 'failure'

Printer that does not print anything and fails with 'failure'

Attributes

Source
Printer.scala
def notChar(value: Char): Printer[String, Char, Char]

Printer that prints the input character if it does not equal to 'value', otherwise fails

Printer that prints the input character if it does not equal to 'value', otherwise fails

Attributes

Source
Printer.scala
def notChar[Err](value: Char, failure: Err): Printer[Err, Char, Char]

Printer that prints the input character if it does not equal to 'value', otherwise fails with 'failure'

Printer that prints the input character if it does not equal to 'value', otherwise fails with 'failure'

Attributes

Source
Printer.scala
def printString(value: String): Printer[Nothing, Char, Any]

Printer emitting a specific string to a char output

Printer emitting a specific string to a char output

Attributes

Source
Printer.scala
def regex[Err](regex: Regex, failure: Err): Printer[Err, Char, Chunk[Char]]

Printer that prints a series of characters provided as input, if it matches the given regex. Otherwise fails with 'failure'

Printer that prints a series of characters provided as input, if it matches the given regex. Otherwise fails with 'failure'

Attributes

Source
Printer.scala
def regexChar[Err](regex: Regex, failure: Err): Printer[Err, Char, Char]

Printer that prints a single character if matches the given 'regex', otherwise fails with 'failure'

Printer that prints a single character if matches the given 'regex', otherwise fails with 'failure'

Attributes

Source
Printer.scala
def regexDiscard(regex: Regex, value: Chunk[Char]): Printer[Nothing, Char, Unit]

Printer that prints the given chunk of characters in 'value'

Printer that prints the given chunk of characters in 'value'

Attributes

Source
Printer.scala
def string[Result](str: String, value: Result): Printer[Nothing, Char, Result]

Prints a specific string 'str' and results in 'value'

Prints a specific string 'str' and results in 'value'

Attributes

Source
Printer.scala
def unsafeRegex[Err](regex: Regex): Printer[Err, Char, Chunk[Char]]

Printer that prints a series of characters provided as input, if it matches the given regex. The regex should never fail.

Printer that prints a series of characters provided as input, if it matches the given regex. The regex should never fail.

Attributes

Source
Printer.scala
def unsafeRegexChar(regex: Regex): Printer[Nothing, Char, Char]

Printer that prints a single character if matches the given 'regex'. The regex should never fail.

Printer that prints a single character if matches the given 'regex'. The regex should never fail.

Attributes

Source
Printer.scala

Concrete fields

Prints a single alpha-numeric character

Prints a single alpha-numeric character

Attributes

Source
Printer.scala
val anyChar: Printer[Nothing, Char, Char]

Printer that prints a single character provided as input.

Printer that prints a single character provided as input.

Attributes

Source
Printer.scala
val anyString: Printer[Nothing, Char, String]

Printer that just prints the input string

Printer that just prints the input string

Attributes

Source
Printer.scala

Prints a single digit

Prints a single digit

Attributes

Source
Printer.scala

Prints a single letter

Prints a single letter

Attributes

Source
Printer.scala
val unit: Printer[Nothing, Nothing, Any]

Attributes

Source
Printer.scala

Prints a single whitespace character

Prints a single whitespace character

Attributes

Source
Printer.scala